Article View: news.software.readers
Article #107596Re: [Xnews] Problem with scoring
From: Timothy Luders
Date: Thu, 15 Aug 2002 05:50
Date: Thu, 15 Aug 2002 05:50
56 lines
3042 bytes
3042 bytes
Murray Peterson <mwp@home.com.invalid> wrote in news:Xns9262773FC52E5farkle@24.71.223.159: > Pengbo <pengbo@nowantspam.com> wrote in > news:Xns926283048CFCFsupercalifragelistic@140.99.99.130: > >> [snip] >>> % generated by Xnews on Tue 06 Aug 2002 09:02:33a >>> Score:: -9999 >>> Subject: Free P\.0\.R\.N\.0\! Link Inside\! Fresh post.* >> >> Looks fine score file syntax wise which leaves the reg-ex. >> >> What I usually do in this situations is start small and work up. >> Edit your score file while in the group with some of this spam in >> like this >> >> Subject:: Free.* >> >> and see if that works. If it does add some more >> >> Subject:: Free P\.0\..* >> [snip] > > > One thing you both might want to note -- the ".*" at the end of > the previous expressions is a complete waste of time and CPU > power. For example, "free" matches just as well as "free.*", and > runs a lot quicker as well. > > As a general rule, you should only attempt to match enough of the > string as required, but no more. Instead of matching all of: > Free P.0.R.N.0! Link Inside! Fresh post! > it's good enough to match: > Free P.O.R.N > > Score:: -9999 > Subject: free\s+p.o.r.n > > I wouldn't even bother escaping the periods in the subject -- > "free" anything is almost guranteed to be spam. Personally, I > have the following in my score file: > Subject: \bfree\b > > One way to do a quick test of your regexp is to use the test > window (Special->Test Regexp). Copy the offending subject header > into the test string area, and then run your regexp against that. > Because o or 0 could be used here: p\W?(o|0)\W?r\W?n\W?(o|0) -- Most of the worlds great discoveries are made with a cry, not of "Eureka!" but "That's funny".
Technical Details
Message-ID:
<Xns926AE86579610tandelshomecom@204.127.68.17>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!ihnp4.ucsd.edu!sdd.hp.com!usc.edu!attla2!ip.att.net!attbi_feed3!attbi.com!rwcrnsc52.ops.asp.att.net.POSTED!not-for-mailReferences:
<Xns92627EEA5E4B1andrewblack1orguk@130.133.1.4> <Xns926283048CFCFsupercalifragelistic@140.99.99.130> <Xns9262773FC52E5farkle@24.71.223.159>Show Full Headers
Complete Article Headers
Message-ID: <Xns926AE86579610tandelshomecom@204.127.68.17> Subject: Re: [Xnews] Problem with scoring Date: Thu, 15 Aug 2002 05:50:43 GMT From: Timothy Luders <tluders25@netscape.net> References: <Xns92627EEA5E4B1andrewblack1orguk@130.133.1.4> <Xns926283048CFCFsupercalifragelistic@140.99.99.130> <Xns9262773FC52E5farkle@24.71.223.159> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!ihnp4.ucsd.edu!sdd.hp.com!usc.edu!attla2!ip.att.net!attbi_feed3!attbi.com!rwcrnsc52.ops.asp.att.net.POSTED!not-for-mail Newsgroups: news.software.readers Organization: AAC User-Agent: Xnews/5.04.25 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Mime-Version: 1.0 Lines: 55 NNTP-Posting-Host: 12.233.208.141 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc52.ops.asp.att.net 1029390642 12.233.208.141 (Thu, 15 Aug 2002 05:50:42 GMT) NNTP-Posting-Date: Thu, 15 Aug 2002 05:50:42 GMT