I don’t reject any spam e-mail as I want my system to learn from the contents. It gets delivered to a folder and I check it now and then.
However the spam I receieve is beyond rediculous, approaching 400 messages a day. It isn’t feasable for me to check the spam folder for false positives.
The following sieve rule allows me to split the spam into 2 folders based on there Spamassassin score. >=9 “Spam” .. <9 "SpamLikely"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
require ["variables", "relational","comparator-i;ascii-numeric", "regex","imap4flags","fileinto"]; # Extract integer from X-Spam-Score set "iSpamLevel" "0"; if header :regex "X-Spam-Score" "([0-9]+)(\.[0-9]+)?" { set "iSpamLevel" "${1}"; } # rule:[SpamLikely] if allof (header :is "X-Spam-Flag" "Yes", string :value "lt" :comparator "i;ascii-numeric" "${iSpamLevel}" "9") { fileinto "SpamLikely"; } # rule:[Spam] elsif allof (header :is "X-Spam-Flag" "Yes", string :value "ge" :comparator "i;ascii-numeric" "${iSpamLevel}" "9") { fileinto "Spam"; } |