23#ifndef MUTT_CONN_CONNACCOUNT_H
24#define MUTT_CONN_CONNACCOUNT_H
42#define MUTT_ACCT_NO_FLAGS 0
43#define MUTT_ACCT_PORT (1 << 0)
44#define MUTT_ACCT_USER (1 << 1)
45#define MUTT_ACCT_LOGIN (1 << 2)
46#define MUTT_ACCT_PASS (1 << 3)
47#define MUTT_ACCT_SSL (1 << 4)
int mutt_account_getuser(struct ConnAccount *account)
Retrieve username into ConnAccount, if necessary.
uint8_t MuttAccountFlags
Flags, Which ConnAccount fields are initialised, e.g. MUTT_ACCT_PORT.
ConnAccountField
Login credentials.
@ MUTT_CA_OAUTH_CMD
OAuth refresh command.
@ MUTT_CA_LOGIN
Login name.
@ MUTT_CA_HOST
Server name.
void mutt_account_unsetpass(struct ConnAccount *account)
Unset ConnAccount's password.
ExpandoDataNntp
Expando UIDs for NNTP.
@ ED_NTP_SCHEMA
ConnAccount.account.
@ ED_NTP_USERNAME
ConnAccount.user.
@ ED_NTP_PORT_IF
ConnAccount.port.
@ ED_NTP_SERVER
ConnAccount.account.
@ ED_NTP_ACCOUNT
ConnAccount.account.
@ ED_NTP_PORT
ConnAccount.port.
int mutt_account_getpass(struct ConnAccount *account)
Fetch password into ConnAccount, if necessary.
char * mutt_account_getoauthbearer(struct ConnAccount *account, bool xoauth2)
Get an OAUTHBEARER/XOAUTH2 token.
int mutt_account_getlogin(struct ConnAccount *account)
Retrieve login info into ConnAccount, if necessary.
Login details for a remote server.
char login[128]
Login name.
const char * service
Name of the service, e.g. "imap".
char host[128]
Server to login to.
unsigned char type
Connection type, e.g. MUTT_ACCT_TYPE_IMAP.
MuttAccountFlags flags
Which fields are initialised, e.g. MUTT_ACCT_USER.
void * gf_data
Private data to pass to get_field()
unsigned short port
Port to connect to.