tbrehm
2012-05-03 dba1bd96c1387eb28e44603145dbecbc24b79aaa
commit | author | age
6cc49f 1
402bb3 2 require ["fileinto", "regex", "date", "relational", "vacation"];
6cc49f 3
2a704f 4 <tmpl_if name="cc">
T 5 # Send a copy of email to
6 redirect "<tmpl_var name='cc'>";
7 </tmpl_if>
8
6cc49f 9 <tmpl_if name="move_junk" op="==" value="y">
T 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
6cc49f 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 }
402bb3 33
daa532 34 if allof(currentdate :value "ge" "iso8601" "<tmpl_var name='start_date'>", currentdate :value "le" "iso8601" "<tmpl_var name='end_date'>") {
6cc49f 35 vacation  :days 1
T 36   :subject "Out of office reply"
c6e05a 37   <tmpl_var name='addresses'>
6cc49f 38   "<tmpl_var name='autoresponder_text'>";
402bb3 39 }
6cc49f 40 </tmpl_if>