From: Richard Whitehouse Date: Sun, 14 Apr 2013 14:39:04 +0000 (+0100) Subject: Mailfilter: Refactor SPAM stuff X-Git-Url: https://git.richardwhiuk.com/?a=commitdiff_plain;h=ead85a4be0f6c7dabd2e2f6058e5726fadbc75ce;p=dotfiles.git Mailfilter: Refactor SPAM stuff --- diff --git a/mailfiter b/mailfiter index 50f57d4..5accb45 100644 --- a/mailfiter +++ b/mailfiter @@ -1,16 +1,36 @@ -if (/^X-Cam-SpamScore: sss/) + +# Definite spam - don't even bother archiving this stuff + +if(/^From:.*@datingdirectaffinity\.com/) { - to "Maildir/.Junk" + exit +} + +if(/^From:.*@.*dealcloud\.co\.uk/) +{ + exit } -if (/^X-Cam-SpamScore: ss/) +if ( hasaddr("compromised@richardwhiuk.com") ) { - to "Maildir/.Junk.Possibly" + exit } -if (/^X-Cam-Spamscore: s/) +if (/^From:.*Sex Direct/) { - to "Maildir/.Junk.Maybe" + exit +} + +# Junk Mail + +if (/^X-Cam-SpamScore: s/) +{ + if (/TVD_PH_BODY_ACCOUNTS_PRE/) + { + to "Maildir/.Junk.Possibly" + } + + to "Maildir/.Junk" } if ( hasaddr("richardwhiuk@yahoo.co.uk")) @@ -21,6 +41,18 @@ if ( hasaddr("richardwhiuk@yahoo.co.uk")) } } +# Not Junk, but spammy and dull + +if ( hasaddr("srcf+logs@hermes.cam.ac.uk") ) +{ + to "Maildir/.Societies.SRCF.Sysadmin.Archive.Logs" +} + +if ( hasaddr("logcheck@srcf.net") ) +{ + to "Maildir/.Societies.SRCF.Sysadmin.Archive.Logs" +} + if (/^From:.*@britishgas\.co\.uk/) { to "Maildir/.House.British Gas" @@ -1370,18 +1402,6 @@ if(/^From:.*@.*tfl\.gov\.uk/) to "Maildir/.Travel.TFL" } -# SPAM - -if(/^From:.*@datingdirectaffinity\.com/) -{ - exit -} - -if(/^From:.*@.*dealcloud\.co\.uk/) -{ - exit -} - # Work if( hasaddr("issues@jitsi.java.net") )