-
Notifications
You must be signed in to change notification settings - Fork 0
/
gmailImportFilter.xml
55 lines (55 loc) · 1.77 KB
/
gmailImportFilter.xml
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
<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'>
<title>Mail Filters</title>
<author>
<name>Daniel Nitsche</name>
</author>
<entry>
<category term='filter'></category>
<title>Mail Filter</title>
<content></content>
<!-- Exclude emails that have been forwarded or replied to -->
<apps:property name='subject' value='-fwd AND -re' />
<!-- To make "or" conditions between fields, we need to put all criteria in the "hasTheWord" field. -->
<!-- Section 1: no-reply and bounced emails. Gmail doesn't support wildcards hence the multiple versions. -->
<!-- Section 2: standard terms seen in newsletters and invoices/bills. -->
<!-- Section 3: bills, invoices etc. -->
<apps:property name='hasTheWord' value='
from: (
reply OR
no-reply OR
noreply OR
do_not_reply OR
postmaster OR
system_noreply OR
Despatchnoreply OR
MAILER-DAEMON
) OR (
"unsubscribe" OR
"do not reply" OR
"add our e-mail" OR
"add our email" OR
"your receipt number" OR
"email preferences" OR
"to your address book" OR
"online version" OR
"this email was sent" OR
"this email has been sent" OR
"email not displaying correctly" OR
"email was intended for" OR
"click here"
) OR (
has:attachment AND
subject: (
"payment" OR
"invoice" OR
"bill" OR
"receipt"
)
)
'/>
<!-- Apply Zombie label. -->
<apps:property name='label' value='Zombie'/>
<!-- Archive. -->
<apps:property name='shouldArchive' value='true'/>
</entry>
</feed>