AERC-ACCOUNTS(5) | File Formats Manual | AERC-ACCOUNTS(5) |
NAME
aerc-accounts - account configuration file format for aerc(1)
SYNOPSIS
The accounts.conf file is used for configuring each mail account used for aerc. It is expected to be in your XDG config home plus aerc, which defaults to ~/.config/aerc/accounts.conf. This file must be kept secret, as it may include your account credentials. An alternate file can be specified via the --accounts-conf command line argument, see aerc(1).
If accounts.conf does not exist, the :new-account configuration wizard will be executed automatically on first startup.
This file is written in the ini format where each [section] is the name of an account you want to configure, and the keys & values in that section specify details of that account's configuration. Global options may be configured by placing them at the top of the file, before any account-specific sections. These can be overridden for an account by specifying them again in the account section. In addition to the options documented here, specific transports for incoming and outgoing emails may have additional configuration parameters, documented on their respective man pages.
CONFIGURATION
Note that many of these configuration options are written for you, such as source and outgoing, when you run the account configuration wizard (:new-account).
archive = <folder>
Default: Archive
check-mail = <duration>
Setting this option to 0 will disable check-mail
Example:
Default: 0
copy-to = <folder>
default = <folder>
Default: INBOX
folders = <folder1,folder2,folder3...>
By default, all folders are displayed.
folders-exclude = <folder1,folder2,folder3...>
By default, no folders are excluded.
enable-folders-sort = true|false
Default: true
folders-sort = <folder1,folder2,folder3...>
folder-map = <file>
Note that other account options such as archive, default, copy-to, postpone, folders, folders-exclude, folders-sort need to be adjusted if one of those folders is affected by a folder mapping.
To apply the mapping to subfolders or folders with a similar prefix, append '*' to the server folder name.
Examples:
Remap a single folder:
Spam = [Gmail]/Spam
Remap the folder and all of its subfolders:
G = [Gmail]*
Remove a prefix for all subfolders:
* = [Gmail]/*
Remap all subfolders and avoid a folder collision:
Archive/existing = Archive* Archive = OldArchive*
from = <address>
aliases = <address1,address2,address3...>
An alias can also use fnmatch-style wildcards in the address portion. These wildcards can be useful for catch-all addresses. For example, the alias "Your Name" <*@you.com> would ensure that when replying to emails addressed to hi@you.com and contact@you.com, the From: field is set to hi@you.com and contact@you.com, respectively. The name from the alias, not from the matching address, is used.
headers = <header1,header2,header3...>
By default, all headers are fetched. If any headers are specified in this list, aerc will append it to the following list of required headers:
- date
- subject
- from
- sender
- reply-to
- to
- cc
- bcc
- in-reply-to
- message-id
- references
headers-exclude = <header1,header2,header3...>
By default, no headers are excluded.
outgoing = <uri>
outgoing-cred-cmd = <command>
outgoing-cred-cmd-cache = true|false
Default: true
pgp-auto-sign = true|false
Default: false
pgp-attach-key = true|false
Default: false
pgp-self-encrypt = true|false
Default: false
pgp-error-level = none|warn|error
Default: warn
pgp-key-id = <key-id>
pgp-opportunistic-encrypt = true|false
Default: false
postpone = <folder>
Default: Drafts
send-as-utc = true|false
Default: false
send-with-hostname = true|false
Default: false
source = <uri>
source-cred-cmd = <command>
signature-file = <path>
Please note that by convention the Usenet signature style of two dashes, followed by a space ("-- ") should be placed at the top of the signature to separate content and signature. Aerc will add that delimiter if it is not already present.
signature-cmd = <command>
trusted-authres = <host1,host2,host3...>
subject-re-pattern = <regexp>
Default: (?i)^((AW|RE|SV|VS|ODP|R): ?)+
SEE ALSO
aerc(1) aerc-config(5) aerc-imap(5) aerc-jmap(5) aerc-maildir(5) aerc-notmuch(5) aerc-sendmail(5) aerc-smtp(5)
AUTHORS
Originally created by Drew DeVault and maintained by Robin Jarry who is assisted by other open source contributors. For more information about aerc development, see https://sr.ht/~rjarry/aerc/.
2024-07-30 |