Mail Account Functions

Mail Account Functions

Synopsis

#include <e-util/e-account-utils.h>

EAccountList *      e_get_account_list                  (void);
EAccount *          e_get_default_account               (void);
void                e_set_default_account               (EAccount *account);
EAccount *          e_get_account_by_name               (const gchar *name);
EAccount *          e_get_account_by_uid                (const gchar *uid);

Description

Details

e_get_account_list ()

EAccountList *      e_get_account_list                  (void);

Returns the global EAccountList.

Returns :

the global EAccountList

e_get_default_account ()

EAccount *          e_get_default_account               (void);

Returns the EAccount marked as the default mail account.

Returns :

the default EAccount

e_set_default_account ()

void                e_set_default_account               (EAccount *account);

Marks account as the default mail account.

account :

an EAccount

e_get_account_by_name ()

EAccount *          e_get_account_by_name               (const gchar *name);

Returns the EAccount with the given name, or NULL if no such account exists.

name :

a mail account name

Returns :

an EAccount having the given account name, or NULL

e_get_account_by_uid ()

EAccount *          e_get_account_by_uid                (const gchar *uid);

Returns the EAccount with the given unique ID, or NULL if no such account exists.

uid :

a mail account UID

Returns :

an EAccount having the given unique ID, or NULL