commit | author | age
|
edf806
|
1 |
require ["fileinto", "regex", "date", "relational", "vacation"]; |
T |
2 |
|
|
3 |
<tmpl_if name="cc"> |
|
4 |
# Send a copy of email to |
f798aa
|
5 |
<tmpl_loop name="ccloop"> |
FT |
6 |
redirect "<tmpl_var name='address'>"; |
|
7 |
</tmpl_loop> |
edf806
|
8 |
</tmpl_if> |
T |
9 |
|
|
10 |
<tmpl_if name="move_junk" op="==" value="y"> |
|
11 |
# Move spam to spam folder |
|
12 |
if header :contains "X-Spam-Flag" "YES" { |
|
13 |
fileinto "Junk"; |
|
14 |
# Stop here so that we do not reply on spams |
|
15 |
stop; |
|
16 |
} |
|
17 |
</tmpl_if> |
|
18 |
|
|
19 |
<tmpl_var name='custom_mailfilter'> |
|
20 |
|
e94a9f
|
21 |
keep; |
T |
22 |
|
edf806
|
23 |
<tmpl_if name="autoresponder" op="==" value="y"> |
T |
24 |
################################################################# |
|
25 |
# Autoreply |
|
26 |
################################################################# |
|
27 |
|
|
28 |
# Move spam to spam folder |
|
29 |
if header :contains "X-Spam-Flag" "YES" { |
|
30 |
fileinto "Junk"; |
|
31 |
# Stop here so that we do not reply on spams |
|
32 |
stop; |
|
33 |
} |
|
34 |
|
4bd960
|
35 |
<tmpl_if name="autoresponder_date_limit"> |
edf806
|
36 |
if allof(currentdate :value "ge" "iso8601" "<tmpl_var name='start_date'>", currentdate :value "le" "iso8601" "<tmpl_var name='end_date'>") { |
4bd960
|
37 |
</tmpl_if> |
T |
38 |
|
edf806
|
39 |
vacation :days 1 |
T |
40 |
:subject "<tmpl_var name='autoresponder_subject'>" |
|
41 |
<tmpl_var name='addresses'> |
|
42 |
"<tmpl_var name='autoresponder_text'>"; |
4bd960
|
43 |
|
T |
44 |
<tmpl_if name="autoresponder_date_limit"> |
edf806
|
45 |
} |
T |
46 |
</tmpl_if> |
4bd960
|
47 |
</tmpl_if> |
edf806
|
48 |
|