mail: Improve inbox display in aerc and notmuch

Added filtering by dump tag *or* folder to afew so that incoming mail
should automatically be filed exclusively in inbox or the dump for
notmuch.

Additionally changed the exception for inbox display from list to dump
tags in aerc, so that -- should there be a legitimate mailing list mail,
such as gitlab's pipeline reports -- they are still visible in inbox.
This commit is contained in:
Marty Oehme 2020-09-25 11:25:18 +02:00
parent 94673ea507
commit 3c84d6ae1a
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 10 additions and 5 deletions

View file

@ -1,7 +1,7 @@
All=*
Inbox=tag:inbox and not tag:lists
Inbox=tag:inbox and not tag:dump
Archive=not tag:inbox and not tag:deleted and not tag:dump
Dump=tag:dump and not tag:inbox
Dump=tag:dump
Trash=tag:deleted
Important=tag:flagged
Sent=from:marty.oehme@gmail.com or from:marty.oehme@googlemail.com or from:moehme@ruc.dk or from:mo82rimu@studserv.uni-leipzig.de

View file

@ -1,6 +1,10 @@
[SpamFilter]
# filter creation
[InboxDumpingFilter(Filter)]
query = '(tag:dump or folder:Dump) and (tag:inbox or tag:unread)'
tags = -new;-inbox;-unread;+dump
message = removing dumped mails from inbox
[KillThreadsFilter]
[ListMailsFilter]
[FolderNameFilter]
folder_explicit_list = Dump
folder_transforms = Dump:dump
@ -8,12 +12,13 @@ maildir_separator = /
[ArchiveSentMailsFilter]
sent_tag=sent
[InboxFilter]
[InboxDumpingFilter.0]
# moving mode
[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