host info updates
[distro-setup] / subdir_files / sieve / main.sieve
1 # Sieve filter
2 # note: main is just a random name, since dovecot required a name
3 ##
4 require [ "regex", "variables", "fileinto", "envelope", "mailbox", "imap4flags", "include" ];
5
6 # The default threshold for
7 # spamassassin is 5, so we have 5 plus symbols here.
8 if header :regex "x-spam_bar" "^\\+{5}" {
9 fileinto :create "Junk";
10 stop;
11 }
12
13 include :personal "personal";
14 include :personal "lists";
15 include :personal "personalend";
16
17
18 # note, i originally used something like this to filter mailing lists
19 # http://www.dovecot.org/list/dovecot/2014-September/097846.html
20 # However, I found that there were a lot of special cases
21 # where I did not want them filtered, like small mailing lists, etc,
22 # so I prefer to keep a list of lists that I want filed into folders.
23 # However, it was useful as an example for constructing that code.