aerc-config
configuration file formats for aerc(1)
- Provided by: aerc (Version: 0.8.2-1ubuntu0.3)
- Report a bug
configuration file formats for aerc(1)
There are three aerc config files: aerc.conf, binds.conf, and accounts.conf. The last one must be kept secret, as it may include your account credentials. We look for these files in your XDG config home plus "aerc", which defaults to ~/.config/aerc.
Examples of these config files are typically included with your installation of aerc and are usually installed in /usr/share/aerc.
Each file uses the ini format, and consists of sections with keys and values. A line beginning with # is considered a comment and ignored, as are empty lines. New sections begin with [section-name] on a single line, and keys and values are separated with "=".
This file is used for configuring the general appearance and behavior of aerc.
These options are configured in the [general] section of aerc.conf.
default-save-path
These options are configured in the [ui] section of aerc.conf.
index-format
Default: %D %-17.17n %s
| Format specifier | Description |
| %% | literal % |
| %a | sender address |
| %A | reply-to address, or sender address if none |
| %C | message number |
| %d | formatted message timestamp |
| %D | formatted message timestamp converted to local timezone |
| %f | sender name and address |
| %F | author name, or recipient name if the message is from you. The address is shown if no name part. |
| %g | message labels (for example notmuch tags) |
| %i | message id |
| %n | sender name, or sender address if none |
| %r | comma-separated list of formatted recipient names and addresses |
| %R | comma-separated list of formatted CC names and addresses |
| %s | subject |
| %t | the (first) address the new email was sent to |
| %T | the account name which received the email |
| %u | sender mailbox name (e.g. "smith" in "smith@example.net") |
| %v | sender first name (e.g. "Alex" in "Alex Smith <smith@example.net>") |
| %Z | flags (O=old, N=new, r=answered, D=deleted, !=flagged, *=marked) |
timestamp-format
Default: "2006-01-02 03:04 PM" (ISO 8601 + 12 hour time)
this-day-time-format
Default: "03:04 PM" (12 hour time)
this-week-time-format
Default: "Monday 03:04 PM" (Week day + 12 hour time)
this-year-time-format
Default: "January 02" (Month + month day)
sidebar-width
Default: 20
empty-message
Default: (no messages)
empty-dirlist
Default: (no folders)
mouse-enabled
Default: false
new-message-bell
Default: true
pinned-tab-marker
Default: `
spinner
Examples:
Default: "[..] , [..] , [..] , [..] , [..], [..] , [..] , [..] "
spinner-delimiter
Default: ","
sort
Example: "from -r date"
Default: ""
dirlist-format
Default: %n %>r
| Format specifier | Description |
| %% | literal % |
| %n | directory name |
| %r | recent/unseen/total message count |
| %>X | make format specifier 'X' be right justified |
dirlist-delay
Default: 200ms
next-message-on-delete
Default: true
completion-popovers
Default: true
completion-delay
Default: 250ms
border-char-vertical border-char-horizontal
Default: spaces
stylesets-dirs
~/.config/aerc/stylesets ~/.local/share/aerc/stylesets /usr/local/share/aerc/stylesets /usr/share/aerc/stylesets
Default: ""
styleset-name
Default: default
Have a look at aerc-stylesets(7) as to how a styleset looks like.
fuzzy-folder-complete
threading-enabled
This option should only be set to true for specific accounts accordingly. See Contextual UI Configuration below.
Default: false
The UI configuration can be specialized for accounts, specific mail directories and message subjects. The specializations are added using contextual config sections based on the context.
The contextual UI configuration is merged to the base UiConfig in the following order: Base UIConfig > Account Context > Folder Context > Subject Context.
[ui:account=<AccountName>]
[ui:folder=<FolderName>]
[ui:folder~<Regex>]
[ui:subject~<Regex>]
Example:
[ui:account=Work] sidebar-width=... [ui:folder=Sent] index-format=... [ui:folder~Archive/d+/.*] index-format=... [ui:subject~^[PATCH] index-format=...
These options are configured in the [viewer] section of aerc.conf.
pager
Default: less -R
alternatives
Default: text/plain,text/html
header-layout
Default: From|To,Cc|Bcc,Date,Subject
show-headers
Default: false
always-show-mime
Default: false
These options are configured in the [compose] section of aerc.conf.
editor
header-layout
Default: To|From,Subject
address-book-cmd
The command must output the completions to standard output, one completion per line. Each line must be tab-delimited, with an email address occurring as the first field. Only the email address field is required. The second field, if present, will be treated as the contact name. Additional fields are ignored.
Example:
Default: none
reply-to-self
Default: true
Filters allow you to pipe an email body through a shell command to render certain emails differently, e.g. highlighting them with ANSI escape codes. They are configured in the [filters] section of aerc.conf.
The first filter which matches the email's mimetype will be used, so order them from most to least specific.
You can also match on non-mimetypes, by prefixing with the header to match against (non-case-sensitive) and a comma, e.g. subject,text will match a subject which contains "text". Use header,~regex to match against a regex.
aerc ships with some default filters installed in the share directory (usually /usr/share/aerc/filters). Note that these may have additional dependencies that aerc does not have alone.
Triggers specify commands to execute when certain events occur.
They are configured in the [triggers] section of aerc.conf.
new-email
e.g. new-email=exec notify-send "New email from %n" "%s"
Default: ""
Format specifiers from index-format are expanded with respect to the new message.
Templates are used to populate the body of an email. The compose, reply and forward commands can be called with the -T flag with the name of the template name.
aerc ships with some default templates installed in the share directory (usually /usr/share/aerc/templates).
These options are configured in the [templates] section of aerc.conf.
template-dirs
~/.config/aerc/templates ~/.local/share/aerc/templates /usr/local/share/aerc/templates /usr/share/aerc/templates
Default: ""
new-message
Default: "new_message"
quoted-reply
Default: "quoted_reply"
forwards
Default: "forward_as_body"
This file is used for configuring each mail account used for aerc. 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. 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.
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
Default: Archive
copy-to
Default: none
default
Default: INBOX
folders
Default: all folders
folders-exclude
Default: no folders
enable-folders-sort
Default: true
folders-sort
Default: none
from
Default: none
aliases
Default: none
outgoing
outgoing-cred-cmd
Default: none
postpone
Default: Drafts
source
Default: none
source-cred-cmd
signature-file
signature-cmd
This file is used for configuring keybindings used in the aerc interactive client. You may configure different keybindings for different contexts by writing them into different [sections] of the ini file. The available contexts are:
[messages]
[view]
[compose]
[compose::editor]
[compose::review]
[terminal]
You may also configure account specific key bindings for each context:
[context:account=<AccountName>]
Example:
[messages:account=Mailbox] c = :cf path:mailbox/** and<space> [compose::editor:account=Mailbox2] ...
You may also configure global keybindings by placing them at the beginning of the file, before specifying any context-specific sections. For each key=value option specified, the key is the keystrokes pressed (in order) to invoke this keybinding, and value specifies keystrokes that aerc will simulate when the keybinding is invoked. Generally this is used to execute commands, for example:
Pressing r, then q, will simulate typing in ":reply -q<Enter>", and execute :reply -q accordingly. It is also possible to invoke keybindings recursively in a similar fashion. Additionally, the following special options are available in each binding context:
$noinherit
Default: false
$ex
Default: <semicolon>
In addition to letters, special keys may be specified in <angle brackets>. The following special keys are supported:
| Name | Description |
| space | " " |
| semicolon | ; |
| tab | |
| enter | |
| up | |
| c-up | Ctrl+Up |
| down | |
| c-down | Ctrl+Down |
| right | |
| c-right | Ctrl+Right |
| left | |
| c-left | Ctrl+Left |
| pgup | |
| c-pgup | Ctrl+PageUp |
| pgdn | |
| c-pgdn | Ctrl+PageUp |
| home | |
| end | |
| insert | |
| delete | |
| exit | |
| cancel | |
| pause | |
| backtab | |
| c-space | Ctrl+Space |
| c-a | Ctrl+a |
| c-b | Ctrl+b |
| c-c | Ctrl+c |
| c-d | Ctrl+d |
| c-e | Ctrl+e |
| c-f | Ctrl+f |
| c-g | Ctrl+g |
| c-h | Ctrl+h |
| c-i | Ctrl+i |
| c-j | Ctrl+j |
| c-k | Ctrl+k |
| c-l | Ctrl+l |
| c-m | Ctrl+m |
| c-n | Ctrl+n |
| c-o | Ctrl+o |
| c-p | Ctrl+p |
| c-q | Ctrl+q |
| c-r | Ctrl+r |
| c-s | Ctrl+s |
| c-t | Ctrl+t |
| c-u | Ctrl+u |
| c-v | Ctrl+v |
| c-w | Ctrl+w |
| c-x | Ctrl+x |
| c-y | Ctrl+y |
| c-z | Ctrl+z |
| c-] | Ctrl+] |
| c-[ | Ctrl+[ |
| c-^ | Ctrl+^ |
| c-_ | Ctrl+_ |
aerc(1) aerc-imap(5) aerc-smtp(5) aerc-maildir(5) aerc-sendmail(5) aerc-notmuch(5) aerc-stylesets(7)
Originally created by Drew DeVault <sir@cmpwn.com> and maintained by Robin Jarry <robin@jarry.cc> who is assisted by other open source contributors. For more information about aerc development, see https://sr.ht/~rjarry/aerc/.