pub struct Account {Show 14 fields
pub name: String,
pub user: String,
pub password_command: Option<String>,
pub password: Option<String>,
pub imap_host: Option<String>,
pub imap_port: u16,
pub imap_tls: bool,
pub smtp_host: Option<String>,
pub smtp_port: u16,
pub smtp_tls: bool,
pub auth: Option<String>,
pub token_command: Option<String>,
pub sent_folder: String,
pub identity: Option<Identity>,
}Expand description
One remote account: IMAP for reading, SMTP for sending. The
password comes from password_command (preferred) or, when you
accept a secret sitting in the config file, a literal password.
Fields§
§name: String§user: String§password_command: Option<String>Shell command whose first stdout line is the password
(pass(1)-style). Wins over password when both are set.
password: Option<String>Plaintext password. Convenient, but anyone who can read the config can read your mail, so keep it at mode 600.
imap_host: Option<String>§imap_port: u16§imap_tls: boolEncrypt IMAP (default): TLS from the first byte on port 993, STARTTLS on any other port. Disabling is for tests only.
smtp_host: Option<String>§smtp_port: u16§smtp_tls: boolEncrypt SMTP (default): implicit TLS on port 465, STARTTLS otherwise. Disabling is for tests only.
auth: Option<String>“password” (default), “xoauth2”, or “oauthbearer”. The OAuth
mechanisms authenticate with an access token from
token_command instead of a password.
token_command: Option<String>Shell command whose first stdout line is a fresh OAuth access token (refresh is its business: oauth2ms, mutt_oauth2.py, …). Run for every connection; tokens expire, so it is never cached.
sent_folder: StringIMAP folder that receives the Fcc copy of sent mail.
identity: Option<Identity>From identity when composing from this account’s mailboxes, e.g. identity = { name = “Jane Work”, email = “jane@work.example.com” }.