Share this page

# imap_logout

Internet Messaging Functions (IMAP)

Logs off from an IMAP server.

    int imap_logout();

The imap_logout function logs out from an IMAP server.

This function is for use with global sessions. For multiple sessions, use the imap_logout_ex function, which allows you to specify a session identifier.

## Return Values

If this function succeeds, it returns LR_PASS. Otherwise, it returns LR_FAIL.

## Parameterization

Standard parameterization is not available for this function.

## Example

In the following example, the imap_logout function logs off from the IMAP server.

        imap_logon( "ImapLogon",
                "URL=imap://johnd:letmein@exchange.abc.com",
                LAST );
        imap_logout( );

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: