diff options
author | Koni Marti <koni.marti@gmail.com> | 2023-07-14 20:14:37 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-07-14 23:11:42 +0200 |
commit | a791da7ba45d44b5e9d66d67558fc725977b7345 (patch) | |
tree | d79d4c862a0798397a7c1cd84fd2e1a11774d408 /lib/ui/box.go | |
parent | 21cc3ce129b716f14b229b34dde64026b1f7549f (diff) | |
download | aerc-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 'lib/ui/box.go')
0 files changed, 0 insertions, 0 deletions