🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #199343

Re: Pan and SLRN score files - The difference?

#199343
From: Peter J Ross
Date: Fri, 11 May 2007 11:32
55 lines
2959 bytes
In news.software.readers on 10 May 2007 01:56:18 +0200, Mike Dee
<mikedee@emteedee.invalid> wrote:

> Adam Funk <a24061@ducksburg.com> wrote:
>
>> On 2007-05-08, Peter J Ross wrote:
>> 
>>> Here's an idea.
>>>
>>> Score:: =-9999
>>>      Xref: warez
>>>      Newsgroups: warez
>>>
>>> What that *should* do is score expensively on Newsgroups only if the
>>> Xref rule doesn't apply, since any intelligent software will move on
>>> after the first successful match.
>> 
>> Does slrn's scoring algorithm work this way?
>
> http://slrn.sourceforge.net/manual/slrn-FAQ-4.html#ss4.2
>
> <quote>
> "The equal sign before the score value tells slrn to assign the score -
> 9999 and to skip all other tests for the affected article; otherwise, 
> the score would be added to the score value of all previous matching 
> rules and subsequent rules could increase the score again."
> <\quote>
>
> This rule applies equally to Xnews and Pan newsreaders.

It's the answer to a different question. Here's a very simple example.

In this rule:

	Score:: -50
		From: kook
		From: troll

Articles posted by "kook" shouldn't need to be checked again to see if
they were posted by "troll" as well.

In XNews or Pan you could do this:

	Score: -50
		From: kook|troll

And again, "kook" matches shouldn't need to be checked for "troll".
It's clear from the PCRE documentation that the first match is used
and the second ignored, but I can't be 100% sure about Slrn without
reading (and understanding) the source code. I'm 99.9% sure because
any other method would be silly.


-- 
PJR :-)
Technical Details
Message-ID: <slrnf48l1c.3db.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-mail
References: <pan.2007.05.03.11.40.26.188353@Cuppa.tea> <pan.2007.05.03.15.06.43.187000@emteedee.invalid> <slrnf3k3il.j5l.no.spam@thurston.blinkynet.net> <Xns992AE07C8965Demteedee@news.datemas.de> <slrnf41o7n.b2v.pjr@pjr.gotdns.org> <ts89h4-skf.ln1@news.ducksburg.com> <Xns992C6512F4937emteedeeinvalid@85.227.11.7>

Show Full Headers
Complete Article Headers
Message-ID: <slrnf48l1c.3db.pjr@pjr.gotdns.org>
Subject: Re: Pan and SLRN score files - The difference?
Date: Fri, 11 May 2007 11:32:05 +0000
From: Peter J Ross <pjr@example.invalid>
References: <pan.2007.05.03.11.40.26.188353@Cuppa.tea> <pan.2007.05.03.15.06.43.187000@emteedee.invalid> <slrnf3k3il.j5l.no.spam@thurston.blinkynet.net> <Xns992AE07C8965Demteedee@news.datemas.de> <slrnf41o7n.b2v.pjr@pjr.gotdns.org> <ts89h4-skf.ln1@news.ducksburg.com> <Xns992C6512F4937emteedeeinvalid@85.227.11.7>
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: 55
Organization: Read Free News
NNTP-Posting-Date: 11 May 2007 06:32:05 CDT
X-Trace: DXC==Gj9>>Ej5>J9D^J:lC9lKF]AGWjF5PjPI465Ue@WB_5ODk<i^O2O?XN26Z<EbT:a\ElV3mi\haFgH3V78HOHRTYOXeWHE\FokS@