Mailer Reference Manual: account

## account account |

## Functions

SSL_CTX * | (*get_ssl_context) ()
int | (*error) ()
void | (*event) ()
char * | (*authenticate) ()
int | (*confirm) ()
Folder * | (*folder_new) ()
void | (*folder_delete) ()
Message * | (*message_new) ()
void | (*message_delete) ()
void | message_set_flag ()
int | (*message_set_header) ()
int | (*message_set_body) ()
AccountPlugin * | (*init) ()
int | (*destroy) ()
AccountConfig * | (*get_config) ()
char * | (*get_source) ()
int | (*start) ()
void | (*stop) ()
int | (*refresh) ()

## Types and Values

enum | AccountConfigType
enum | AccountStatus
enum | AccountEventType
| AccountPlugin
| Account

## Description

## Functions

### get_ssl_context ()

    SSL_CTX *
    (*get_ssl_context) (Account *account);

#### Returns

### error ()

    int
    (*error) (Account *account,
              char const *message,
              int ret);

#### Returns

### event ()

    void
    (*event) (Account *account,
              AccountEvent *event);

### authenticate ()

    char *
    (*authenticate) (Account *account,
                     char const *message);

#### Returns

### confirm ()

    int
    (*confirm) (Account *account,
                char const *message);

#### Returns

### folder_new ()

    Folder *
    (*folder_new) (Account *account,
                   AccountFolder *folder,
                   Folder *parent,
                   FolderType type,
                   char const *name);

#### Returns

### folder_delete ()

    void
    (*folder_delete) (Folder *folder);

### message_new ()

    Message *
    (*message_new) (Account *account,
                    Folder *folder,
                    AccountMessage *message);

#### Returns

### message_delete ()

    void
    (*message_delete) (Message *message);

### message_set_flag ()

    void
    message_set_flag (MailerMessage *message,
                      MailerMessageFlag flag);

### message_set_header ()

    int
    (*message_set_header) (Message *message,
                           char const *header);

#### Returns

### message_set_body ()

    int
    (*message_set_body) (Message *message,
                         char const *buf,
                         size_t cnt,
                         int append);

#### Returns

### init ()

    AccountPlugin *
    (*init) (AccountPluginHelper *helper);

#### Returns

### destroy ()

    int
    (*destroy) (AccountPlugin *plugin);

#### Returns

### get_config ()

    AccountConfig *
    (*get_config) (AccountPlugin *plugin);

#### Returns

### get_source ()

    char *
    (*get_source) (AccountPlugin *plugin,
                   AccountFolder *folder,
                   AccountMessage *message);

#### Returns

### start ()

    int
    (*start) (AccountPlugin *plugin);

#### Returns

### stop ()

    void
    (*stop) (AccountPlugin *plugin);

### refresh ()

    int
    (*refresh) (AccountPlugin *plugin,
                AccountFolder *folder,
                AccountMessage *message);

#### Returns

## Types and Values

### enum AccountConfigType

#### Members

ACT_NONE |  |
ACT_STRING |  |
ACT_PASSWORD |  |
ACT_FILE |  |
ACT_UINT16 |  |
ACT_BOOLEAN |  |
ACT_SEPARATOR |  |

### enum AccountStatus

#### Members

AS_CONNECTING |  |
AS_CONNECTED |  |
AS_DISCONNECTED |  |
AS_AUTHENTICATED |  |
AS_IDLE |  |

### enum AccountEventType

#### Members

AET_STARTED |  |
AET_STOPPED |  |
AET_STATUS |  |

### AccountPlugin

    typedef struct _AccountPlugin AccountPlugin;

### Account

    typedef struct _Account Account;