summaryrefslogtreecommitdiffstats
path: root/misc/syntax/procmail.syntax
blob: 78aa08a7575e07ccb5f11b1b4cb28328c98dcba2 (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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
#  procmail definition
#  created by Michelle Konzack <linux4michelle@tamay-dogan.net>
#  This definition is under the GNU GPL version 3.0.


context default
    keyword whole linestart #*procmail\n brightcyan black
    keyword whole #*\n brown

wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._

##############################################################
#  Vars from procmail
    keyword whole MAILDIR brightgreen
    keyword whole DEFAULT brightgreen
    keyword whole LOGFILE brightgreen
    keyword whole VERBOSE brightgreen
    keyword whole LOGABSTRACT brightgreen
    keyword whole LOG brightgreen
    keyword whole ORGMAIL brightgreen
    keyword whole LOCKFILE brightgreen
    keyword whole LOCKEXT brightgreen
    keyword whole LOCKSLEEP brightgreen
    keyword whole LOCKTIMEOUT brightgreen
    keyword whole TIMEOUT brightgreen
    keyword whole MSGPREFIX brightgreen
    keyword whole HOST brightgreen
    keyword whole UMASK brightgreen
    keyword whole SHELLMETAS brightgreen
    keyword whole SHELLFLAGS brightgreen
    keyword whole SENDMAIL brightgreen
    keyword whole SENDMAILFLAGS brightgreen
    keyword whole NORESRETRY brightgreen
    keyword whole SUSPEND brightgreen
    keyword whole LINEBUF brightgreen
    keyword whole DELIVERED brightgreen
    keyword whole TRAP brightgreen
    keyword whole EXITCODE brightgreen
    keyword whole LASTFOLDER brightgreen
    keyword whole MATCH brightgreen
    keyword whole SHIFT brightgreen
    keyword whole INCLUDERC brightmagenta
    keyword whole SWITCHRC brightgreen
    keyword whole PROCMAIL_VERSION brightgreen
    keyword whole PROCMAIL_OVERFLOW brightgreen
    keyword whole COMSAT brightgreen
    keyword whole DROPPRIVS brightgreen
    keyword whole LOGNAME brightgreen
    keyword whole HOME brightgreen
    keyword whole PATH brightgreen
    keyword whole SHELL brightgreen

    keyword whole ST brightgreen
    keyword whole STN brightgreen
    keyword whole NL brightgreen

##############################################################
# Vars used by tdtools-procmail
    keyword TDTP_DIRPREFIX brightgreen
    keyword TDTP_INC brightgreen
    keyword TDTP_DIR brightgreen
    keyword TDTP_USE_SEPARATOR brightgreen
    keyword TDTP_SHOW_MSGINFO brightgreen
    keyword TDTP_USE_SERNO brightgreen
    keyword TDTP_SERNO_MAX brightgreen
    keyword TDTP_LEFT_MAX brightgreen
    keyword TDTP_SHOW_FILTERS brightgreen
    keyword TDTP_USE_TAG_N_DROP brightgreen
    keyword TDTP_HITS_MIN brightgreen
    keyword TDTP_USE_L10N brightgreen
    keyword TDTP_USE_MAILHEADERS brightgreen
    keyword TDTP_DATE_PREFIX brightgreen
    keyword TDTP_USE_LISTDIR brightgreen
    keyword TDTP_LISTDIR_SEPARATOR brightgreen
    keyword TDTP_USE_EXPURGATE_BULK brightgreen
    keyword TDTP_SPAM_AT_END brightgreen
    keyword TDTP_MAXSIZE brightgreen

    keyword DATE_NOW_RFC brightgreen
    keyword DATE_NOW_SER brightgreen
    keyword FROM brightgreen
    keyword TO brightgreen
    keyword CC brightgreen
    keyword ENVTO brightgreen
    keyword SIZE brightgreen
    keyword DATE_DATE brightgreen
    keyword DATE_RFC brightgreen
    keyword DATE_SER brightgreen
    keyword DATE_RECV_RFC brightgreen
    keyword DATE_RECV_SER brightgreen
    keyword MSG_HOUR brightgreen
    keyword MSG_DAY brightgreen
    keyword MSG_WEEK brightgreen
    keyword MSG_MONTH brightgreen
    keyword MSG_YEAR brightgreen
    keyword TDTP_LISTDIR brightgreen
    keyword TDTP_NAME brightgreen
    keyword SPAMTAG brightgreen
    keyword FILTER brightgreen
    keyword TDTP_HITS_TOT brightgreen

    keyword whole linestart TDTP_L10N_* brightgreen
    keyword TDTP_L10N_LL_CC brightgreen
    keyword TDTP_L10N_LL brightgreen
    keyword TDTP_L10N_FILE brightgreen

    keyword TDTP_EMAIL_NET brightgreen
    keyword TDTP_EMAIL_TDAUTOBUILDER brightgreen
    keyword TDTP_EMAIL_TDCONTROL brightgreen
    keyword TDTP_EMAIL_TDAUTODOWNLOADER brightgreen
    keyword TDTP_EMAIL_BUSINESS brightgreen
    keyword TDTP_EMAIL_BTS_DEBIAN brightgreen
    keyword TDTP_EMAIL_ML brightgreen
    keyword TDTP_EMAIL_PRI brightgreen

    keyword tdmcRDATE brightgreen
    keyword tdmcSDATE brightgreen
    keyword tdmcNL brightgreen

    keyword USEWNAME brightgreen
    keyword USEWLIST brightgreen
    keyword WLIST brightgreen
    keyword USEBNAME brightgreen
    keyword USEBLIST brightgreen
    keyword BLIST brightgreen
    keyword USETNAME brightgreen
    keyword USETLIST brightgreen
    keyword TLIST brightgreen
    keyword USEHNAME brightgreen
    keyword USEHLIST brightgreen
    keyword HLIST brightgreen

    keyword RESULT brightgreen
    keyword PACKAGE brightgreen
    keyword SUB brightgreen
    keyword COUNT brightgreen
    keyword NEWMSG brightgreen
    keyword OLDMSG brightgreen
    keyword TMPMSG brightgreen
    keyword ADDR_ME brightgreen
    keyword ADDR_LISTS brightgreen
    keyword HIT brightgreen
    keyword STRING brightgreen
    keyword STRG brightgreen
    keyword SHOW_FILTER brightgreen
    keyword TMPSPAM brightgreen

##############################################################
# Vars used by other recipes from the procmail mailinglist
    keyword PROCMAIL_DIR brightgreen
    keyword PROCMAILDIR brightgreen
    keyword PROCDIR brightgreen
    keyword OCTET brightgreen
    keyword DOTQUAD brightgreen
    keyword RCVD brightgreen
    keyword RCVD_COUNT brightgreen
    keyword FROMX brightgreen
    keyword RETX brightgreen
    keyword GPGFROM brightgreen
    keyword GPGGET brightgreen
    keyword GPGEXP brightgreen
    keyword EMAIL brightgreen
    keyword DUMMY_EXEC brightgreen
    keyword DUMMY brightgreen
    keyword TMPVAL brightgreen
    keyword TMPVAR brightgreen
    keyword HOMEDIR brightgreen
    keyword NULL brightgreen
    keyword whole H_From* brightgreen

    keyword whole on red
    keyword whole true red
    keyword whole yes red
    keyword whole off red
    keyword whole false red
    keyword whole no red
    keyword whole all red

    keyword whole :0*\n        black magenta
    keyword whole \**\n cyan

    keyword whole |*\n yellow
    keyword whole !*\n brightblue

    keyword ${*} brightgreen

    keyword ` brightred
    keyword { brightcyan
    keyword } brightcyan

context  " "            green
    keyword ${*} brightgreen

context exclusive ` `        lightgray black
    keyword '*' green
    keyword " green
    keyword \\` brightred
    keyword ; brightcyan
    keyword $(*) brightgreen
    keyword ${*} brightgreen
    keyword { brightcyan
    keyword } brightcyan
    keyword [ brightcyan
    keyword ] brightcyan
    keyword ( brightcyan
    keyword ) brightcyan
    keyword -eq brightcyan
    keyword -ne brightcyan

    keyword wholeright $+ brightgreen
    keyword $ brightgreen

    keyword >/dev/null brightblue
    keyword 2>&1 brightblue
    keyword 1>&2 brightblue

    keyword && brightblue
    keyword || brightblue
    keyword >> brightblue

    keyword ES=$? brightgreen

wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._

    keyword | cyan
    keyword whole --* cyan
    keyword whole -*\s cyan
    keyword whole \+* cyan
    keyword whole \** cyan
    keyword whole /* cyan
    keyword whole *: cyan

    keyword whole bash cyan
    keyword whole bc cyan
    keyword whole cp cyan
    keyword whole cut cyan
    keyword whole date cyan
    keyword whole echo cyan
    keyword whole egrep cyan
    keyword whole env cyan
    keyword whole expand cyan
    keyword whole formail cyan
    keyword whole gpg cyan
    keyword whole grep cyan
    keyword whole head cyan
    keyword whole killall cyan
    keyword whole md5sum cyan
    keyword whole mimedecode cyan
    keyword whole mkdir cyan
    keyword whole mv cyan
    keyword whole rm cyan
    keyword whole sed cyan
    keyword whole sendmail cyan
    keyword whole sort cyan
    keyword whole tail cyan
    keyword whole tddebbtsd cyan
    keyword whole tdnetsound cyan
    keyword whole test cyan
    keyword whole touch cyan
    keyword whole tr cyan
    keyword whole wc cyan
    keyword whole which cyan

    keyword whole if yellow
    keyword whole then yellow
    keyword whole else yellow
    keyword whole fi yellow
    keyword whole for yellow
    keyword whole in yellow
    keyword whole do yellow
    keyword whole done yellow