-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
30 lines (28 loc) · 1.5 KB
/
config.js
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
// Helper method. One caveat to be aware of is that you should not start
// variables with two underscores - those are reserved for internal use.
function trash(thread) {
thread.moveToTrash();
}
__setup = {
queries: [
// ["in:all -in:trash category:social older_than:15d -is:starred", trash],
// ["in:all -in:trash category:updates older_than:15d -is:starred -label:Important-Label", trash],
// ["in:all -in:trash category:promotions older_than:15d -is:starred -label:Company-News", trash],
// ["in:all -in:trash category:forums older_than:90d -is:starred", trash],
[
'\
(in:all -in:trash -in:spam category:social older_than:2d -is:starred) OR \
(in:all -in:trash -in:spam -has:userlabels category:updates older_than:2d -is:starred -from:spatialbuzz.com) OR \
(in:all -in:trash -in:spam -has:userlabels category:promotions older_than:2d -is:starred -from:spatialbuzz.com) OR \
(in:all -in:trash -in:spam -has:userlabels category:forums older_than:2d -is:starred -from:spatialbuzz.com) OR \
(-in:trash -in:spam label:monitoring-c01 older_than:2d -is:starred) OR \
(-in:trash -in:spam label:monitoring-eu-west-1a older_than:2d -is:starred) OR \
(-in:trash -in:spam label:monitoring-eu-west-1c older_than:2d -is:starred) \
'
, trash]
],
notify: {
subject: "Gmail Cleanup - Daily Filter Summary",
body: "Number of emails processed: %c",
},
};