Thanks to the recent threads I now know my sieve script doesn't work or isn't applied. Here's my script:
-------- # -*- mode: sieve -*-
require ["fileinto"];
if header :contains "X-Spamd-Result" "True" { fileinto "Junk"; } elsif header :contains "List-Id" "tilde.club" { fileinto "tildeclub"; } else { keep; } stop; -------
It's in ~/.dovecot.sieve and the binary is in ~/.dovecot.svbin. I ran sievec to make sure the binary was up to date. The binary didn't change (identical to a copy I'd saved, according to 'diff'). When I run sieve-test on a list mail that I've saved to a file it says
----- barnold@tilde$ sieve-test ~/.dovecot.sieve ~/list.mail
Performed actions:
* store message in folder: tildeclub
Implicit keep:
(none) -----
which looks like what I want. If I add the '-e' switch it does in fact put the mail into my tildeclub folder. But all the list mail that I'm receiving goes to my inbox. Help?