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

Description

Functions

get_ssl_context ()

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

error ()

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

event ()

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

authenticate ()

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

confirm ()

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

folder_new ()

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

folder_delete ()

void
(*folder_delete) (Folder *folder);

message_new ()

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

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);

message_set_body ()

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

init ()

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

destroy ()

int
(*destroy) (AccountPlugin *plugin);

get_config ()

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

get_source ()

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

start ()

int
(*start) (AccountPlugin *plugin);

stop ()

void
(*stop) (AccountPlugin *plugin);

refresh ()

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

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

   

Account

typedef struct _Account Account;

AccountPlugin

typedef struct _AccountPlugin AccountPlugin;