Re: Solution to spam assassin filter problem:
"Kayvan A. Sylvan" <[email protected]> Thu, 18 Jan 2007 14:21:34 -0800
| Newsgroups | gmane.mail.spam.active-spam-killer.general |
|---|---|
| Message-ID | <[email protected]> |
Very nice!!!
Is someone still working on ASK? This should be a standard feature (or at
least an option).
---Kayvan
On Thu, Jan 18, 2007 at 10:14:48PM +0000, david blunkett wrote:
>
> 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 Duff?s homepage with her photos, music, and more.
> http://www.live.com/?addtemplate=hilary&ocid=T001MSN30A0701
>
>
> -------------------------------------------------------------------------
> 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
--
Kayvan A. Sylvan | Proud husband of | Father to my kids:
Sylvan Associates, Inc. | Laura Isabella Sylvan, | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | my beautiful Queen. | Robin Gregory (2/28/92)
-------------------------------------------------------------------------
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