Debian Codegraph @

doc/aerc-accounts.5.scd

raw
1 AERC-ACCOUNTS(5)
2
3 # NAME
4
5 aerc-accounts - account configuration file format for *aerc*(1)
6
7 # SYNOPSIS
8
9 The _accounts.conf_ file is used for configuring each mail account used for
10 aerc. It is expected to be in your XDG config home plus _aerc_, which defaults
11 to _~/.config/aerc/accounts.conf_. This file must be kept secret, as it may
12 include your account credentials. An alternate file can be specified via the
13 _--accounts-conf_ command line argument, see *aerc*(1).
14
15 If _accounts.conf_ does not exist, the *:new-account* configuration wizard will
16 be executed automatically on first startup.
17
18 This file is written in the ini format where each *[section]* is the name of an
19 account you want to configure, and the keys & values in that section specify
20 details of that account's configuration. Global options may be configured by
21 placing them at the top of the file, before any account-specific sections. These
22 can be overridden for an account by specifying them again in the account
23 section. In addition to the options documented here, specific transports for
24 incoming and outgoing emails may have additional configuration parameters,
25 documented on their respective man pages.
26
27 # CONFIGURATION
28
29 Note that many of these configuration options are written for you, such as
30 *source* and *outgoing*, when you run the account configuration wizard
31 (*:new-account*).
32
33 *archive* = _<folder>_
34 Specifies a folder to use as the destination of the *:archive* command.
35
36 Default: _Archive_
37
38 *check-mail* = _<duration>_
39 Specifies an interval to check for new mail. Mail will be checked at
40 startup, and every interval. IMAP accounts will check for mail in all
41 unselected folders, and the selected folder will continue to receive
42 PUSH mail notifications. Maildir/Notmuch folders must use
43 *check-mail-cmd* in conjunction with this option. See *aerc-maildir*(5)
44 and *aerc-notmuch*(5) for more information.
45
46 Setting this option to _0_ will disable *check-mail*
47
48 Example:
49 *check-mail* = _5m_
50
51 Default: _0_
52
53 *reconnect-maxwait* = _<duration>_
54 Specifies the maximum delay between reconnection attempts when the
55 connection is lost. Reconnection uses exponential backoff starting
56 from immediate retry, then increasing delays (approximately 1.8^n
57 seconds) until this maximum is reached.
58
59 Default: _30s_
60
61 *copy-to* = _<folder1,folder2,folder3...>_
62 Specifies a comma separated list of folders to copy sent mails to,
63 usually _Sent_.
64
65 By default, the mail is copied to no folders;
66
67 *copy-to-replied* = _true_|_false_
68 In addition of *copy-to*, also copy replies to the folder in which the
69 replied message is.
70
71 Default: _false_
72
73 *strip-bcc* = _true_|_false_
74 Strip _Bcc_ headers before sending emails. This also affects local
75 copies of the sent messages (*copy-to* and *copy-to-replied*).
76
77 Some email providers/backends automatically strip _Bcc_ headers before
78 dispatching the messages to recipients. Double check before setting this
79 to _false_ to avoid leaking any private information.
80
81 Default: _true_
82
83 *default* = _<folder>_
84 Specifies the default folder to open in the message list when aerc
85 configures this account.
86
87 Default: _INBOX_
88
89 *folders* = _<folder1,folder2,folder3...>_
90 Specifies the comma separated list of folders to display in the sidebar.
91 Names prefixed with _~_ are interpreted as regular expressions.
92
93 By default, all folders are displayed.
94
95 *folders-exclude* = _<folder1,folder2,folder3...>_
96 Specifies the comma separated list of folders to exclude from the sidebar.
97 Names prefixed with _~_ are interpreted as regular expressions.
98 Note that this overrides anything from *folders*.
99
100 By default, no folders are excluded.
101
102 *enable-folders-sort* = _true_|_false_
103 If _true_, folders are sorted, first by specified folders (see *folders-sort*),
104 then alphabetically.
105
106 Default: _true_
107
108 *folders-sort* = _<folder1,folder2,folder3...>_
109 Specifies a comma separated list of folders to be shown at the top of the
110 list in the provided order. Remaining folders will be sorted alphabetically.
111
112 *folder-map* = _<file>_
113 The folder map contains a one-to-one mapping of server folders to displayed
114 folder names. The *folder-map* file expects a
115 _<display-folder-name>_=_<server-folder-name>_[\*]
116 mapping per line (similar key=value syntax as for the *query-map* in notmuch).
117 The mappings are applied as they appear in the *folder-map*.
118 Supported backends: imap, maildir, notmuch.
119
120 For the notmuch backend, the folder-map applies to physical maildir
121 directories. Query-map and dynamic query folders are not affected. If a
122 folder-map display name collides with a query-map or dynamic query folder
123 name, only one entry appears in the folder list: the directory store
124 maps names to entries and the last Directory message for a given name
125 overwrites earlier ones.
126
127 Note that other account options such as *archive*, *default*, *copy-to*,
128 *postpone*, *folders*, *folders-exclude*, *folders-sort* need to be
129 adjusted if one of those folders is affected by a folder mapping.
130
131 To apply the mapping to subfolders or folders with a similar prefix,
132 append '\*' to the server folder name.
133
134 Examples:
135
136 Remap a single folder:
137 ```
138 Spam = [Gmail]/Spam
139 ```
140
141 Remap the folder and all of its subfolders:
142 ```
143 G = [Gmail]\*
144 ```
145
146 Remove a prefix for all subfolders:
147 ```
148 * = [Gmail]/\*
149 ```
150
151 Remap all subfolders and avoid a folder collision:
152 ```
153 Archive/existing = Archive\*
154 Archive = OldArchive\*
155 ```
156
157 *from* = _<address>_
158 The default value to use for the From header in new emails. This should be
159 an RFC 5322-compatible string, such as _Your Name <[email protected]>_.
160
161 *aliases* = _<address1,address2,address3...>_
162 All aliases of the current account. These will be used to fill in the From:
163 field. Make sure that your email server accepts this value, or for example
164 use *aerc-sendmail*(5) in combination with *msmtp*(1) and
165 *--read-envelope-from*.
166
167 An alias can also use fnmatch-style wildcards in the address portion. These
168 wildcards can be useful for catch-all addresses. For example, the alias
169 _"Your Name" <\*@you.com>_ would ensure that when replying to emails addressed
170 to [email protected]_ and [email protected]_, the From: field is set to
171 [email protected]_ and [email protected]_, respectively. The name from the alias,
172 not from the matching address, is used.
173
174 *use-envelope-from* = _true_|_false_
175 Use the email envelope From header address instead of the *from*
176 configuration option when submitting messages.
177
178 Default: _false_
179
180 *original-to-header* = _<header>_
181 Use the email address alias specified in this header when replying.
182
183 *headers* = _<header1,header2,header3...>_
184 Specifies the comma separated list of headers to fetch with the message.
185
186 By default, all headers are fetched. If any headers are specified in this
187 list, aerc will append it to the following list of required headers:
188
189 - date
190 - subject
191 - from
192 - sender
193 - reply-to
194 - to
195 - cc
196 - bcc
197 - in-reply-to
198 - message-id
199 - references
200
201 *headers-exclude* = _<header1,header2,header3...>_
202 Specifies the comma separated list of headers to exclude from fetching.
203 Note that this overrides anything from *headers*.
204
205 By default, no headers are excluded.
206
207 *outgoing* = _<uri>_
208 Specifies the transport for sending outgoing emails on this account. It
209 should be a connection string, and the specific meaning of each component
210 varies depending on the protocol in use. See each protocol's man page for
211 more details:
212
213 - *aerc-sendmail*(5)
214 - *aerc-smtp*(5)
215
216 *outgoing-cred-cmd* = _<command>_
217 Specifies an optional command that is run to get the outgoing account's
218 password. See each protocol's man page for more details.
219
220 *outgoing-cred-cmd-cache* = _true_|_false_
221 If set to _true_, the credentials returned by the command will be cached
222 until aerc is shut down. Otherwise, *outgoing-cred-cmd* will be executed
223 every time an email is to be sent.
224
225 Default: _false_
226
227 *pama-auto-switch* = _true_|_false_
228 If _true_, the patch manager will automatically switch to an existing
229 project for the *:patch* command if the subject contains a '[PATCH <project>]'
230 segment.
231
232 Default: _false_
233
234 *pgp-auto-sign* = _true_|_false_
235 If _true_, all outgoing emails from this account will be signed (if a signing
236 key is available).
237
238 Default: _false_
239
240 *pgp-attach-key* = _true_|_false_
241 If _true_, attach the public signing key to signed outgoing emails.
242
243 Default: _false_
244
245 *pgp-self-encrypt* = _true_|_false_
246 If _true_, any outgoing encrypted email will be also encrypted for the sender
247 or the key specified in *pgp-key-id*.
248
249 Default: _false_
250
251 *pgp-error-level* = _none_|_warn_|_error_
252 The level of error to display when opportunistic encryption cannot be
253 performed. See *pgp-opportunistic-encryption*.
254
255 Default: _warn_
256
257 *pgp-key-id* = _<key-id>_
258 Specify the key id to use when signing a message. Can be either short or
259 long key id. If unset, aerc will look up the key by email.
260
261 *pgp-opportunistic-encrypt* = _true_|_false_
262 If _true_, any outgoing email from this account will be encrypted when all
263 recipients (including Cc and Bcc field) have a public key available in
264 the keyring. The level of error to display when a message can't be
265 encrypted can be configured with *pgp-error-level*.
266
267 Default: _false_
268
269 *postpone* = _<folder>_
270 Specifies the folder to save postponed messages to.
271
272 Default: _Drafts_
273
274 *send-as-utc* = _true_|_false_
275 Converts the timestamp of the Date header to UTC.
276
277 Default: _false_
278
279 *send-with-hostname* = _true_|_false_
280 Uses the local hostname in outgoing Message-Id headers instead of your
281 email address domain name.
282
283 Default: _false_
284
285 *source* = _<uri>_
286 Specifies the source for reading incoming emails on this account. This key
287 is required for all accounts. It should be a connection string, and the
288 specific meaning of each component varies depending on the protocol in use.
289 See each protocol's man page for more details:
290
291 - *aerc-imap*(5)
292 - *aerc-jmap*(5)
293 - *aerc-maildir*(5)
294 - *aerc-notmuch*(5)
295
296 *source-cred-cmd* = _<command>_
297 Specifies an optional command that is run to get the source account's
298 password. See each protocol's man page for more details.
299
300 *signature-file* = _<path>_
301 Specifies the file to read in order to obtain the signature to be added
302 to emails sent from this account.
303
304 Please note that by convention the Usenet signature style of two dashes,
305 followed by a space ("-- ") should be placed at the top of the signature
306 to separate content and signature. Aerc will add that delimiter if it is
307 not already present.
308
309 *signature-cmd* = _<command>_
310 Specifies the command to execute with _sh -c_ in order to obtain the
311 signature to be added to emails sent from this account. If the command
312 fails then *signature-file* is used instead.
313
314 *trusted-authres* = _<host1,host2,host3...>_
315 Comma-separated list of trustworthy hostnames from which the
316 Authentication Results header will be displayed. Entries can be regular
317 expressions. If you want to trust any host (e.g. for debugging),
318 use the wildcard _\*_.
319
320 *subject-re-pattern* = _<regexp>_
321 When replying to a message, this is the regular expression that will
322 be used to match the prefix of the original message's subject that has
323 to be removed, to create the subject line of the new message.
324 Typically, this will be used to avoid a repetition of the Re:
325 prefix in the subject header. The default will match known
326 translations for the common Re:.
327
328 Default: _(?i)^((AW|RE|SV|VS|ODP|R): ?)+_
329
330 *restrict-delete* = _true_|_false_
331 Controls whether immediate email deletions (as opposed to moves to
332 Trash) are allowed from any folder. When _true_, deletions are only allowed
333 from the Trash or Junk folders.
334
335 Default: _false_
336
337 # SEE ALSO
338
339 *aerc*(1) *aerc-config*(5) *aerc-imap*(5) *aerc-jmap*(5) *aerc-maildir*(5)
340 *aerc-notmuch*(5) *aerc-sendmail*(5) *aerc-smtp*(5)
341
342 # AUTHORS
343
344 Originally created by Drew DeVault and maintained by Robin Jarry who is assisted
345 by other open source contributors. For more information about aerc development,
346 see _https://sr.ht/~rjarry/aerc/_.