Debian Codegraph @

doc/aerc-imap.5.scd

raw
1 AERC-IMAP(5)
2
3 # NAME
4
5 aerc-imap - IMAP configuration for *aerc*(1)
6
7 # SYNOPSIS
8
9 aerc implements the IMAP protocol as specified by RFC 3501, with the following
10 IMAP extensions:
11
12 - IDLE (RFC 2177)
13 - SORT (RFC 5256)
14 - THREAD (RFC 5256)
15 - LIST-STATUS (RFC 5819)
16 - X-GM-EXT-1 (Gmail)
17
18 # CONFIGURATION
19
20 Basic IMAP configuration may be done interactively with the *:new-account*
21 command.
22
23 In _accounts.conf_ (see *aerc-accounts*(5)), the following IMAP-specific options
24 are available:
25
26 *source* = _<scheme>_://_<username>_[_:<password>_]_@<hostname>_[_:<port>_]_?_[_<oauth2_params>_]
27 Remember that all fields must be URL encoded. The _@_ symbol, when URL
28 encoded, is _%40_.
29
30 Possible values of _<scheme>_ are:
31
32 _imap_
33 IMAP with STARTTLS
34
35 _imap+insecure_
36 IMAP without STARTTLS
37
38 _imaps_
39 IMAP with TLS/SSL
40
41 _imaps+insecure_
42 IMAP with TLS/SSL, skipping certificate verification
43
44 _imaps+login_
45 IMAP with TLS/SSL using the LOGIN authentication mechanism.
46 This is used as a fallback when PLAIN authentication is not
47 available. Most users should not need to specify this explicitly.
48
49 _imaps+oauthbearer_
50 IMAP with TLS/SSL using OAUTHBEARER Authentication
51
52 _<oauth2_params>_:
53
54 If specified and a _token_endpoint_ is provided, the configured password
55 is used as a refresh token to obtain an access token. If _token_endpoint_
56 is omitted, refresh token exchange is skipped, and the password acts
57 like an access token instead.
58
59 - _token_endpoint_ (optional)
60 - _client_id_ (optional)
61 - _client_secret_ (optional)
62 - _scope_ (optional)
63
64 Example:
65 imaps+oauthbearer://...?token_endpoint=https://...&client_id=
66
67 _imaps+xoauth2_
68 IMAP with TLS/SSL using XOAUTH2 Authentication. Parameters are
69 the same as OAUTHBEARER.
70
71 *source-cred-cmd* = _<command>_
72 Specifies the command to run to get the password for the IMAP
73 account. This command will be run using _sh -c command_. If a
74 password is specified in the *source* option, the password will
75 take precedence over this command.
76
77 Example:
78 source-cred-cmd = pass hostname/username
79
80 *connection-timeout* = _<duration_>
81 Maximum delay to establish a connection to the IMAP server. See
82 https://pkg.go.dev/time#ParseDuration.
83
84 Default: _90s_
85
86 *keepalive-period* = _<duration>_
87 The interval between the last data packet sent (simple ACKs are not
88 considered data) and the first keepalive probe. After the connection is
89 marked to need keepalive, this counter is not used any further. See
90 https://pkg.go.dev/time#ParseDuration.
91
92 By default, the system tcp socket settings are used.
93
94 *keepalive-probes* = _<int>_
95 The number of unacknowledged probes to send before considering the
96 connection dead and notifying the application layer.
97
98 By default, the system tcp socket settings are used.
99 If keepalive-period is specified, this option defaults to 3 probes.
100
101 This option is only supported on linux. On other platforms, it will be
102 ignored.
103
104 *keepalive-interval* = _<duration>_
105 The interval between subsequential keepalive probes, regardless of what
106 the connection has exchanged in the meantime. Fractional seconds are
107 truncated.
108
109 By default, the system tcp socket settings are used.
110 If *keepalive-period* is specified, this option defaults to _3s_.
111
112 This option is only supported on linux. On other platforms, it will be
113 ignored.
114
115 *check-mail-include* = _<folder1,folder2,folder3...>_
116 Specifies the comma separated list of folders to include when checking for
117 new mail with *:check-mail*. Names prefixed with _~_ are interpreted as regular
118 expressions. This setting is ignored if your IMAP server supports the
119 LIST-STATUS command, in which case all folders will be checked.
120
121 By default, all folders are included.
122
123 *check-mail-exclude* = _<folder1,folder2,folder3...>_
124 Specifies the comma separated list of folders to exclude when checking for
125 new mail with *:check-mail*. Names prefixed with _~_ are interpreted as regular
126 expressions. This setting is ignored if your IMAP server supports the
127 LIST-STATUS command, in which case all folders will be checked.
128 Note that this overrides anything from *check-mail-include*.
129
130 By default, no folders are excluded.
131
132 *cache-headers* = _true_|_false_
133 If set to _true_, headers will be cached. The cached headers will be stored
134 in _$XDG_CACHE_HOME/aerc_, which defaults to _~/.cache/aerc_.
135
136 Default: _false_
137
138 *cache-max-age* = _<duration>_
139 Defines the maximum age of cached files. Note: the longest unit of time
140 *cache-max-age* can be specified in is hours. Set to _0_ to disable cleaning
141 the cache
142
143 Default: _720h_ (30 days)
144
145 *idle-timeout* = _<duration>_
146 The length of time the client will wait for the server to send any final
147 update before the IDLE is closed.
148
149 Default: _10s_
150
151 *idle-debounce* = _<duration>_
152 Specifies the length of time from the last client command until the
153 idler starts.
154
155 Default: _10ms_
156
157 *expunge-policy* = _auto_|_low-to-high_|_stable_
158 Specifies the deletion policy used when deleting multiple messages in
159 one shot. _auto_ attempts to automatically detect it, and will be
160 correct most of the times. _low-to-high_ specifies that the server
161 deletes messages in increasing sequence number order (this is what GMail
162 and FastMail do, and is correctly handled by the automatic detection).
163 _stable_ specifies that the server does not mutate the sequence numbers
164 it received (this is what Dovecot and WorkMail do, and is *not* reliably
165 automatically detected).
166
167 Default: _auto_
168
169 *debug-log-path* = _<path>_
170 Specifies the path where to store low-level IMAP debug logs (this can
171 be useful to debug interactions between aerc and IMAP servers). If this
172 path is writable, aerc will create and log to one file per account,
173 called `imap_debug_ACCOUNTNAME.log`.
174
175 By default, low-level IMAP debug logs are not generated.
176
177 # SEE ALSO
178
179 *aerc*(1) *aerc-accounts*(5)
180
181 # AUTHORS
182
183 Originally created by Drew DeVault and maintained by Robin Jarry who is assisted
184 by other open source contributors. For more information about aerc development,
185 see _https://sr.ht/~rjarry/aerc/_.