tbrehm
2012-05-03 dba1bd96c1387eb28e44603145dbecbc24b79aaa
commit | author | age
f442da 1
T 2 require ["fileinto", "regex", "vacation"];
3
4 <tmpl_if name="cc">
5 # Send a copy of email to
6 redirect "<tmpl_var name='cc'>";
7 </tmpl_if>
8
9 <tmpl_if name="move_junk" op="==" value="y">
10 # Move spam to spam folder
11 if header :contains "X-Spam-Flag" "YES" {
12   fileinto "Junk";
13   # Stop here so that we do not reply on spams
14   stop;
15 }
16 </tmpl_if>
17
18 <tmpl_var name='custom_mailfilter'>
19
dba1bd 20 keep;
T 21
f442da 22 <tmpl_if name="autoresponder" op="==" value="y">
T 23 #################################################################
24 # Autoreply
25 #################################################################
26
27 # Move spam to spam folder
28 if header :contains "X-Spam-Flag" "YES" {
29   fileinto "Junk";
30   # Stop here so that we do not reply on spams
31   stop;
32 }
33 vacation  :days 1
34   :subject "Out of office reply"
35   # :addresses ["test@test.int", "till@test.int"]
36   "<tmpl_var name='autoresponder_text'>";
37 </tmpl_if>