require ["fileinto", "regex", "date", "relational", "vacation"];
|
|
<tmpl_if name="cc">
|
# Send a copy of email to
|
<tmpl_loop name="ccloop">
|
redirect "<tmpl_var name='address'>";
|
</tmpl_loop>
|
</tmpl_if>
|
|
<tmpl_if name="move_junk" op="==" value="y">
|
# Move spam to spam folder
|
if header :contains "X-Spam-Flag" "YES" {
|
fileinto "Junk";
|
# Stop here so that we do not reply on spams
|
stop;
|
}
|
</tmpl_if>
|
|
<tmpl_var name='custom_mailfilter'>
|
|
keep;
|
|
<tmpl_if name="autoresponder" op="==" value="y">
|
#################################################################
|
# Autoreply
|
#################################################################
|
|
# Move spam to spam folder
|
if header :contains "X-Spam-Flag" "YES" {
|
fileinto "Junk";
|
# Stop here so that we do not reply on spams
|
stop;
|
}
|
|
<tmpl_if name="autoresponder_date_limit">
|
if allof(currentdate :value "ge" "iso8601" "<tmpl_var name='start_date'>", currentdate :value "le" "iso8601" "<tmpl_var name='end_date'>") {
|
</tmpl_if>
|
|
vacation :days 1
|
:subject "<tmpl_var name='autoresponder_subject'>"
|
<tmpl_var name='addresses'>
|
"<tmpl_var name='autoresponder_text'>";
|
|
<tmpl_if name="autoresponder_date_limit">
|
}
|
</tmpl_if>
|
</tmpl_if>
|