Article View: news.software.readers
Article #249317Re: [Xnews] score file question
From: »Q«
Date: Sat, 17 Mar 2012 21:58
Date: Sat, 17 Mar 2012 21:58
40 lines
2732 bytes
2732 bytes
On Sat, 17 Mar 2012 12:07:12 -0700 Gene E. Bloch <blochxxxx@someplace.invalid> wrote: > On 3/16/2012, Mike Dee posted: > >>> As a reminder, your RE was this: > >>> "~Subject= [a-z]" > >> > >>> which seems to me to say "any Subject which is not a single > >>> character consisting of one of the letters a-z". > >> > >> I should have said "seems ... to say" in the past tense, i.e., > >> s/seems/seemed/ > >> > >> Between what your wrote above and other posts in this thread, I > >> can only say that "I'm rusty on REs" is overly optimistic on my > >> part. > > > I'm more than a little rusty. > > > But, yes, the score rule will pick up on a single lower case > > character (the 1st one it finds) and stop running at that point as > > it has then "done its job". > > What I thought was that the RE would choose a post consisting only of > a single character, rather than containing the single character. > > That might actually be true of the REs in Unix in the 80s or 90s, > when I had an idea what I was doing. Or maybe I'm wrong even there :-) Xnews will check every substring of the Subject against the regex, and if any substring matches, the rule matches. (Well, with ~Subject, the rule matches if *no* substring of the Subject matches the regex.) To make Xnews match only the whole string, ^ and $ are needed, e.g. ^[a-z]$ to match a Subject consisting of one lower case letter and nothing else.
Technical Details
Message-ID:
<20120317165803.65032752@fuchsia.remarqs.net>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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<XnsA01888C1FC5Amikedee@emteedee.invalid> <9sfhfcFm5nU1@mid.individual.net> <XnsA0195228D73mikedee@emteedee.invalid> <9shseqFm2oU1@mid.individual.net> <9shtckFsrdU1@mid.individual.net> <XnsA01990225C008mikedee@emteedee.invalid> <9sk5muFs4hU1@mid.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <20120317165803.65032752@fuchsia.remarqs.net> Subject: Re: [Xnews] score file question Date: Sat, 17 Mar 2012 16:58:03 -0500 From: »Q« <boxcars@gmx.net> References: <XnsA01888C1FC5Amikedee@emteedee.invalid> <9sfhfcFm5nU1@mid.individual.net> <XnsA0195228D73mikedee@emteedee.invalid> <9shseqFm2oU1@mid.individual.net> <9shtckFsrdU1@mid.individual.net> <XnsA01990225C008mikedee@emteedee.invalid> <9sk5muFs4hU1@mid.individual.net> 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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: none Lines: 40 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: individual.net PSUlaaXuSZ17ftKjXyWckQVukgsrYUZDUCbXKWOg2TSblE9xd/ Cancel-Lock: sha1:3bbLHcT6bTHmTto0DpGhyBaHAAs= X-Newsreader: Claws Mail 3.8.0 (GTK+ 2.24.8; x86_64-pc-linux-gnu) X-Original-Bytes: 2449