Article View: news.software.readers
Article #75029Re: [slrn] Scoring reg expression
From: J.B. Nicholson-Owens
Date: Mon, 02 Apr 2001 00:52
Date: Mon, 02 Apr 2001 00:52
38 lines
2046 bytes
2046 bytes
Allodoxaphobia wrote:
> One needs a small (well, large) set of Subject: killers to get
> most of that ilk:
>
> Subject: money.*\d\d\d$
> Subject: \<sex.*\d\d\d$
> Subject: $$$.*\d\d\d$
That last one might not parse the right way since '$' is a metachar.
Something like this should work and score quickly:
[*]
Score: =-9999
Subject: \d\{3\}$
{::
Subject: money
Subject: \<sex
Subject: \$\{3\}
}
Unfortunately I haven't seen this spam so I wasn't able to test this score
entry to see if other criteria is needed to avoid killing things one wants
to keep. I attempted to say the article will be killed (assuming a
kill_score of -9,999) if the article's subject has 3 neighboring digits at
the end of the subject and at least one of the following:
* "money"
* a word that begins with "sex"
* 3 neighboring dollar signs
The "and" joining those two parts together is from "Score:" (note the single
colon), the "or" for money, sex, $$$ is from "{::" (note the double colon).
I am using the slick new score syntax just introduced to slrn's official
build.
Good luck.
Technical Details
Message-ID:
<slrn9cfj7s.6u.jbn@forestfield.org>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!supernews.google.com!sn-xit-03!supernews.com!freenix!skynet.be!fu-berlin.de!uni-berlin.de!208.216.67.173!not-for-mailReferences:
<slrn9cff99.45b.n@lieckfeldt.net> <slrn9cfcjn.rtm.garry@zfw.zvolve.net> <slrn9cfh5m.553.QSB@animas.frontier.net>Show Full Headers
Complete Article Headers
Message-ID: <slrn9cfj7s.6u.jbn@forestfield.org> Subject: Re: [slrn] Scoring reg expression Date: Mon, 02 Apr 2001 00:52:57 +0000 From: jbn@forestfield.org (J.B. Nicholson-Owens) References: <slrn9cff99.45b.n@lieckfeldt.net> <slrn9cfcjn.rtm.garry@zfw.zvolve.net> <slrn9cfh5m.553.QSB@animas.frontier.net> 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!supernews.google.com!sn-xit-03!supernews.com!freenix!skynet.be!fu-berlin.de!uni-berlin.de!208.216.67.173!not-for-mail Newsgroups: news.software.readers Organization: Forest Field OmniMedia Lines: 37 NNTP-Posting-Host: 208.216.67.173 X-Trace: fu-berlin.de 986172777 4195941 208.216.67.173 (16 [35848]) X-Orig-Path: jbn User-Agent: slrn/0.9.6.4pl4a (Unix)