mail: Add local folder and tag alignment

afew will locally add notmuch tags to mails, as well as move them to
specific folders according to the notmuch tags they already contain.

This sets mails residing in the `Dump` folder to be tagged
correspondingly with `dump`.
(imapfilter automatically puts all filtered
adverts and mailing lists into the dump folder beforehand.)

On the other hand, it makes sure that email tagged with `dump` also
resides in the `Dump` folder (if tagged manually with notmuch), and same
thing for `Inbox`.
This commit is contained in:
Marty Oehme 2020-09-21 09:38:40 +02:00
parent e5414cbadf
commit 85c68fc676
Signed by: Marty
GPG key ID: B7538B8F50A1C800

View file

@ -1,6 +1,19 @@
[SpamFilter]
[KillThreadsFilter]
[ListMailsFilter]
[FolderNameFilter]
folder_explicit_list = Dump
folder_transforms = Dump:dump
maildir_separator = /
[ArchiveSentMailsFilter]
sent_tag=sent
[InboxFilter]
[MailMover]
folders = Inbox Dump
rename = True
max_age = 15
# rules
Inbox = 'tag:dump':Dump
Dump = 'NOT tag:spam AND NOT tag:dump AND tag:inbox':Inbox