Article View: news.software.readers
Article #120589Re: [Xnews] Regular expression scoring help?
From: Tech Zero
Date: Sat, 22 Feb 2003 12:20
Date: Sat, 22 Feb 2003 12:20
46 lines
2294 bytes
2294 bytes
The voice of "Murray Peterson" drifted in on the cyber-winds,
from the sea of virtual chaos...
> Randolph Carter <azoblue@myrealboxDOT.com> wrote in
> news:Xns9328ED0A14845sethralavode@68.1.17.6:
>
>> if subject is X characters long, and does NOT contain a space,
>> kill it.
>
> Say X is 50, this will kill any subject that length or longer that
> has no space character (which is what I assume you want):
>
> Score:: -9999
> Subject: [^ ]{50,}
That would kill the first post, but not the replies.
Then again, it looks like your looking for post that doesn't contain a
space in the first 50 or more characters. Since the value of "X" (50)
in that entry is immaterial, setting it to say 20 is just as safe.
Not that I'm trying to hack you skillz Murray...
Randolph...
Another way to do it would be to use the "non space" wildcard along
with a possible starts with "Re: ". This will catch all replies as
well unless they change the subject:
Score: -9999
Subject: ^(Re: )?\S{20,}
Ohh, here's a couple more freebies for you...
POrn Spam "H.o.t. C.h.i.c.k.s" (\w\W\s?){7,}
Tagged Spam " #243A725g#" \s{2,}\W?\d{4,}\W?$
Lolita Spam "14 year olds girls" 1\d\sy(o|(ea)?r)
You can drop it all in the same entry if you like:
Score: -9999
Subject: \s{2,}\W?\d{4,}\W?$|(\w\W\s?){7,}|1\d\sy(o|(ea)?r)|^(Re: )?\S{20,}
--
The Tech Zero, Maxwell C.G. Pollare
Technical Details
Message-ID:
<Xns932A364597E68Insomniac@130.133.1.4>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!fu-berlin.de!uni-berlin.de!142.59.1.190!not-for-mailReferences:
<Xns9328ED0A14845sethralavode@68.1.17.6> <Xns9328F0E3F498farkle@24.71.223.159>Show Full Headers
Complete Article Headers
Message-ID: <Xns932A364597E68Insomniac@130.133.1.4> Subject: Re: [Xnews] Regular expression scoring help? Date: Sat, 22 Feb 2003 12:20:07 +0000 From: Tech Zero <spamail@dragonfur.ca> References: <Xns9328ED0A14845sethralavode@68.1.17.6> <Xns9328F0E3F498farkle@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!fu-berlin.de!uni-berlin.de!142.59.1.190!not-for-mail Newsgroups: news.software.readers Lines: 45 Reply-To: techzero@dragonfur.ca NNTP-Posting-Host: 142.59.1.190 X-Trace: fu-berlin.de 1045916407 53513202 142.59.1.190 (16 [139626]) User-Agent: Xnews/06.01.10