-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
label.go
76 lines (74 loc) · 2.37 KB
/
label.go
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
package label
import (
"google.golang.org/api/gmail/v1"
)
// Generic labels
var (
// SRC is the @SRC parent label for all @SRC labels.
SRC = gmail.Label{
Name: "@SRC",
LabelListVisibility: "labelShow",
// Hide folder labels
MessageListVisibility: "hide",
Color: &gmail.LabelColor{
BackgroundColor: "#4986e7",
TextColor: "#ffffff",
},
}
// Allow is the @SRC/Allow folder for senders and domains that always bypass SRC
Allow = gmail.Label{
Name: SRC.Name + "/Allow",
// Hide folder labels
MessageListVisibility: "hide",
Color: &gmail.LabelColor{
BackgroundColor: "#16a765",
TextColor: "#ffffff",
},
}
// AllowSender is the @SRC/Allow/Sender folder for senders that always bypass SRC
AllowSender = gmail.Label{
Name: Allow.Name + "/Sender",
// Show leaf labels
MessageListVisibility: "show",
Color: Allow.Color,
}
// AllowDomain is the @SRC/Allow/Domain folder for email domains that always bypass SRC
AllowDomain = gmail.Label{
Name: Allow.Name + "/Domain",
// Show leaf labels
MessageListVisibility: "show",
Color: Allow.Color,
}
// Block is the @SRC/Allow folder for senders and domains that are automatically removed from your inbox.
// Blocked emails are not analyzed by SRC.
Block = gmail.Label{
Name: SRC.Name + "/Block",
// Hide folder labels
MessageListVisibility: "hide",
Color: &gmail.LabelColor{
BackgroundColor: "#cc3a21",
TextColor: "#ffffff",
},
}
// BlockSender is the @SRC/Block/Sender folder for senders that are automatically removed from your inbox.
// Blocked emails are not analyzed by SRC.
BlockSender = gmail.Label{
Name: Block.Name + "/Sender",
MessageListVisibility: "show",
Color: Block.Color,
}
// BlockDomain is the @SRC/Block/Domain folder for email domains that are automatically removed from your inbox.
// Blocked emails are not analyzed by SRC.
BlockDomain = gmail.Label{
Name: Block.Name + "/Domain",
MessageListVisibility: "show",
Color: Block.Color,
}
// BlockGraveyard is the @SRC/Block/Graveyard folder for emails that have been removed from your inbox.
// Blocked emails are not be analyzed by SRC.
BlockGraveyard = gmail.Label{
Name: Block.Name + "/🪦",
MessageListVisibility: "show",
Color: Block.Color,
}
)