pub struct Config {Show 21 fields
pub identity: Identity,
pub mail: Mail,
pub index: Index,
pub pager: Pager,
pub ui: Ui,
pub net: Net,
pub sidebar: Sidebar,
pub colors: HashMap<String, String>,
pub color_index: Vec<ColorRule>,
pub color_body: Vec<ColorRule>,
pub filters: HashMap<String, String>,
pub keys: Keys,
pub macros: Keys,
pub accounts: Vec<Account>,
pub identities: Vec<IdentityRule>,
pub folder_hooks: Vec<FolderHook>,
pub message_hooks: Vec<MessageHook>,
pub reply_hooks: Vec<MessageHook>,
pub fcc_hooks: Vec<FccHook>,
pub crypt_hooks: Vec<CryptHook>,
pub pgp: Pgp,
}Fields§
§identity: Identity§mail: Mail§index: Index§pager: Pager§ui: Ui§net: Net§colors: HashMap<String, String>§color_index: Vec<ColorRule>Pattern → color rules for index lines, evaluated in order.
color_body: Vec<ColorRule>Regex → color rules for pager body spans (mutt’s color body),
applied in order; pattern here is a plain regex, not a
message pattern.
filters: HashMap<String, String>MIME type → shell command that renders the part (stdin → stdout),
e.g. “text/html” = “w3m -dump -T text/html”, mutt’s auto_view.
Applied to matching parts wherever they sit in the message,
preferred in multipart/alternative, and used in the attachment
viewer. An empty command means mutt’s arrangement: the command
comes from mailcap, from the first copiousoutput entry for
the type; a type with no such entry simply does not autoview.
keys: Keys§macros: KeysMacros: a key that replays a sequence of keys, per menu:
[macros.index] / [macros.pager], key = "sequence". The
sequence is literal characters plus <enter>/<esc>/
<ctrl+x>/… names in angle brackets; it feeds the input
queue, so it can drive prompts.
accounts: Vec<Account>§identities: Vec<IdentityRule>Conditional identities, applied in order over identity when
their globs match: the minimal folder-hook / send-hook.
folder_hooks: Vec<FolderHook>mutt’s folder-hook with an arbitrary command: enter-command lines run when a matching mailbox is opened.
message_hooks: Vec<MessageHook>mutt’s message-hook: lines applied while a matching message is the selected one, and taken back off when it stops matching.
reply_hooks: Vec<MessageHook>mutt’s reply-hook: lines applied while a reply to a matching message is built.
fcc_hooks: Vec<FccHook>mutt’s fcc-hook: where a matching outgoing message’s copy goes.
crypt_hooks: Vec<CryptHook>mutt’s crypt-hook: the PGP key to encrypt to for a recipient.
pgp: PgpImplementations§
Source§impl Config
impl Config
pub fn account(&self, name: &str) -> Option<&Account>
Sourcepub fn list_matchers(&self) -> Vec<Matcher>
pub fn list_matchers(&self) -> Vec<Matcher>
The identity for a draft, layered like mutt hooks: [identity],
then the account’s, then every matching [[identities]] rule in
order (a later rule overrides an earlier one; unset fields keep
the value below). rcpts are the draft’s bare recipient
addresses, empty when they are not known yet, which makes
recipient rules not match.
Every known mailing-list pattern (lists plus subscribed),
compiled for matching against addresses.
Sourcepub fn subscribed_matchers(&self) -> Vec<Matcher>
pub fn subscribed_matchers(&self) -> Vec<Matcher>
The subscribed half on its own, for the Mail-Followup-To rule.
Sourcepub fn alternate_matchers(&self) -> Vec<Matcher>
pub fn alternate_matchers(&self) -> Vec<Matcher>
mutt’s alternates, compiled for matching against a bare
address.
pub fn identity_for( &self, folder: &str, rcpts: &[String], account: Option<&Account>, ) -> Identity
Source§impl Config
impl Config
Sourcepub fn expand_folders(&mut self)
pub fn expand_folders(&mut self)
Expand =x / +x in every mailbox the config names, so the
rest of the program only ever sees real paths and imap: specs.
Idempotent: an expanded name no longer starts with = or +.