Article View: news.software.readers
Article #199007Re: Pan and SLRN score files - The difference?
From: Peter J Ross
Date: Thu, 03 May 2007 14:54
Date: Thu, 03 May 2007 14:54
39 lines
2112 bytes
2112 bytes
In news.software.readers on Thu, 3 May 2007 14:31:34 +0100, Adam Funk
<a24061@ducksburg.com> wrote:
> On 2007-05-03, Peter J Ross wrote:
>
>> Change any rules that use the "{: ... }" syntax to use "|". This may
>> be complicated: here's a real example from my scorefile:
>>
>> Score: =10
>> From: pjr@example\.invalid
>> {::
>> Message-ID: @pjr\.gotdns\.org
>> Message-ID: @pjr\.motzarella\.org
>> }
>
> then I saw this good example. I had no idea you could nest an or ::
> inside an and : rule. Thanks.
See the end of /usr/share/doc/slrn/score.txt.gz for an example of the
reverse kind of nesting:
Score:: -1000
~Subject: \c[a-z]
{:
Subject: ^Re:
~Subject: ^Re:.*\c[a-z]
}
(which matches Subject lines that don't contain a lower-case
character, excluding an optional initial "Re:".)
But a possible PCRE equivalent is much less clumsy:
Score: -1000
Subject: ^(Re:\s*)?[[:^lower:]]*$
--
PJR :-)
Technical Details
Message-ID:
<slrnf3jttb.6p4.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!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mailReferences:
<pan.2007.05.03.11.40.26.188353@Cuppa.tea> <slrnf3jma1.6p4.pjr@pjr.gotdns.org> <mq4pg4-j9g.ln1@news.ducksburg.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnf3jttb.6p4.pjr@pjr.gotdns.org> Subject: Re: Pan and SLRN score files - The difference? Date: Thu, 03 May 2007 14:54:41 +0000 From: Peter J Ross <pjr@example.invalid> References: <pan.2007.05.03.11.40.26.188353@Cuppa.tea> <slrnf3jma1.6p4.pjr@pjr.gotdns.org> <mq4pg4-j9g.ln1@news.ducksburg.com> 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!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mail Newsgroups: news.software.readers Reply-To: pjr.spam@gmail.com User-Agent: slrn/0.9.8.1pl2 (Debian) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 39 Organization: Read Free News NNTP-Posting-Date: 03 May 2007 09:54:41 CDT X-Trace: DXC=\4XKIB\l2`AAWblWW^j9?E]AGWjF5PjPI465Ue@WB_5O>F:8i5U?g8G26Z<EbT:a\E2XQX54M@PfBhWjUSN4PCfFhb9lKSRTU?E