-
Notifications
You must be signed in to change notification settings - Fork 4
/
config
159 lines (130 loc) · 3.42 KB
/
config
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[SpamFilter]
[KillThreadsFilter]
[SentMailsFilter]
sent_tag = sent
[ArchiveSentMailsFilter]
[MeFilter]
me_tag = me
[Filter.0]
message = Tagging archives
query = folder:archives and not (folder:inbox or tag:archived)
tags = +archived;-inbox
[Filter.1]
message = Tagging inbox
query = folder:inbox and not tag:inbox
tags = +inbox;-archived
[Filter.2]
message = Tagging drafts
query = folder:drafts
tags = +draft;
[Filter.3]
message = Tagging trash
query = folder:trash
tags = +deleted;-archived;-inbox
[Filter.4]
message = Tagging work
query = folder:work
tags = +work;
[Filter.5]
message = Tagging emacs
query = folder:list/emacs
tags = +emacs;-inbox;+list
[Filter.6]
message = Tagging riscv
query = folder:list/riscv
tags = +riscv;-inbox
[Filter.7]
message = Tagging IEEE-cass
query = folder:list/ieeecass
tags = +ieee
[Filter.8]
message = Tagging archlinux
query = folder:list/archlinux
tags = +archlinux;-inbox
[Filter.9]
message = Tagging spam
query = folder:spam
tags = +spam;-inbox;-archived
[Filter.10]
message = Tagging notmuch
query = folder:list/notmuch
tags = +notmuch;-inbox
[Filter.11]
message = Tagging unread sent
query = (folder:sent AND tag:unread) and not tag:inbox
tags = +inbox
[Filter.12]
message = Tagging newsfeed
query = to:me+newsfeed@benmezger.nl OR to:me+newsletter@benmezger.nl OR folder:newsfeed
tags = +newsfeed
# this requires 'index.header.List List-Id'
# see: https://notmuchmail.org/faq/#index8h2
[Filter.13]
message = Tagging lists
query = list:
tags = +list
[Filter.14]
message = Tagging patches
query = mimetype:text/x-patch
tags = +patch
[Filter.15]
message = Tagging PDFs
query = mimetype:application/pdf
tags = +pdf
[Filter.16]
message = Tagging linux-riscv
query = folder:list/linux-riscv
tags = +linux-rv;+linux;+riscv;-inbox
[Filter.17]
message = Tagging university
query = folder:university
tags = +university
[Filter.18]
message = Tagging shopping
query = folder:shopping
tags = +shopping
[Filter.19]
message = Tagging social media
query = folder:social-media
tags = +social-media
[Filter.20]
message = Tagging jobs
query = folder:jobs
tags = +jobs
[Filter.21]
message = Tagging misc list
query = folder:misc
tags = +misc
[Filter.22]
message = Tagging seds
query = folder:seds
tags = +@seds
[Filter.25]
message = Tagging LWN
query = from:lwn@lwn.net
tags = +lwn;+newsfeed
[Filter.26]
message = Tagging linux-kernel
query = folder:list/linux-kernel
tags = +linux-kernel
[Filter.27]
message = tagging linux-newbie
query = linux-newbie@vger.kernel.org>
tags = +linux-newbie
[Filter.28]
message = Untagging any non-inbox mail
query = tag:inbox and not folder:inbox
tags = -inbox
[Filter.29]
message = Cleaning up 'new' tag and leaving for mails without any tag
query = tag:new
tags = -new
[MailMover]
folders = inbox archives spam trash
rename = True
max_age = 15
# rules
inbox = 'folder:inbox and tag:deleted and not tag:inbox':trash 'folder:inbox and tag:archived and not tag:inbox':archives 'folder:inbox and tag:spam and not tag:inbox':spam "tag:deleted and not tag:inbox":trash
spam = 'not tag:spam and tag:inbox':inbox 'not tag:spam and not folder:spam':archives
archives = 'folder:archived and tag:inbox and not tag:archived':inbox 'folder:archived and tag:deleted and not tag:archived':trash 'folder:archived and tag:spam':spam "tag:deleted and not tag:archived":trash"
trash = 'folder:trash and tag:archived and not tag:deleted':archives 'folder:trash and tag:spam':spam 'folder:trash and tag:inbox and not tag:deleted':inbox