2019-05-17 19:45:20 +02:00
|
|
|
aerc-config(5)
|
|
|
|
|
|
|
|
# NAME
|
|
|
|
|
|
|
|
aerc-config - configuration file formats for *aerc*(1)
|
|
|
|
|
|
|
|
# CONFIGURATION
|
|
|
|
|
|
|
|
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 "=".
|
|
|
|
|
|
|
|
# AERC.CONF
|
|
|
|
|
|
|
|
This file is used for configuring the general appearance and behavior of aerc.
|
|
|
|
|
2019-06-25 09:23:52 +02:00
|
|
|
## GENERAL OPTIONS
|
|
|
|
|
|
|
|
These options are configured in the *[general]* section of aerc.conf.
|
|
|
|
|
|
|
|
*default-save-path*
|
|
|
|
Used as a default path for save operations if no other path is specified.
|
|
|
|
|
2019-05-17 19:45:20 +02:00
|
|
|
## UI OPTIONS
|
|
|
|
|
|
|
|
These options are configured in the *[ui]* section of aerc.conf.
|
|
|
|
|
|
|
|
*index-format*
|
|
|
|
Describes the format for each row in a mailbox view. This field is
|
2019-07-03 05:14:43 +02:00
|
|
|
compatible with mutt's printf-like syntax.
|
2019-05-17 19:45:20 +02:00
|
|
|
|
2019-06-07 21:35:23 +02:00
|
|
|
Default: %D %-17.17n %s
|
2019-05-17 19:45:20 +02:00
|
|
|
|
2019-07-03 05:14:43 +02:00
|
|
|
[- *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
|
2019-11-12 12:50:00 +01:00
|
|
|
: author name, or recipient name if the message is from you.
|
|
|
|
The adderss is shown if no name part.
|
2019-07-03 05:14:43 +02:00
|
|
|
| %i
|
|
|
|
: message id
|
|
|
|
| %n
|
2019-11-12 12:50:00 +01:00
|
|
|
: sender name, or sender address if none
|
2019-07-03 05:14:43 +02:00
|
|
|
| %r
|
|
|
|
: comma-separated list of formatted recipient names and addresses
|
|
|
|
| %R
|
|
|
|
: comma-separated list of formatted CC names and addresses
|
|
|
|
| %s
|
|
|
|
: subject
|
2019-07-21 22:01:51 +02:00
|
|
|
| %t
|
|
|
|
: the (first) address the new email was sent to
|
|
|
|
| %T
|
|
|
|
: the account name which received the email
|
2019-07-03 05:14:43 +02:00
|
|
|
| %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)
|
|
|
|
|
2019-05-17 19:45:20 +02:00
|
|
|
*timestamp-format*
|
2019-06-07 21:35:23 +02:00
|
|
|
See time.Time#Format at https://godoc.org/time#Time.Format
|
2019-05-17 19:45:20 +02:00
|
|
|
|
2019-06-07 21:35:23 +02:00
|
|
|
Default: 2006-01-02 03:04 PM (ISO 8601 + 12 hour time)
|
2019-05-17 19:45:20 +02:00
|
|
|
|
|
|
|
*sidebar-width*
|
|
|
|
Width of the sidebar, including the border. Set to zero to disable the
|
|
|
|
sidebar.
|
|
|
|
|
|
|
|
Default: 20
|
|
|
|
|
|
|
|
*empty-message*
|
|
|
|
Message to display when viewing an empty folder.
|
|
|
|
|
|
|
|
Default: (no messages)
|
|
|
|
|
2019-06-12 08:31:52 +02:00
|
|
|
*empty-dirlist*
|
|
|
|
Message to display when no folders exists or are all filtered.
|
|
|
|
|
|
|
|
Default: (no folders)
|
|
|
|
|
2019-07-16 20:06:22 +02:00
|
|
|
*mouse-enabled*
|
|
|
|
Enable mouse events in the ui, e.g. clicking and scrolling with the mousewheel
|
|
|
|
|
|
|
|
Default: false
|
|
|
|
|
2019-07-29 16:50:02 +02:00
|
|
|
*new-message-bell*
|
|
|
|
Ring the bell when a new message is received.
|
|
|
|
|
|
|
|
Default: true
|
|
|
|
|
2019-08-30 03:30:35 +02:00
|
|
|
*spinner*
|
|
|
|
Animation shown while loading, split by spinner-delimiter (below)
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
- spinner = "\-\_-,\_-\_"
|
|
|
|
- spinner = '. , .'
|
|
|
|
- spinner = "\,|,/,-"
|
|
|
|
|
|
|
|
Default: "[..] , [..] , [..] , [..] , [..], [..] , [..] , [..] "
|
|
|
|
|
|
|
|
*spinner-delimiter*
|
|
|
|
Spinner delimiter to split string into a animation
|
|
|
|
|
|
|
|
Default: ","
|
|
|
|
|
2019-09-20 00:37:45 +02:00
|
|
|
*sort*
|
|
|
|
List of space-separated criteria to sort the messages by, see *sort*
|
|
|
|
command in *aerc*(1) for reference. Prefixing a criterion with "-r "
|
|
|
|
reverses that criterion.
|
|
|
|
|
|
|
|
Example: "from -r date"
|
|
|
|
|
|
|
|
Default: ""
|
|
|
|
|
2019-09-11 18:37:21 +02:00
|
|
|
*dirlist-format*
|
|
|
|
Describes the format string to use for the directory list
|
|
|
|
|
|
|
|
Default: %n %>r
|
|
|
|
|
|
|
|
[- *Format specifier*
|
|
|
|
:[ *Description*
|
|
|
|
| %%
|
|
|
|
: literal %
|
|
|
|
| %n
|
|
|
|
: directory name
|
|
|
|
| %r
|
|
|
|
: recent/unseen/total message count
|
|
|
|
| %>X
|
|
|
|
: make format specifier 'X' be right justified
|
|
|
|
|
2019-09-20 21:22:09 +02:00
|
|
|
*next-message-on-delete*
|
|
|
|
Moves to next message when the current message is deleted
|
|
|
|
|
|
|
|
Default: true
|
|
|
|
|
2019-05-17 19:45:20 +02:00
|
|
|
## VIEWER
|
|
|
|
|
|
|
|
These options are configured in the *[viewer]* section of aerc.conf.
|
|
|
|
|
|
|
|
*pager*
|
|
|
|
Specifies the pager to use when displaying emails. Note that some filters
|
|
|
|
may add ANSI escape sequences to add color to rendered emails, so you may
|
|
|
|
want to use a pager which supports ANSI.
|
|
|
|
|
|
|
|
Default: less -R
|
|
|
|
|
|
|
|
*alternatives*
|
|
|
|
If an email offers several versions (multipart), you can configure which
|
|
|
|
mimetype to prefer. For example, this can be used to prefer plaintext over
|
|
|
|
HTML emails.
|
|
|
|
|
|
|
|
Default: text/plain,text/html
|
|
|
|
|
2019-07-15 20:56:44 +02:00
|
|
|
*header-layout*
|
|
|
|
Defines the default headers to display when viewing a message. To display
|
|
|
|
multiple headers in the same row, separate them with a pipe, e.g. "From|To".
|
|
|
|
Rows will be hidden if none of their specified headers are present in the
|
|
|
|
message.
|
|
|
|
|
|
|
|
Default: From|To,Cc|Bcc,Date,Subject
|
|
|
|
|
2019-07-17 20:50:31 +02:00
|
|
|
*show-headers*
|
|
|
|
Default setting to determine whether to show full headers or only parsed
|
|
|
|
ones in message viewer.
|
|
|
|
|
|
|
|
Default: false
|
|
|
|
|
2019-07-17 22:51:02 +02:00
|
|
|
*always-show-mime*
|
|
|
|
Whether to always show the mimetype of an email, even when it is just a single part.
|
|
|
|
|
|
|
|
Default: false
|
|
|
|
|
2019-05-17 19:45:20 +02:00
|
|
|
## COMPOSE
|
|
|
|
|
2019-06-22 22:55:16 +02:00
|
|
|
These options are configured in the *[compose]* section of aerc.conf.
|
2019-05-17 19:45:20 +02:00
|
|
|
|
|
|
|
*editor*
|
|
|
|
Specifies the command to run the editor with. It will be shown in an
|
|
|
|
embedded terminal, though it may also launch a graphical window if the
|
|
|
|
environment supports it. Defaults to *$EDITOR*, or *vi*(1).
|
|
|
|
|
2019-07-23 01:29:07 +02:00
|
|
|
*header-layout*
|
|
|
|
Defines the default headers to display when composing a message. To display
|
|
|
|
multiple headers in the same row, separate them with a pipe, e.g. "To|From".
|
|
|
|
|
|
|
|
Default: To|From,Subject
|
|
|
|
|
2019-05-17 19:45:20 +02:00
|
|
|
## FILTERS
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2019-06-07 17:56:48 +02:00
|
|
|
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.
|
2019-05-17 19:45:20 +02:00
|
|
|
|
2019-07-21 22:01:51 +02:00
|
|
|
## TRIGGERS
|
|
|
|
|
|
|
|
Triggers specify commands to execute when certain events occur.
|
|
|
|
|
|
|
|
They are configured in the *[triggers]* section of aerc.conf.
|
|
|
|
|
|
|
|
*new-email*
|
|
|
|
Executed when a new email arrives in the selected folder.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2019-11-03 13:51:14 +01:00
|
|
|
## Templates
|
|
|
|
|
|
|
|
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_).
|
|
|
|
|
|
|
|
*template-dirs*
|
|
|
|
The directory where the templates are stored. The config takes a
|
|
|
|
colon-separated list of dirs.
|
|
|
|
|
|
|
|
Default: "/usr/share/aerc/templates"
|
|
|
|
|
|
|
|
*quoted-reply*
|
|
|
|
The template to be used for quoted replies.
|
|
|
|
|
|
|
|
Default: "quoted_reply"
|
|
|
|
|
|
|
|
*forwards*
|
|
|
|
The template to be used for forward as body.
|
|
|
|
|
|
|
|
Default: "forward_as_body"
|
|
|
|
|
2019-05-17 19:45:20 +02:00
|
|
|
# ACCOUNTS.CONF
|
|
|
|
|
|
|
|
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*).
|
|
|
|
|
2019-06-08 19:41:56 +02:00
|
|
|
*archive*
|
|
|
|
Specifies a folder to use as the destination of the *:archive* command.
|
|
|
|
|
|
|
|
Default: Archive
|
|
|
|
|
2019-05-17 19:45:20 +02:00
|
|
|
*copy-to*
|
|
|
|
Specifies a folder to copy sent mails to, usually "Sent".
|
|
|
|
|
|
|
|
Default: none
|
|
|
|
|
|
|
|
*default*
|
|
|
|
Specifies the default folder to open in the message list when aerc
|
|
|
|
configures this account.
|
|
|
|
|
|
|
|
Default: INBOX
|
|
|
|
|
|
|
|
*folders*
|
2019-08-16 09:11:37 +02:00
|
|
|
Specifies the comma separated list of folders to display in the sidebar.
|
2019-08-20 06:04:21 +02:00
|
|
|
Names prefixed with ~ are interpreted as regular expressions.
|
2019-05-17 19:45:20 +02:00
|
|
|
|
|
|
|
Default: all folders
|
|
|
|
|
|
|
|
*from*
|
|
|
|
The default value to use for the From header in new emails. This should be
|
|
|
|
an RFC 5322-compatible string, such as "Your Name <you@example.org>".
|
|
|
|
|
|
|
|
Default: none
|
|
|
|
|
|
|
|
*outgoing*
|
|
|
|
Specifies the transport for sending outgoing emails on this account. It
|
|
|
|
should be a connection string, and the specific meaning of each component
|
|
|
|
varies depending on the protocol in use. See each protocol's man page for
|
|
|
|
more details:
|
|
|
|
|
|
|
|
- *aerc-smtp*(5)
|
|
|
|
|
2019-05-21 20:31:14 +02:00
|
|
|
*outgoing-cred-cmd*
|
2019-05-18 21:34:16 +02:00
|
|
|
Specifies an optional command that is run to get the outgoing account's
|
2019-05-21 20:31:14 +02:00
|
|
|
password. See each protocol's man page for more details.
|
2019-05-18 21:29:26 +02:00
|
|
|
|
2019-05-21 20:31:14 +02:00
|
|
|
Default: none
|
2019-05-18 21:29:26 +02:00
|
|
|
|
2019-05-17 19:45:20 +02:00
|
|
|
*source*
|
|
|
|
Specifies the source for reading incoming emails on this account. This key
|
|
|
|
is required for all accounts. It should be a connection string, and the
|
|
|
|
specific meaning of each component varies depending on the protocol in use.
|
|
|
|
See each protocol's man page for more details:
|
|
|
|
|
|
|
|
- *aerc-imap*(5)
|
2019-07-11 15:44:54 +02:00
|
|
|
- *aerc-maildir*(5)
|
2019-08-05 09:16:10 +02:00
|
|
|
- *aerc-notmuch*(5)
|
2019-05-17 19:45:20 +02:00
|
|
|
|
|
|
|
Default: none
|
|
|
|
|
2019-05-21 20:31:14 +02:00
|
|
|
*source-cred-cmd*
|
2019-05-18 21:34:16 +02:00
|
|
|
Specifies an optional command that is run to get the source account's
|
2019-05-21 20:31:14 +02:00
|
|
|
password. See each protocol's man page for more details.
|
2019-05-18 21:29:26 +02:00
|
|
|
|
2019-09-11 21:28:14 +02:00
|
|
|
*signature-file*
|
|
|
|
Specifies the file to read in order to obtain the signature to be added
|
|
|
|
to emails sent from this account.
|
|
|
|
|
|
|
|
*signature-cmd*
|
|
|
|
Specifies the command to execute in *sh* in order to obtain the
|
|
|
|
signature to be added to emails sent from this account. If the command
|
|
|
|
fails then *signature-file* is used instead.
|
2019-05-18 21:29:26 +02:00
|
|
|
|
2019-05-17 19:45:20 +02:00
|
|
|
# BINDS.CONF
|
|
|
|
|
|
|
|
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]*
|
|
|
|
keybindings for the message list
|
|
|
|
|
|
|
|
*[view]*
|
|
|
|
keybindings for the message viewer
|
|
|
|
|
|
|
|
*[compose]*
|
|
|
|
keybindings for the message composer
|
|
|
|
|
|
|
|
*[compose::editor]*
|
|
|
|
keybindings for the composer, when the editor is focused
|
|
|
|
|
|
|
|
*[compose::review]*
|
|
|
|
keybindings for the composer, when reviewing the email before it's sent
|
|
|
|
|
|
|
|
*[terminal]*
|
|
|
|
keybindings for terminal tabs
|
|
|
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
rq = :reply -q<Enter>
|
|
|
|
|
|
|
|
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*
|
|
|
|
If set to "true", global keybindings will not be effective in this context.
|
|
|
|
|
|
|
|
Default: false
|
|
|
|
|
|
|
|
*$ex*
|
|
|
|
This can be set to a keystroke which will bring up the command input in this
|
|
|
|
context.
|
|
|
|
|
|
|
|
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
|
|
|
|
:
|
|
|
|
| down
|
|
|
|
:
|
|
|
|
| right
|
|
|
|
:
|
|
|
|
| left
|
|
|
|
:
|
|
|
|
| pgup
|
|
|
|
:
|
|
|
|
| pgdn
|
|
|
|
:
|
|
|
|
| home
|
|
|
|
:
|
|
|
|
| end
|
|
|
|
:
|
|
|
|
| insert
|
|
|
|
:
|
|
|
|
| delete
|
|
|
|
:
|
|
|
|
| exit
|
|
|
|
:
|
|
|
|
| cancel
|
|
|
|
:
|
|
|
|
| print
|
|
|
|
:
|
|
|
|
| pause
|
|
|
|
:
|
|
|
|
| backtab
|
2019-06-04 05:07:54 +02:00
|
|
|
:
|
2019-05-17 19:45:20 +02:00
|
|
|
| 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+_
|
|
|
|
|
|
|
|
# SEE ALSO
|
|
|
|
|
2019-07-27 17:19:49 +02:00
|
|
|
*aerc*(1) *aerc-imap*(5) *aerc-smtp*(5) *aerc-maildir*(5) *aerc-sendmail*(5)
|
2019-08-05 09:16:10 +02:00
|
|
|
*aerc-notmuch*(5)
|
2019-05-17 19:45:20 +02:00
|
|
|
|
|
|
|
# AUTHORS
|
|
|
|
|
|
|
|
Maintained by Drew DeVault <sir@cmpwn.com>, who is assisted by other open
|
|
|
|
source contributors. For more information about aerc development, see
|
|
|
|
https://git.sr.ht/~sircmpwn/aerc.
|