# Exim filter - do not edit this line! # http://www.wlug.org.nz/EximFilter # if this filter generates an error, then exim will act as if there was # no filter file (as per usual) if error_message then finish endif # Spam filtering if $h_X-CompSoc-Warning: contains "is listed at" then save $home/Maildir/.Spam.CompSoc.RBL seen finish endif if $h_X-CompSoc-Host-Lookup-Failed: contains "failed for" then save $home/Maildir/.Spam.CompSoc.rDNS seen finish endif if $h_X-CompSoc-Spam-Score: contains "++++" then save $home/Maildir/.Spam.CompSoc.SA-maybe seen finish endif if $h_X-Splice-Header-Syntax-Check: contains "Failed" then save $home/Maildir/.Spam.Splice.HeaderSyntax seen finish endif if $h_X-Splice-RBL-Warning: contains "is listed" then save $home/Maildir/.Spam.Splice.RBL seen finish endif if $h_X-Splice-Host-Lookup-Failed: contains "Reverse DNS lookup failed" then save $home/Maildir/.Spam.Splice.rDNS seen finish endif if $h_X-Splice-Spam-Bar: contains "+++++" then save $home/Maildir/.Spam.Splice.SA-maybe seen finish endif if $h_X-Splice-Sender-Verify: contains "failed" then save $home/Maildir/.Spam.Splice.SenderVerify seen finish endif # Listowner stuff usually spam if $h_From: contains "owner@lists.ox.compsoc.net" or $h_From: contains "bounces@lists.ox.compsoc.net" or $h_To: contains "owner@lists.ox.compsoc.net" then save $home/Maildir/.Spam.Probably seen finish endif # non-root @splice.org.uk mail and bytemark comms if $original_local_part is "david-splice" or $h_Subject: contains "bytemark" or $h_From: contains "bytemark" or $h_To: contains "hosting-list@dnorth.net" or ($h_To: contains "@splice.org.uk" or $h_CC: contains "@splice.org.uk") then save $home/Maildir/.Splice seen finish endif # Nagoios alerts if $h_To: contains "nagios-alerts@localhost" then save $home/Maildir/.Nagios seen finish endif # Gmail if $original_local_part is "david-gmail" then save $home/Maildir/.GMail seen finish endif # root / autogenerated / logwatch if $sender_address contains "diamond.dnorth.net" or $sender_address: is "root@ox.compsoc.net" or $h_To: is "logwatch@ox.compsoc.net" or $h_To: is "root@ox.compsoc.net" or ($h_Subject: contains "Cron" and $original_local_part: contains "compsoc") or $h_From: contains "root@decadence" or ($h_Subject: contains "Cron" and $original_local_part: contains "herald") or $original_local_part is "david-tape" or $original_local_part is "david-rope" then save $home/Maildir/.Root seen finish endif # Other CompSoc if $original_local_part is "david-compsoc" then save $home/Maildir/.CompSoc seen finish endif # Debian lists if $original_local_part is "david-debian-lists" then save $home/Maildir/.Lists.Debian seen finish endif # OxLug if $original_local_part is "david-oxlug" then save $home/Maildir/.Lists.OxLUG seen finish endif # Dilbert if $original_local_part is "david-dilbert" then save $home/Maildir/.Lists.Dilbert seen finish endif if $original_local_part is "david-mysociety" then save $home/Maildir/.Lists.MySociety seen finish endif if $original_local_part is "david-sanesecurity" then save $home/Maildir/.Lists.Sanesecurity seen finish endif # Facebook if $original_local_part is "david-facebook" then save $home/Maildir/.Facebook seen finish endif # default action = save to inbox save $home/Maildir seen finish