2 # aerc main configuration
6 # Used as a default path for save operations if no other path is specified.
7 # ~ is expanded to the current user home dir.
11 # If set to "gpg", aerc will use system gpg binary and keystore for all crypto
12 # operations. If set to "internal", the internal openpgp keyring will be used.
13 # If set to "auto", the system gpg will be preferred unless the internal
14 # keyring already exists, in which case the latter will be used.
19 # By default, the file permissions of accounts.conf must be restrictive and
20 # only allow reading by the file owner (0600). Set this option to true to
21 # ignore this permission check. Use this with care as it may expose your
25 #unsafe-accounts-conf=false
27 # Output log messages to specified file. A path starting with ~/ is expanded to
28 # the user home dir. When redirecting aerc's output to a file using > shell
29 # redirection, this setting is ignored and log messages are printed to stdout.
33 # Only log messages above the specified level to log-file. Supported levels
34 # are: trace, debug, info, warn and error. When redirecting aerc's output to
35 # a file using > shell redirection, this setting is ignored and the log level
41 # Set the $TERM environment variable used for the embedded terminal.
43 # Default: xterm-256color
46 # Display OSC8 strings in the embedded terminal
53 # Describes the format for each row in a mailbox view. This is a comma
54 # separated list of column names with an optional align and width suffix. After
55 # the column name, one of the '<' (left), ':' (center) or '>' (right) alignment
56 # characters can be added (by default, left) followed by an optional width
57 # specifier. The width is either an integer representing a fixed number of
58 # characters, or a percentage between 1% and 99% representing a fraction of the
59 # terminal width. It can also be one of the '*' (auto) or '=' (fit) special
60 # width specifiers. Auto width columns will be equally attributed the remaining
61 # terminal width. Fit width columns take the width of their contents. If no
62 # width specifier is set, '*' is used by default.
64 # Default: date<20,name<17,flags>4,subject<*
65 #index-columns=date<20,name<17,flags>4,subject<*
68 # Each name in index-columns must have a corresponding column-$name setting.
69 # All column-$name settings accept golang text/template syntax. See
70 # aerc-templates(7) for available template attributes and functions.
73 #column-date={{.DateAutoFormat .Date.Local}}
74 #column-name={{index (.From | names) 0}}
75 #column-flags={{.Flags | join ""}}
76 #column-subject={{.ThreadPrefix}}{{.Subject}}
79 # String separator inserted between columns. When the column width specifier is
80 # an exact number of characters, the separator is added to it (i.e. the exact
81 # width will be fully available for the column contents).
87 # See time.Time#Format at https://godoc.org/time#Time.Format
89 # Default: 2006-01-02 03:04 PM (ISO 8601 + 12 hour time)
90 #timestamp-format=2006-01-02 03:04 PM
93 # Index-only time format for messages that were received/sent today.
94 # If this is not specified, timestamp-format is used instead.
96 #this-day-time-format=
99 # Index-only time format for messages that were received/sent within the last
100 # 7 days. If this is not specified, timestamp-format is used instead.
102 #this-week-time-format=
105 # Index-only time format for messages that were received/sent this year.
106 # If this is not specified, timestamp-format is used instead.
108 #this-year-time-format=
111 # Width of the sidebar, including the border.
117 # Message to display when viewing an empty folder.
119 # Default: (no messages)
120 #empty-message=(no messages)
122 # Message to display when no folders exists or are all filtered
124 # Default: (no folders)
125 #empty-dirlist=(no folders)
127 # Enable mouse events in the ui, e.g. clicking and scrolling with the mousewheel
133 # Ring the bell when new messages are received
136 #new-message-bell=true
139 # Template to use for Account tab titles
141 # Default: {{.Account}}
142 tab-title-account={{.Account}} {{if .Unread}}({{.Unread}}){{end}}
144 # Marker to show before a pinned tab's name.
147 #pinned-tab-marker='`'
149 # Template for the left side of the directory list.
150 # See aerc-templates(7) for all available fields and functions.
152 # Default: {{.Folder}}
153 #dirlist-left={{.Folder}}
155 # Template for the right side of the directory list.
156 # See aerc-templates(7) for all available fields and functions.
158 # Default: {{if .Unread}}{{humanReadable .Unread}}/{{end}}{{if .Exists}}{{humanReadable .Exists}}{{end}}
159 #dirlist-right={{if .Unread}}{{humanReadable .Unread}}/{{end}}{{if .Exists}}{{humanReadable .Exists}}{{end}}
161 # Delay after which the messages are actually listed when entering a directory.
162 # This avoids loading messages when skipping over folders and makes the UI more
163 # responsive. If you do not want that, set it to 0s.
168 # Display the directory list as a foldable tree that allows to collapse and
169 # expand the folders.
174 # If dirlist-tree is enabled, set level at which folders are collapsed by
175 # default. Set to 0 to disable.
180 # List of space-separated criteria to sort the messages by, see *sort*
181 # command in *aerc*(1) for reference. Prefixing a criterion with "-r "
182 # reverses that criterion.
184 # Example: "from -r date"
188 # Moves to next message when the current message is deleted
191 #next-message-on-delete=true
193 # Automatically set the "seen" flag when a message is opened in the message
199 # The directories where the stylesets are stored. It takes a colon-separated
200 # list of directories. If this is unset or if a styleset cannot be found, the
201 # following paths will be used as a fallback in that order:
203 # ${XDG_CONFIG_HOME:-~/.config}/aerc/stylesets
204 # ${XDG_DATA_HOME:-~/.local/share}/aerc/stylesets
205 # /usr/local/share/aerc/stylesets
206 # /usr/share/aerc/stylesets
210 # Uncomment to use box-drawing characters for vertical and horizontal borders.
213 #border-char-vertical=" "
214 #border-char-horizontal=" "
216 # Sets the styleset to use for the aerc ui elements.
219 #styleset-name=default
221 # Activates fuzzy search in commands and their arguments: the typed string is
222 # searched in the command or option in any position, and need not be
223 # consecutive characters in the command or option.
226 #fuzzy-complete=false
228 # How long to wait after the last input before auto-completion is triggered.
231 #completion-delay=250ms
233 # The minimum required characters to allow auto-completion to be triggered after
237 #completion-min-chars=1
240 # Global switch for completion popovers
243 #completion-popovers=true
245 # Uncomment to use UTF-8 symbols to indicate PGP status of messages
251 #icon-signed-encrypted=✔
255 # Reverses the order of the message list. By default, the message list is
256 # ordered with the newest (highest UID) message on top. Reversing the order
257 # will put the oldest (lowest UID) message on top. This can be useful in cases
258 # where the backend does not support sorting.
261 #reverse-msglist-order = false
263 # Reverse display of the mesage threads. Default order is the the intial
264 # message is on the top with all the replies being displayed below. The
265 # reverse option will put the initial message at the bottom with the
269 #reverse-thread-order=false
271 # Sort the thread siblings according to the sort criteria for the messages. If
272 # sort-thread-siblings is false, the thread siblings will be sorted based on
273 # the message UID in ascending order. This option is only applicable for
274 # client-side threading with a backend that enables sorting. Note that there's
275 # a performance impact when sorting is activated.
278 #sort-thread-siblings=false
282 # Enable a threaded view of messages. If this is not supported by the backend
283 # (IMAP server or notmuch), threads will be built by the client.
286 #threading-enabled=false
288 # Force client-side thread building
291 #force-client-threads=false
293 # Debounce client-side thread building
296 #client-threads-delay=50ms
300 # Describes the format for the status line. This is a comma separated list of
301 # column names with an optional align and width suffix. See [ui].index-columns
302 # for more details. To completely mute the status line except for push
303 # notifications, explicitly set status-columns to an empty string.
305 # Default: left<*,center:=,right>*
306 #status-columns=left<*,center:=,right>*
309 # Each name in status-columns must have a corresponding column-$name setting.
310 # All column-$name settings accept golang text/template syntax. See
311 # aerc-templates(7) for available template attributes and functions.
314 #column-left=[{{.Account}}] {{.StatusInfo}}
315 #column-center={{.PendingKeys}}
316 #column-right={{.TrayInfo}}
319 # String separator inserted between columns.
320 # See [ui].column-separator for more details.
322 #column-separator=" "
324 # Specifies the separator between grouped statusline elements.
329 # Defines the mode for displaying the status elements.
330 # Options: text, icon
337 # Specifies the pager to use when displaying emails. Note that some filters
338 # may add ANSI codes to add color to rendered emails, so you may want to use a
339 # pager which supports ANSI codes.
345 # If an email offers several versions (multipart), you can configure which
346 # mimetype to prefer. For example, this can be used to prefer plaintext over
349 # Default: text/plain,text/html
350 #alternatives=text/plain,text/html
353 # Default setting to determine whether to show full headers or only parsed
354 # ones in message viewer.
360 # Layout of headers when viewing a message. To display multiple headers in the
361 # same row, separate them with a pipe, e.g. "From|To". Rows will be hidden if
362 # none of their specified headers are present in the message.
364 # Default: From|To,Cc|Bcc,Date,Subject
365 #header-layout=From|To,Cc|Bcc,Date,Subject
367 # Whether to always show the mimetype of an email, even when it is just a single part
370 #always-show-mime=false
372 # Parses and extracts http links when viewing a message. Links can then be
373 # accessed with the open-link command.
376 #parse-http-links=true
380 # Specifies the command to run the editor with. It will be shown in an embedded
381 # terminal, though it may also launch a graphical window if the environment
382 # supports it. Defaults to $EDITOR, or vi.
386 # Default header fields to display when composing a message. To display
387 # multiple headers in the same row, separate them with a pipe, e.g. "To|From".
389 # Default: To|From,Subject
390 #header-layout=To|From,Subject
393 # Specifies the command to be used to tab-complete email addresses. Any
394 # occurrence of "%s" in the address-book-cmd will be replaced with what the
395 # user has typed so far.
397 # The command must output the completions to standard output, one completion
398 # per line. Each line must be tab-delimited, with an email address occurring as
399 # the first field. Only the email address field is required. The second field,
400 # if present, will be treated as the contact name. Additional fields are
403 # This parameter can also be set per account in accounts.conf.
406 # Specifies the command to be used to select attachments. Any occurence of '%s'
407 # in the file-picker-cmd will be replaced the argument <arg> to :attach -m
410 # The command must output the selected files to standard output, one file per
415 # Allow to address yourself when replying
421 # Warn before sending an email that matches the specified regexp but does not
422 # have any attachments. Leave empty to disable this feature.
424 # Uses Go's regexp syntax, documented at https://golang.org/s/re2syntax. The
425 # "(?im)" flags are set by default (case-insensitive and multi-line).
428 # no-attachment-warning=^[^>]*attach(ed|ment)
430 #no-attachment-warning=
433 # When set, aerc will generate "format=flowed" bodies with a content type of
434 # "text/plain; format=flowed" as described in RFC3676. This format is easier to
435 # handle for some mailing software, and generally just looks like ordinary
436 # text. To actually make use of this format's features, you'll need support in
441 [multipart-converters]
443 # Converters allow to generate multipart/alternative messages by converting the
444 # main text/plain part into any other MIME type. Only exact MIME types are
445 # accepted. The commands are invoked with sh -c and are expected to output
448 # Example (obviously, this requires that you write your main text/plain body
449 # using the markdown syntax):
450 text/html=pandoc -f markdown -t html --standalone
454 # Filters allow you to pipe an email body through a shell command to render
455 # certain emails differently, e.g. highlighting them with ANSI escape codes.
457 # The commands are invoked with sh -c. The following folders are appended to
458 # the system $PATH to allow referencing filters from their name only:
460 # ${XDG_CONFIG_HOME:-~/.config}/aerc/filters
461 # ${XDG_DATA_HOME:-~/.local/share}/aerc/filters
462 # $PREFIX/share/aerc/filters
463 # /usr/share/aerc/filters
465 # The following variables are defined in the filter command environment:
467 # AERC_MIME_TYPE the part MIME type/subtype
468 # AERC_FORMAT the part content type format= parameter
469 # AERC_FILENAME the attachment filename (if any)
470 # AERC_SUBJECT the message Subject header value
471 # AERC_FROM the message From header value
473 # The first filter which matches the email's mimetype will be used, so order
474 # them from most to least specific.
476 # You can also match on non-mimetypes, by prefixing with the header to match
477 # against (non-case-sensitive) and a comma, e.g. subject,text will match a
478 # subject which contains "text". Use header,~regex to match against a regex.
481 text/calendar=calendar
482 message/delivery-status=colorize
483 message/rfc822=colorize
484 text/html=pandoc -f html -t plain | colorize
485 #text/html=html | colorize
486 text/*=bat -fP --file-name="$AERC_FILENAME"
487 #application/x-sh=bat -fP -l sh
488 #image/*=catimg -w $(tput cols) -
489 #subject,~Git(hub|lab)=lolcat -f
490 #from,thatguywhodoesnothardwraphismessages=wrap -w 100 | colorize
492 # This special filter is only used to post-process email headers when
493 # [viewer].show-headers=true
494 # By default, headers are piped directly into the pager.
500 # Openers allow you to specify the command to use for the :open and :open-link
501 # actions on a per-MIME-type basis. The :open-link URL scheme is used to
502 # determine the MIME type as follows: x-scheme-handler/<scheme>.
504 # {} is expanded as the temporary filename to be opened. If it is not
505 # encountered in the command, the temporary filename will be appened to the end
508 # Like [filters], openers support basic shell globbing. The first opener which
509 # matches the part's MIME type (or URL scheme handler MIME type) will be used,
510 # so order them from most to least specific.
513 # x-scheme-handler/irc=hexchat
514 # x-scheme-handler/http*=firefox
515 # text/html=surf -dfgms
516 # text/plain=gvim {} +125
517 # message/rfc822=thunderbird
521 # Hooks are triggered whenever the associated event occurs.
524 # Executed when a new email arrives in the selected folder
525 #mail-received=notify-send "New mail from $AERC_FROM_NAME" "$AERC_SUBJECT"
528 # Executed when aerc starts
529 #aerc-startup=aerc :terminal calcurse && aerc :next-tab
532 # Executed when aerc shuts down.
536 # Templates are used to populate email bodies automatically.
539 # The directories where the templates are stored. It takes a colon-separated
540 # list of directories. If this is unset or if a template cannot be found, the
541 # following paths will be used as a fallback in that order:
543 # ${XDG_CONFIG_HOME:-~/.config}/aerc/templates
544 # ${XDG_DATA_HOME:-~/.local/share}/aerc/templates
545 # /usr/local/share/aerc/templates
546 # /usr/share/aerc/templates
550 # The default template to be used for new messages.
552 # default: new_message
553 #new-message=new_message
555 # The default template to be used for quoted replies.
557 # default: quoted_reply
558 #quoted-reply=quoted_reply
560 # The default template to be used for forward as body.
562 # default: forward_as_body
563 #forwards=forward_as_body