dotfiles/mail/.config/afew/config
Marty Oehme 1311c30e84
mail: Fix mail filtering
Fixed correct filtering of inbox stuff in afew (moving archived mails
out of inbox, moving trash into GMail Trash).
2020-10-01 09:04:24 +02:00

24 lines
671 B
Text

# filter creation
[InboxDumpingFilter(Filter)]
query = (tag:dump or folder:Dump) and (tag:inbox or tag:unread or tag:new)
tags = -new;-inbox;-unread;+dump
message = removing dumped mails from inbox
[KillThreadsFilter]
[FolderNameFilter]
folder_explicit_list = Dump
folder_transforms = Dump:dump
maildir_separator = /
[ArchiveSentMailsFilter]
sent_tag=sent
[InboxDumpingFilter.0]
[InboxFilter]
# moving mode
[MailMover]
folders = Inbox Dump
rename = True
max_age = 15
# rules
Inbox = 'tag:dump':Dump 'NOT tag:inbox AND NOT tag:dump AND NOT tag:spam':'[Google Mail]/All Mail' 'tag:deleted':'[Google Mail]/Trash'
Dump = 'NOT tag:spam AND NOT tag:dump AND tag:inbox':Inbox