Example: imap_free_ex

In the following example, the imap_free_ex function frees a session descriptor.

    imap_logon_ex( &imap2, "ImapLogon",
            "URL=imap://johnd:letmein@exchange.mycompany.com",
            LAST );
    imap_logout_ex(&imap2);
    imap_free_ex(&imap2); // Free the IMAP descriptor