🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #235393

Re: [xnews] set score and move message

#235393
From: Mike Dee
Date: Wed, 09 Sep 2009 04:04
93 lines
3847 bytes
JimH wrote:

> Ammammata <ammammata@tiscalinet.it> wrote in
> news:Xns9C7ECBDA4BECAammammatatiscalineti@194.177.97.96: 
> 
[...]
>> take as example alt.sports.basketball.nba.la-lakers: in these
>> days, between summer league and preseason, the number of
>> off-topics is about 90% (and counting)
>> 
>> so I decided that all messages (and replies) that begin with:
>> 
>> ot
>> [ot]
>> (ot)
>> 
>> must be scored and moved in another folder
>> 
>> I started with this:
>> 
>> [lakers]
>> % -9876 means 'move elsewhere' 
>> % (-9999 is used for xposts on three-more groups)
>> Score:: -9876
>> Subject: ^ot
>> Subject: ^\[ot
>> Subject: ^\(ot
>> Subject: ^[Rr][Ee]: ot
>> Subject: ^[Rr][Ee]: \[ot
>> Subject: ^[Rr][Ee]: \(ot

[...] 

> I just thought I'd mention that XNews SCORE.INI isn't case
> sensitive when you use the colon after "Subject". If you WANT case
> sensitivity, remove the colon.

In Xnews, if you want case-sensitivity you use "=" instead of a
colon, as in: 

    Subject= AM I SHOUTING LOUDLY ENOUGH FOR YOU?

Or the sublime:

 [.]
    Score: -9999
    ~Subject= .*[a-z]
    % Kills any subject header without (at least) one lowercase
    % character.

And:

    Score: -9999
    Subject= ^[Rr][Ee]: [^a-z]*$
    % the article will be killed if the subject begins with "Re: "
    % and the rest of the line does not contain a lowercase
    % character. 

> Also, all the above lines can functionally be replaced by the
> following: 
> 
> Subject: ^[re: ]{0,4}[\[\(]?ot

That regex does not match the following:

Re: {OT} testing the above PCRE
{OT] testing the above PCRE %%(typo on bracket)
Re: [O.T.] testing the above PCRE
Re: [O/T] testing the above PCRE
O.T. testing the above PCRE
O/T testing the above PCRE
"OT" testing the above PCRE
testing the above [OT] PCRE

etc; etc...

However, it matches:

Subject: Other than this PCRE being a PCRE. Why doesn't it work? 

etc; etc...
 
> Granted, this can't tell the difference between "RE:", ":r" or
> even "e: R"... but how likely are they to ever happen? It sees
> "RE: ", "Re: " and "re:" as being identical (on the off chance
> there isn't a space after "RE:").

And (proven) room for error. When all you need is \bo/?\.?t\b
for this task (scoring "OT" posts) to work without error, in any of
the above examples. 

-- 
dee
Technical Details
Message-ID: <Xns9C818F65AE920emteedee@87.106.137.111>
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!border1.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!news.solani.org!not-for-mail
References: <Xns9C7ECBDA4BECAammammatatiscalineti@194.177.97.96> <Xns9C7ECF92E972Chahadotdotdot@74.209.136.98>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9C818F65AE920emteedee@87.106.137.111>
Subject: Re: [xnews] set score and move message
Date: Wed, 09 Sep 2009 04:04:20 +0000
From: Mike Dee <mikedee@emteedee.invalid>
References: <Xns9C7ECBDA4BECAammammatatiscalineti@194.177.97.96> <Xns9C7ECF92E972Chahadotdotdot@74.209.136.98>
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!border1.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!news.solani.org!not-for-mail
Newsgroups: news.software.readers
Organization: Poor Boy
Lines: 93
NNTP-Posting-Host: eJwNyskBwCAIBMCWQFlwy+HQ/ktI5j3Yrt5hDjc8vFei4TY5HcxsS0gNN+75D8hlogz1fLMKXCo3eTjq1Sf9A1PdFTs=
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: solani.org
 eJwNytERADEEBcCWCB7KEaH/Eu5m9nNNwGhXGNTW1qNX3J/M1dF2vse9OiPTuCxG0tUDg+3oQzLPnAS1orVQopjG0XM2omLJAMqwHC4XzcuPueYmve350bticXMqOhlJWtrzT+uFnw9SKSsj
X-Complaints-To: abuse@news.solani.org
NNTP-Posting-Date: Wed, 9 Sep 2009 04:04:20 +0000 (UTC)
X-Face: $W<X:Uw4$"nTXRHqqZ=.|pFI@K,TNNH0i>-J; N5/yst7]cQb.o^L$oAhs-J!C
 AOUMQ^NHu3aTb9H8awW~4Y.LR`[o}Rz6Xf=^krb-AwUiM"7zA+QR<vWz'8>hKiTOyd]h
 z]7m=[nhuH{NMrE>~][PM`wSKd?TFV-.glh)>N
Cancel-Lock: sha1:ne32Ar5PBLecbhnhq9dHCeNOLBs=
User-Agent: Xnews/2009.05.01