🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #208885

Re: [slrn] scorefile syntax to eliminate crossposting ?

#208885
From: Steven Schneider
Date: Thu, 18 Oct 2007 02:02
113 lines
5369 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* Peter J Ross <pjr@example.invalid> [2007-10-16]:
> 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.
>
I don't recall, but I think I knew that at the time.  I probably
threw it in there for completeness, or was it for anal retentiveness?
:-)

> 2. Even if \C were useful, it wouldn't need to be repeated unless \c
> intervened.
>
See above.

> 3. ".* *$" does nothing that ".*" at the end wouldn't do.
>
Again, above.  Though, as you pointed out earlier, for all my
efforts to be "exhaustive," I was still missing cases where groups
didn't end in a letter.

So far, it seems to have worked.  I've probably just been lucky,
though.

>>> Counting colons (or commas when filtering on the Newsgroups header)
>>> ought to be quite good enough.
>>>
Xref: :.*:.*:.*: is more elegant and easy to understand.

>> 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.

Let me see if I understand this: you test the validity of a
complicated rule against a simpler rule, or vice versa.  If they
match then they both functionally do the same thing.

Is this a test you perform to see if you can simplify a complicated 
rule then?  When would you want to use a more complicated version of
simpler rule?  Even if they're both functionally equivalent in the
test, are there cases where the more complicated rule may be more
desirable?

Am I perhaps missing the point? :-/
>
>> 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.
>
>
Ah, thanks for the clarification. :-)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (OpenBSD)

iD8DBQFHFr6syJgTRdM3i6gRAumgAJ0R+K6ja6Vqsgydnb/e6TA1OyPMhACcDtXD
efNLKA8YGzZN4QZi+4A9XOs=
=qEDY
-----END PGP SIGNATURE-----

-- 
W. Steven Schneider  <steven_schneider@telus.net>
Technical Details
Message-ID: <slrnfhdflc.r7.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!postnews.google.com!news2.google.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!edtnps90.POSTED!53ab2750!not-for-mail
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> <slrnfha2kv.al5.pjr@pjr.gotdns.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnfhdflc.r7.steven_schneider@gemini.wss-ds.org>
Subject: Re: [slrn] scorefile syntax to eliminate crossposting ?
Date: Thu, 18 Oct 2007 02:02:21 GMT
From: Steven Schneider <steven_schneider@telus.net>
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> <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!postnews.google.com!news2.google.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!edtnps90.POSTED!53ab2750!not-for-mail
Newsgroups: news.software.readers
Organization: Just a Guy and His Family
X-No-Alan-Connor: Yes
X-Operating-System: OpenBSD -current
X-Crypto: GnuPG http://www.gnupg.org/
X-GnuPG-Expiry-Date: 10 October 2009
X-GnuPG-Primary-ID: 0xD3378BA8
X-GnuPG-Primary-Fingerprint: 39D5 CA7B 4646 0C0D 6667 BB51 C898 1345 D337 8BA8
X-GnuPG-Secondary-ID: 0x838164FE
X-GnuPG-Secondary-Fingerprint: 39A0 6FBB FE94 9DA2 E2C6 AA75 0767 4D4F 8381
 64FE
X-Signature-Color: magenta black
User-Agent: slrn/0.9.8.1 (OpenBSD)
Lines: 113
NNTP-Posting-Host: 75.153.170.131
X-Trace: edtnps90 1192672941 75.153.170.131 (Wed, 17 Oct 2007 20:02:21 MDT)
NNTP-Posting-Date: Wed, 17 Oct 2007 20:02:21 MDT