#include <libmail/sync.H> mail::ACCOUNT *mail;
mail::ACCOUNT::logout closes a mail account. This method should be called before destroying the mail::ACCOUNT object. Some types of mail accounts require certain processing before they are closed. Destroying the object without mail::ACCOUNT::logout may result in some changes to the mail account's contents not being permanently saved.
Return Codes and Callbacks
The mail::ACCOUNT object should be destroyed after this function returns. The object should not be recycled, and connected to another mail account.