aboutsummaryrefslogtreecommitdiffstats
path: root/_config/afew/config
blob: 8cb5e6481cc5e97067e82f41a310b025bd90d429 (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
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
#
# ~/.config/afew/config
# afew is an initial tagging script for notmuch mail
# https://github.com/teythoon/afew
#
# Aaron LI
# Created: 2016-01-25
# Updated: 2016-01-25
#

# NOTE:
# Make sure that '~/.notmuch-config' reads:
#   [new]
#   tags=new

# global configuration
[global]


[MailMover]
# Which folders should be checked for mails that are to be moved
#folders = inbox junk
# Only check mails *at most* 15 days old
#max_age = 15
#
# rules
#inbox = 'tag:spam':junk 'NOT tag:inbox':archive
#junk  = 'NOT tag:spam AND tag:inbox':inbox 'NOT tag:spam':archive


# This is the default filter chain
#[SpamFilter]
#[ClassifyingFilter]
[KillThreadsFilter]
[ListMailsFilter]
#[ArchiveSentMailsFilter]

[Filter.1]
message = Tagging all mails sent directly to me
query = to:aaronly.me@ OR to:liweitianux@ OR to:527922216@qq.com
tags = +to-me

[Filter.2]
message = Tagging all mails sent by me
query = from:aaronly.me@ OR from:liweitianux@ OR from:527922216@qq.com
tags = +sent

[Filter.3]
message = Tagging all mails sent from arXiv/astro-ph
query = from:no-reply@arxiv.org AND subject:"astro-ph daily"
tags = +arxiv +arxiv/astro-ph

[Filter.4]
message = Tagging all mails sent from arXiv/cs
query = from:no-reply@arxiv.org AND subject:"cs daily"
tags = +arxiv +arxiv/cs

[Filter.5]
message = Tagging all mails sent to 'freebsd-current@'
query = to:freebsd-current@freebsd.org
tags = +freebsd-current

[Filter.6]
message = Tagging all mails sent to 'freebsd-x11@'
query = to:freebsd-x11@freebsd.org
tags = +freebsd-x11

[Filter.7]
message = Tagging all mails sent to openbsd: misc@, tech@
query = to:misc@openbsd.org OR to:tech@openbsd.org
tags = +openbsd

[Filter.8]
message = Tagging all mails from 'China Digital Times'
query = from:cdtchinese@chinadigitaltimes.net
tags = +cdtchinese

[Filter.9]
message = Tagging all mails from 'Bank of China'
query = from:@bank-of-china.com
tags = +boc

[Filter.10]
message = Tagging all mails from 'Bank of Communications'
query = from:@bocomcc.com
tags = +bankcomm

[Filter.11]
message = Tagging all mails from "SJTU - Department of Physics and Astronomy"
query = from:physics@sjtu.edu.cn OR from:physics_sjtu@163.com OR xueying@sjtu.edu.cn OR lujiaming@sjtu.edu.cn OR zhaofeng210@sjtu.edu.cn
tags = +sjtu +sjtu/physics

[Filter.12]
message = Tagging all mails from "SJTU - Center for Astronomy and Astrophysics"
query = from:liuyunjia1101@ OR miaoqiuyue@126.com OR from:dylan.tweed@gmail.com OR from:dtweed@sjtu.edu.cn
tags = +sjtu +sjtu/caa

[Filter.13]
message = Tagging all mails from "Amazon"
query = from:@amazon.com OR from:@amazon.cn
tags = +amazon


[InboxFilter]