sieve_filter.master 961 Bytes
Newer Older
1
require ["fileinto", "regex", "vacation", "imap4flags"];
2

3 4
<tmpl_if name="cc">
# Send a copy of email to
5 6 7
<tmpl_loop name="ccloop">
redirect "<tmpl_var name='address'>";
</tmpl_loop>
8 9
</tmpl_if>

10 11 12 13 14 15 16 17 18 19 20
<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'>

tbrehm's avatar
tbrehm committed
21 22
keep;

23 24 25 26 27 28 29 30 31 32 33 34
<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;
}
vacation  :days 1
35 36
  :subject "Out of office reply"
  # :addresses ["test@test.int", "till@test.int"]
37
  <tmpl_var name='addresses'>
38
  "<tmpl_var name='autoresponder_text'>";
39
</tmpl_if>