🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #244911

Re: slrn scorefile ~groups (numpty question, sorry)

#244911
From: notbob
Date: Mon, 07 Mar 2011 17:34
69 lines
3893 bytes
On 2011-03-07, Sylvain Robitaille <syl@alcor.concordia.ca> wrote:
> On 2 Mar 2011 01:39:51 GMT, notbob wrote:
>
>> And isn't the slrn score file linear?  IOW, it reads from top to
>> bottom and passes matches as it goes?  So, if you put the exceptions
>> at the top, slrn will pass them before rejecting any more specs you
>> might have further down the list?  Or am I incorrectly assuming this?
>
> I'm not sure.  That might be clarified in the documentation.  Otherwise
> it would be worth testing, if you use scoring extensively.

Yes, after dusting my brain off, I find this is, in fact, the case.
Looking at my /home/notbob/News/score file, it has BlinkytheShark's
kill-all rule for google groups (GG) near the top to kill ALL postings
from google and webtv servers:


[*]
Score:: =-9999
Message-ID: googlegroups
Message-ID: webtv  


This effectively kills all GG/WTV posts from all groups.  OTOH, I have
a few friends who use GG, so I put them above (before) the kill-all
rule.  An example is:

[news.software.readers]
Score:: =0000
From: name1
From: name2

[*]
Score:: =-9999
Message-ID: googlegroups
Message-ID: webtv 

This allows exceptions to the universal GG kill-all rule, as the named
groups and/or ppl precede the GG kill-all rule.  So yes, score is
linear, reading and acting on one rule at a time, from top to bottom
of the file.

Another tip: Put all the rules and people and whatever in one group,
when possible.  When you use the k key to add a score to the file,
slrn will add a completely separate group rule for that one score,
each entry with ALL the different scoring options, commented out,
BOF/EOF lines, etc.  These add up and make the score file incredibly
long.  Eventually, this humungous file will take forever to process,
slowing down the start of the actual slrn application.  

When I first started scoring, my file got so long it took over a whole
minute to process before slrn would fire up.  I tossed the whole thing
and started over, reading more about scoring.  It pays to read about
how to score and learn how to condense your file to the smallest
possible file size.  Put as many score options into a single group
catagory as possible.  Delete ALL comments (%).  Also, note the double
colons (::) for Score, allowing an OR condition.  I put these comments
at beginning of my score file:

%  :    Logical AND ie all tests must be passed (Conjunction)
%  ::   Logical OR ie any of the tests are passed (Disjunction)
%  ~    Logical NOT ie an exception from the score rule (Negation)
%  =    Stop score processing and award the score if the test is
%       passed
%  *    Wild card character


HTH,
nb
Technical Details
Message-ID: <8tkj9eFmjdU5@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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <7cht38x91q.ln2@news.ducksburg.com> <slrnimqpk4.j2n.syl@charlotte.encs.concordia.ca> <8t5lf7Fc15U2@mid.individual.net> <slrnina17o.en7.syl@charlotte.encs.concordia.ca>

Show Full Headers
Complete Article Headers
Message-ID: <8tkj9eFmjdU5@mid.individual.net>
Subject: Re: slrn scorefile ~groups (numpty question, sorry)
Date: Mon, 07 Mar 2011 17:34:38 +0000
From: notbob <notbob@notbob.invalid>
References: <7cht38x91q.ln2@news.ducksburg.com> <slrnimqpk4.j2n.syl@charlotte.encs.concordia.ca> <8t5lf7Fc15U2@mid.individual.net> <slrnina17o.en7.syl@charlotte.encs.concordia.ca>
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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Organization: ....little, if any
Lines: 69
X-Trace: individual.net pSPJm+Kp/1JnL1V18tooGQ2rrCzPuLYkXQ4hTHsdGbiJ3sk+UT
Cancel-Lock: sha1:sYP5jE0s9BKdk1pEt3AISCBaDoI=
User-Agent: slrn/pre1.0.0-24 (Linux)