aboutsummaryrefslogtreecommitdiffstats
path: root/doc/aerc-accounts.5.scd
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2023-06-21 22:13:06 +0200
committerRobin Jarry <robin@jarry.cc>2023-06-22 10:58:05 +0200
commitf7837edbb203a489fbfdd95f6b427906a58fbbdb (patch)
tree288273e31acef8c8778a2925d5f647b6f528576d /doc/aerc-accounts.5.scd
parentdfaab1f1d73e557bbdbcc428f04f701c0c09c136 (diff)
downloadaerc-f7837edbb203a489fbfdd95f6b427906a58fbbdb.tar.gz
doc: folder-map in aerc-accounts
Document folder-map option in aerc-accounts. Signed-off-by: Koni Marti <koni.marti@gmail.com> Tested-by: Bence Ferdinandy <bence@ferdinandy.com> Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'doc/aerc-accounts.5.scd')
-rw-r--r--doc/aerc-accounts.5.scd33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/aerc-accounts.5.scd b/doc/aerc-accounts.5.scd
index 00a575e1..0cf7071b 100644
--- a/doc/aerc-accounts.5.scd
+++ b/doc/aerc-accounts.5.scd
@@ -78,6 +78,39 @@ Note that many of these configuration options are written for you, such as
Specifies a comma separated list of folders to be shown at the top of the
list in the provided order. Remaining folders will be sorted alphabetically.
+*folder-map* = _<file>_
+ The folder map contains a one-to-one mapping of server folders to displayed
+ folder names. The *folder-map* file expects a
+ _<display-folder-name>_=_<server-folder-name>_[\*]
+ mapping per line (similar key=value syntax as for the *query-map* in notmuch).
+ The mappings are applied as they appear in the *folder-map*.
+ Supported backends: imap, maildir.
+
+ Note that other account options such as *archive*, *default*, *copy-to*,
+ *postpone*, *folders*, *folders-exclude*, *folders-sort* need to be
+ adjusted if one of those folders is affected by a folder mapping.
+
+ To apply the mapping to subfolders or folders with a similar prefix,
+ append '\*' to the server folder name.
+
+ Examples:
+
+ Remap a single folder:
+ ```
+ Spam = [Gmail]/Spam
+ ```
+
+ Remap the folder and all of its subfolders:
+ ```
+ G = [Gmail]\*
+ ```
+
+ Remap all subfolders and avoid a folder collision:
+ ```
+ Archive/existing = Archive\*
+ Archive = OldArchive\*
+ ```
+
*from* = _<address>_
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>_.