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:
parent
e5414cbadf
commit
85c68fc676
1 changed files with 13 additions and 0 deletions
|
@ -1,6 +1,19 @@
|
||||||
[SpamFilter]
|
[SpamFilter]
|
||||||
[KillThreadsFilter]
|
[KillThreadsFilter]
|
||||||
[ListMailsFilter]
|
[ListMailsFilter]
|
||||||
|
[FolderNameFilter]
|
||||||
|
folder_explicit_list = Dump
|
||||||
|
folder_transforms = Dump:dump
|
||||||
|
maildir_separator = /
|
||||||
[ArchiveSentMailsFilter]
|
[ArchiveSentMailsFilter]
|
||||||
sent_tag=sent
|
sent_tag=sent
|
||||||
[InboxFilter]
|
[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
|
||||||
|
|
Loading…
Reference in a new issue