🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #235396

Re: [xnews] set score and move message

#235396
From: Mike Dee
Date: Wed, 09 Sep 2009 04:44
63 lines
3848 bytes
JimH wrote:

> Mike Dee <mikedee@emteedee.invalid> wrote in 
> news:Xns9C806FFBD16D3mikedee@emteedee.invalid:
> 
>> me@tadyatam.invalid wrote in 
>>> 
>>> There's also the "O/T" ;)
>> 
>> Ah you got me there ;-)
>> 
>> Subject: \bo/?\.?t\.?\b
>> 
>> Would soon sort it though. Any other gotchas?
>> 
> 
> I still maintain that "\bot\b" is too short of a string to search
> for. A timing mistake while typing turns "to" into "ot." Missing
> by a single key width while typing turns an "I" into an "O",
> resulting in "ot" when "it" was intended.

A short and simple string is just the thing PCRE loves :-)

Typos are going to occur, but searching for the "word" "OT" alone 
makes for a much more managable and faster regex. Let alone not 
having to even think about "[", "(" or "Re:" and the pit-falls they 
present.
 
> Requiring that the Subject line begin with these two characters
> (or to be preceded by "Re:") reduces the number of false matches.
> Including likely "enclosures" such as parentheses reduces the
> number of false misses.

Look at Franks post in this thread and try to see where your line of 
reasoning here is shooting off the rails somewhat:

From: Frank Slootweg <this@ddress.is.invalid>
Newsgroups: news.software.readers
Subject: [!OT] Marking posts as "[OT]". (was: [xnews] set score and 
move message)
Date: 8 Sep 2009 18:35:42 GMT
Message-ID: <7gnmfuF2qok5lU1@mid.individual.net>
 
> The following does both of the above, and will match with ^O.T.
> and ^O/T 
> 
> ^(re\: )?[\[\(]?[ot/\.]{2,4}[\]\) ]
> 
> Yes, it does allow false matches to very bizarre possible strings
> (ie, "./.t") at the beginning of the subject line, but those will
> probably be exceedingly rare.

And it simply falls over as soon as someone (as in Frank's subect 
example above) posts in a [!OT] at the beginning of the line.

The moment someone posts a subject with "[!OT], {OT}, "OT", etc 
etc... your example regex finds no match.

A very simple \bo/?\.?t\b would've matched any of those variations 
including Frank's post.

-- 
dee
Technical Details
Message-ID: <Xns9C81961F29258emteedee@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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!weretis.net!feeder1.news.weretis.net!news.solani.org!not-for-mail
References: <Xns9C7ECBDA4BECAammammatatiscalineti@194.177.97.96> <slrn20090906180000.803.twooffive@may.eternal-september.org> <pan.2009.09.07.02.35.35.707792@emteedee.invalid> <Xns9C7F991A9F647metadyataminvalid@feeder.eternal-september.org> <Xns9C806FFBD16D3mikedee@emteedee.invalid> <Xns9C8033972430Dhahadotdotdot@74.209.136.95>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9C81961F29258emteedee@87.106.137.111>
Subject: Re: [xnews] set score and move message
Date: Wed, 09 Sep 2009 04:44:00 +0000
From: Mike Dee <mikedee@emteedee.invalid>
References: <Xns9C7ECBDA4BECAammammatatiscalineti@194.177.97.96> <slrn20090906180000.803.twooffive@may.eternal-september.org> <pan.2009.09.07.02.35.35.707792@emteedee.invalid> <Xns9C7F991A9F647metadyataminvalid@feeder.eternal-september.org> <Xns9C806FFBD16D3mikedee@emteedee.invalid> <Xns9C8033972430Dhahadotdotdot@74.209.136.95>
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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!weretis.net!feeder1.news.weretis.net!news.solani.org!not-for-mail
Newsgroups: news.software.readers
Organization: Poor Boy
Lines: 63
NNTP-Posting-Host: eJwNysEBwEAEBMCWDstGOZzov4Rk3uMWEpcID/j6qnU9+sKtkp1ylDXiaOp09/CPI2cyS2BzbcEMKLF2r8kHRCYU+g==
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: solani.org
 eJwVy8kBBDEIxMCUOEwD4QA2+Yews2+VTMEYPzAcW1uXmnJpLx1Ld1cm0Gl03G09vs7hMaMdeyuo0kir0+3dunfA899qgM/jSyOWlJv0WtSrQRQdeMxXezkUxBcJNz4iU5KnREzsFPMPfpAqfQ==
X-Complaints-To: abuse@news.solani.org
NNTP-Posting-Date: Wed, 9 Sep 2009 04:44:00 +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:/n9wT++cx6vdFNAF+pE0FmxJzrw=
User-Agent: Xnews/2009.05.01