aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2023-07-14 20:14:37 +0200
committerRobin Jarry <robin@jarry.cc>2023-07-14 23:11:42 +0200
commita791da7ba45d44b5e9d66d67558fc725977b7345 (patch)
treed79d4c862a0798397a7c1cd84fd2e1a11774d408 /doc
parent21cc3ce129b716f14b229b34dde64026b1f7549f (diff)
downloadaerc-a791da7ba45d44b5e9d66d67558fc725977b7345.tar.gz
foldermap: make folder-map syntax more expressive
Improve the folder mapping syntax so that prefixes can be removed completely. The following line in the folder-map file * = INBOX/* will strip the INBOX/ prefix from all subfolders of INBOX, e.g. map "INBOX/Project1" to "Project1". To prevent a key collision with multiple "*" keys (the folder mapping is stored as a map internally), a group of "*" will be condensed to one "*", e.g. ** = INBOX/* has the same meaning as above. Also, adjust name translation for folder creation and add tests. Fixes: https://todo.sr.ht/~rjarry/aerc/176 Signed-off-by: Koni Marti <koni.marti@gmail.com> Acked-by: Robin Jarry <robin@jarry.cc> Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/aerc-accounts.5.scd5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/aerc-accounts.5.scd b/doc/aerc-accounts.5.scd
index 0cf7071b..6fe558cd 100644
--- a/doc/aerc-accounts.5.scd
+++ b/doc/aerc-accounts.5.scd
@@ -105,6 +105,11 @@ Note that many of these configuration options are written for you, such as
G = [Gmail]\*
```
+ Remove a prefix for all subfolders:
+ ```
+ * = [Gmail]/\*
+ ```
+
Remap all subfolders and avoid a folder collision:
```
Archive/existing = Archive\*