Article View: news.software.readers
Article #208841Re: [slrn] scorefile syntax to eliminate crossposting ?
From: Peter J Ross
Date: Tue, 16 Oct 2007 19:01
Date: Tue, 16 Oct 2007 19:01
72 lines
3869 bytes
3869 bytes
In news.software.readers on Mon, 15 Oct 2007 15:24:06 GMT, Steven
Schneider <steven_schneider@telus.net> wrote:
> * Peter J Ross <pjr@example.invalid> [2007-10-15]:
>> In news.software.readers on Sun, 14 Oct 2007 03:03:28 GMT, Steven
>> Schneider <steven_schneider@telus.net> wrote:
>>
>>> So this would be overkill then? (assuming > 3 x-postings)
>>>
>>> Xref: telusplanet.*\C[a-z]:.*\C[a-z]:.*\C[a-z]:.*\C[a-z]:.* *$
>>
>> It would also not match group names that don't end with a letter, such
>> as comp.os.plan9 or comp.lang.c++.
>>
> I see. That pretty much confirms what I'd been reading in the slrn
> manual then; I like doing things the hard way. Well, not really,
> but sometimes it seems that way.
I like "doing things the hard way" for the sake of accuracy.
The other problems with your regex are
1. \C is unnecessary because regexes in slrn scorefiles are
case-insensitive by default.
2. Even if \C were useful, it wouldn't need to be repeated unless \c
intervened.
3. ".* *$" does nothing that ".*" at the end wouldn't do.
>> Counting colons (or commas when filtering on the Newsgroups header)
>> ought to be quite good enough.
>>
> Hey, I'm always open to learning something new. Especially when it
> will save me some work, time, or it makes more sense. :-)
Sometimes the complicated method is best in order to avoid false
positives.
Here's an example of how I test complicated scorefile rules in slrn:
#v+
[*]
Score: -8888
Message-Id: \c^<n?n?q?\.?[0-9]\{10\}\.[0-9]\{6\}\.[0-9]\{4,6\}@[a-z]?[0-9]\{1,2\}[a-z]20[01]0[a-z]\{3\}\.googlegroups\.com>$
[*]
Score: +8888
Message-Id: \.googlegroups\.com>
#v-
The two rules cancel each other out if both match.
Anything that matches the first rule also matches the second.
So if the first rule doesn't match, there will be a huge positive
score to highlight the fact that something in the first rule is
broken.
> Btw, what's with all the noise in the group all of a sudden? Is the
> group being attacked for some reason, or is it just random drive-by
> idiocy?
Somebody didn't like having his spambot software criticised and
decided to throw a tantrum. The small child in question posts as
"Almond". At least he knows he's a nut.
--
PJR :-)
Technical Details
Message-ID:
<slrnfha2kv.al5.pjr@pjr.gotdns.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!feeder.news-service.com!news.motzarella.org!motzarella.org!not-for-mailReferences:
<k738u4-qi8.ln1@whisper.very.softly> <8NednTsv1LOo9YzanZ2dnUVZ_tzinZ2d@bresnan.com> <slrnfh31nv.596.steven_schneider@gemini.wss-ds.org> <slrnfh5e00.kae.pjr@pjr.gotdns.org> <slrnfh71gm.596.steven_schneider@gemini.wss-ds.org>Show Full Headers
Complete Article Headers
Message-ID: <slrnfha2kv.al5.pjr@pjr.gotdns.org> Subject: Re: [slrn] scorefile syntax to eliminate crossposting ? Date: Tue, 16 Oct 2007 20:01:51 +0100 From: Peter J Ross <pjr@example.invalid> References: <k738u4-qi8.ln1@whisper.very.softly> <8NednTsv1LOo9YzanZ2dnUVZ_tzinZ2d@bresnan.com> <slrnfh31nv.596.steven_schneider@gemini.wss-ds.org> <slrnfh5e00.kae.pjr@pjr.gotdns.org> <slrnfh71gm.596.steven_schneider@gemini.wss-ds.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!feeder.news-service.com!news.motzarella.org!motzarella.org!not-for-mail Newsgroups: news.software.readers Organization: none Lines: 72 Reply-To: Peter J Ross <pjr.spam@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: tomate.motzarella.org U2FsdGVkX1+5ML5M2vusQVOVSxRgtIpaCWAJzgsYSp9RY7Fb5KaflrNK4Puto6nRBcoIRCLYcaW6yykpfrt9klqXWiLq3xHJiXGcdkhIoQwFveKV5JLS41IsYAzUQBb1h1vTSInmt2U= X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Tue, 16 Oct 2007 19:02:03 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+DcFmD30FKHxsU06O3uHBy Cancel-Lock: sha1:3FCnN50qztYjQCqYVfeCINOl9Ps= sha1:TFU7CKOEfehqDaJ/7+B6G/uN3+A= User-Agent: slrn/pre0.9.9-9 (Linux)