afewmail / afew

an initial tagging script for notmuch mail
ISC License
325 stars 98 forks source link

FolderNameFilter: allow multiple tags per folder #343

Open mjg opened 8 months ago

mjg commented 8 months ago

So far, the last entry wins when a folder is specified multiple times as a folder transform. The reason is that the folder name is a key in a dict whose values are tags. On the other hand, if a message has copies in several folders then all these rules apply.

Change (fix?) afew's FolderNameFilter so that multiple transforms for the same folder lead to multiple tags being added. Technically, this is done by using sets as values in the transform dict.

In the future, we might think about implementing notmuch-tag style notation (with the obvious quoting issues).

mjg commented 8 months ago

FTR: CI runs stone age notmuch (0.29) against py 3.12 which is doomed to fail. The fix for ConfigParser in py 3.12 is in the latest notmuch 0.38 only.