Results 1 to 1 of 1
I'm having a bit of trouble finding resources on Sieve other than it's RFC, which is a bit overkill.
I just want mails tagged by spamassassin as spam to go ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-10-2008 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 8
Sieve mail filter script
I'm having a bit of trouble finding resources on Sieve other than it's RFC, which is a bit overkill.
I just want mails tagged by spamassassin as spam to go to a "Junk" directory and mails with a very large spam rating to be discarded completely.
I have this to move spam to "Junk" and it works fine.
I want to discard anything with a rating of 10 or higher because otherwise each mailbox collects at least 100 spams a day.Code:require ["fileinto"]; if header :contains "X-Spam-Flag" ["YES"] { fileinto "Junk"; stop; }
I tried addingbefore the working X-Spam-Flag block but this just discarded everything.Code:if header :matches "X-Spam-Level" "\*\*\*\*\*\*\*\*\*\*" { discard; stop; }


Reply With Quote
