aboutsummaryrefslogtreecommitdiffstats
path: root/afew/config
blob: 7d9159f6de02edc082535262c6d4efa439861d83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[global]
mail_mover_kind = query

[SpamFilter]
[KillThreadsFilter]
[ListMailsFilter]
[ArchiveSentMailsFilter]
[InboxFilter]
[FolderNameFilter]
folder_explicit_list = archive drafts sent spam "probably-spam" archlinux/Drafts archlinux/Junk archlinux/Sent archlinux/Trash archlinux/inbox

[MailMover]
folders = inbox archive spam
rename = True
#max_age = 15

inbox = 'tag:spam':spam 'NOT tag:inbox AND NOT tag:spam':archive
archive = 'tag:spam':spam
spam = 'NOT tag:spam AND tag:inbox':inbox 'NOT tag:spam AND NOT tag:inbox':archive

[QueryMailMover]
rules = spam archive
rename = True

spam = 'tag:spam AND NOT folder:spam':spam 'tag:learn-spam AND NOT folder:learn-spam':learn-spam
archive = 'tag:archive AND NOT folder:archive':archive
          'folder:spam AND NOT tag:spam':archive
          'folder:inbox AND NOT tag:inbox AND NOT tag:learn-spam':archive

# vim: ft=conf