Article View: news.software.readers
Article #235395Re: [xnews] set score and move message
From: Mike Dee
Date: Wed, 09 Sep 2009 05:03
Date: Wed, 09 Sep 2009 05:03
34 lines
3233 bytes
3233 bytes
JimH wrote:
> I realized after posting that, it would give a "false match" with
> any subject line starting with the word "To" - oops! Fix one thing
> and break something else even worse.. :)
>
> The reason I added everything before the [ot/\.]{2,4} was to
> define the placement of the target string. I don't see any easy
> way to say "At the very beginning of the line, unless <such and
> such specific text> appears.
And I say that this is a needless exercise (if scoring posts marked
"OT"), because it doesn't matter if there is a "Re:", a "[", a "(" or
any character involved in the subject other than "OT" (and possibly
potential characters that may appear between "O & the T"). Also, the
[OT] can appear anywhere in the subject header, not just at the
beginning or after a "Re:".
Sure typos may occur, but you won't get as many mistakes or false
positives when you start trying to filter on punctuation and
positioning.
> Omitting what's after it would cause a match with any subject line
> beginning with OT. I've not used \b much, so I haven't
> investigated exactly which characters it matches, but it would
> probably suffice at the end, after looking for a match to OT.
It matches a word boundary, you can use it to match either the
beginning of a word or the end of a word, or both ends of a word. In
this case, to the regex a \bot\b tells it to match the entire "word"
"OT".
--
dee
Technical Details
Message-ID:
<Xns9C81995D52426emteedee@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-mailReferences:
<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> <slrn20090908074041.375.twooffive@may.eternal-september.org> <Xns9C805CB065FB0hahadotdotdot@74.209.136.82>Show Full Headers
Complete Article Headers
Message-ID: <Xns9C81995D52426emteedee@87.106.137.111>
Subject: Re: [xnews] set score and move message
Date: Wed, 09 Sep 2009 05:03:07 +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> <slrn20090908074041.375.twooffive@may.eternal-september.org> <Xns9C805CB065FB0hahadotdotdot@74.209.136.82>
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: 34
NNTP-Posting-Host: eJwFwYERADAEBLCVyuNrHOrsP0ITR0g8WniYr2/O8ZwCo6p4lTSczqZjzHZxTVpkEtairFx9iacVInmdHzuEFHw=
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: solani.org
eJwNzbkBADEIxMCWwLA85RgM/ZdwF2oSQYytXQ2mWGw2l56zTC7JARf5w+cFLs0ieEpDFdHojariI6VJR0yIoo1an/MZvKcsum1jQ/zcdP8Fv74L1ssXvj4wcrIUy+G1MwmqILohjV8/+kUplw==
X-Complaints-To: abuse@news.solani.org
NNTP-Posting-Date: Wed, 9 Sep 2009 05:03:07 +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:KTr9FLUcKR62kKekQiEtEHBWq8g=
User-Agent: Xnews/2009.05.01