Solution to spam assassin filter problem:
"david blunkett" <[email protected]> Thu, 18 Jan 2007 22:14:48 +0000
| Newsgroups | gmane.mail.spam.active-spam-killer.general |
|---|---|
| Message-ID | <[email protected]> |
--===============1594306205==
Content-Type: text/plain; format=flowed
First I wrote a spam assassin tagged detection routine in askmessage.py:
#------------------------------------------------------------------------------
def is_spam(self):
"""
Returns true if this message comes is spam False otherwise
"""
subject = self.get_subject()
self.log.write(10, "is_spam(): Subject=" + subject)
if re.match("\{spam[!?]*\}", subject, re.IGNORECASE):
return 1
else:
return 0
Then I applied this test in askmain right above is_confirmation_return:
if self.msg.is_spam():
self.log.write(1, "Spam caught, delivering...")
self.msg.deliver_mail("Spam email ")
return(self.config.RET_PROCMAIL_CONTINUE)
Now tagged mail passes straight through where my mail client handles it and
ASK only processes what SA doesn't tag. This means >95% of spams don't
require
a challenge and the "spam multiplying" factor for ASK is <5% rather than
100%.
ASK now only issues CR if it isn't obviously spam and isn't in my white
list.
Comments? - this code could be much better!
Cheers,
SA
>From: "david blunkett" <[email protected]>
>To: [email protected]
>Subject: [A-S-K-users] Spam assassin / ASK advice
>Date: Thu, 18 Jan 2007 13:33:43 +0000
>
>
>
>Dear list,
>
>I use Spam Assassin to filter my email - this gets 95+% of all spam. Since
>I get a lot of spam the remaining <5% is very annoying and I want to use
>ASK
>on this 5% only. The 95% caught I want to delete or deliver. My SA
>configuration sets a {Spam} tag in the subject line and an X-Spam-Level: **
>header.
>
>Is this easily possible in ASK?
>
>I am assuming I should hack the python scripts to add my own filters -
>where
>would be a good point?
>
>For the 95% that SA catches there is no point issuing a challenge.
>
>Cheers,
>
>
>SA
>
>_________________________________________________________________
>Turn searches into helpful donations. Make your search count.
>http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_donation&FORM=WLMTAG
>
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share
>your
>opinions on IT & business topics through brief surveys - and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>A-S-K-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/a-s-k-users
_________________________________________________________________
Get Hilary Duffs homepage with her photos, music, and more.
http://www.live.com/?addtemplate=hilary&ocid=T001MSN30A0701
--===============1594306205==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--===============1594306205==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
A-S-K-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/a-s-k-users
--===============1594306205==--