-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules.json
More file actions
84 lines (84 loc) · 1.97 KB
/
rules.json
File metadata and controls
84 lines (84 loc) · 1.97 KB
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
[
{
"description": "Move newsletters from 'daily-reads.com' to 'Newsletters' label and mark as read",
"conditions_predicate": "all",
"conditions": [
{
"field": "from_address",
"predicate": "contains",
"value": "daily-reads.com"
}
],
"actions": [
{
"type": "mark_as_read"
},
{
"type": "move_message",
"mailbox": "Newsletters"
}
]
},
{
"description": "Mark urgent project emails from 'boss@example.com' or 'pm@example.com' as important (add 'IMPORTANT' label)",
"conditions_predicate": "any",
"conditions": [
{
"field": "from_address",
"predicate": "equals",
"value": "boss@example.com"
},
{
"field": "from_address",
"predicate": "equals",
"value": "pm@example.com"
}
],
"actions": [
{
"type": "add_label", "label_name": "IMPORTANT"
},
{
"type": "mark_as_unread"
}
]
},
{
"description": "Archive emails older than 6 months with 'update' in subject",
"conditions_predicate": "all",
"conditions": [
{
"field": "subject",
"predicate": "contains",
"value": "update"
},
{
"field": "received_datetime",
"predicate": "greater_than_months",
"value": "6"
}
],
"actions": [
{
"type": "mark_as_read"
},
{
"type": "move_message",
"mailbox": "ARCHIVE"
}
]
},
{
"description": "Test Rule matching screenshot",
"conditions_predicate": "all",
"conditions": [
{"field": "from_address", "predicate": "contains", "value": "tenmiles.com"},
{"field": "subject", "predicate": "contains", "value": "Interview"},
{"field": "received_datetime", "predicate": "less_than_days", "value": "2"}
],
"actions": [
{"type": "move_message", "mailbox": "Inbox"},
{"type": "mark_as_read"}
]
}
]