🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
14 messages
14 total messages Started by Adam Funk Mon, 28 Feb 2011 21:40
slrn scorefile ~groups (numpty question, sorry)
#244894
Author: Adam Funk
Date: Mon, 28 Feb 2011 21:40
18 lines
1458 bytes
If I want a score rule to apply in all groups except alt.foo, sci.bar,
and ones ending in "announce", is the correct format for opening the
stanza

[~alt.foo,sci.bar,*.announce]

or 

[~alt.foo,~sci.bar,~*.announce]

?


-- 
Oh, I am just a student, sir, and I only want to learn
But it's hard to read through the rising smoke 
                    of the books that you want to burn
                                           [Phil Ochs]
Re: slrn scorefile ~groups (numpty question, sorry)
#244900
Author: Sylvain Robitaille
Date: Tue, 01 Mar 2011 21:35
34 lines
2470 bytes
On Mon, 28 Feb 2011 21:40:55 +0000, Adam Funk wrote:

> If I want a score rule to apply in all groups except alt.foo, sci.bar,
> and ones ending in "announce", is the correct format for opening the
> stanza
>
> [~alt.foo,sci.bar,*.announce]
> or 
> [~alt.foo,~sci.bar,~*.announce]

Quoted from slrn-0.9.9p1/score.txt:

  If the first character following the opening square bracket is `~',
  then the newsgroup or newsgroups contained in the brackets are NOT to
  be matched.  That is, the `~' character is used to denote the boolean
  NOT operation.

Your example, then, would be slightly easier to read, and for a human to
parse, if written with whitespace around the newsgroup names:

   [~ alt.foo, sci.bar, *.announce]

Matches all newsgroups except "alt.foo", "sci.bar", and any that have
"announce" as the last component of the newsgroup name.

I hope this helps.

-- 
----------------------------------------------------------------------
Sylvain Robitaille                               syl@encs.concordia.ca
 
Systems analyst / AITS                            Concordia University
Faculty of Engineering and Computer Science   Montreal, Quebec, Canada
----------------------------------------------------------------------
Re: slrn scorefile ~groups (numpty question, sorry)
#244903
Author: notbob
Date: Wed, 02 Mar 2011 01:39
11 lines
1349 bytes
On 2011-03-01, Sylvain Robitaille <syl@alcor.concordia.ca> wrote:

> Matches all newsgroups except "alt.foo", "sci.bar", and any that have
> "announce" as the last component of the newsgroup name.

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?

nb
Re: slrn scorefile ~groups (numpty question, sorry)
#244904
Author: Adam Funk
Date: Wed, 02 Mar 2011 12:48
37 lines
2307 bytes
On 2011-03-01, Sylvain Robitaille wrote:

> On Mon, 28 Feb 2011 21:40:55 +0000, Adam Funk wrote:
>
>> If I want a score rule to apply in all groups except alt.foo, sci.bar,
>> and ones ending in "announce", is the correct format for opening the
>> stanza
>>
>> [~alt.foo,sci.bar,*.announce]
>> or 
>> [~alt.foo,~sci.bar,~*.announce]
>
> Quoted from slrn-0.9.9p1/score.txt:
>
>   If the first character following the opening square bracket is `~',
>   then the newsgroup or newsgroups contained in the brackets are NOT to
>   be matched.  That is, the `~' character is used to denote the boolean
>   NOT operation.
>
> Your example, then, would be slightly easier to read, and for a human to
> parse, if written with whitespace around the newsgroup names:
>
>    [~ alt.foo, sci.bar, *.announce]
>
> Matches all newsgroups except "alt.foo", "sci.bar", and any that have
> "announce" as the last component of the newsgroup name.
>
> I hope this helps.


Yes, thanks very much.


-- 
The three-martini lunch is the epitome of American efficiency.
Where else can you get an earful, a bellyful and a snootful at
the same time?                             [Gerald Ford, 1978]
Re: slrn scorefile ~groups (numpty question, sorry)
#244910
Author: Sylvain Robitaille
Date: Mon, 07 Mar 2011 16:16
17 lines
2180 bytes
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.

-- 
----------------------------------------------------------------------
Sylvain Robitaille                               syl@encs.concordia.ca
 
Systems analyst / AITS                            Concordia University
Faculty of Engineering and Computer Science   Montreal, Quebec, Canada
----------------------------------------------------------------------
Re: slrn scorefile ~groups (numpty question, sorry)
#244911
Author: 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
Re: slrn scorefile ~groups (numpty question, sorry)
#244912
Author: Mike Yetto
Date: Mon, 07 Mar 2011 17:53
58 lines
4026 bytes
notbob <notbob@notbob.invalid> writes and having writ moves on.
>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

>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

The equal sign (=) sets a score rather than adjusting it.  After
a score is set it is locked in, so =-100 will not be changed
later in the score file, but -100 can be.  Also a score of 137
can be changed to -537 by a score of =-537.

Mike "numbers were changed to protect the innocent" Yetto
-- 
In theory, theory and practice are the same.
In practice they are not.
Re: slrn scorefile ~groups (numpty question, sorry)
#244914
Author: notbob
Date: Mon, 07 Mar 2011 20:01
7 lines
1336 bytes
On 2011-03-07, Mike Yetto <myetto1@nycap.invalid> wrote:

> Mike "numbers were changed to protect the innocent" Yetto

....and to KF the twits.  Thanks for the reminder. 

nb
Re: slrn scorefile ~groups (numpty question, sorry)
#244915
Author: Sylvain Robitaille
Date: Mon, 07 Mar 2011 21:41
27 lines
2885 bytes
On 7 Mar 2011 17:34:38 GMT, notbob wrote:

> 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.  

See also the "include" directive.  I submitted a patch to JED to add
that, years ago, because I wanted users on a multi-user system to be
able to share a central score file, and also add their own custom
scoring rules.  I'm fairly certain that he'd already been working on that
independantly of my patch though, because the "include" directive that
is presently in Slrn isn't exactly the same as the "Include" directive I
had proposed (except they both accomplish the same thing, so ...), but
my point here is that it can help when a scorefile starts to get
unwieldy.

-- 
----------------------------------------------------------------------
Sylvain Robitaille                               syl@encs.concordia.ca
 
Systems analyst / AITS                            Concordia University
Faculty of Engineering and Computer Science   Montreal, Quebec, Canada
----------------------------------------------------------------------
Re: slrn scorefile ~groups (numpty question, sorry)
#244916
Author: Adam Funk
Date: Mon, 07 Mar 2011 23:37
17 lines
2003 bytes
On 2011-03-07, Mike Yetto wrote:

> The equal sign (=) sets a score rather than adjusting it.  After
> a score is set it is locked in, so =-100 will not be changed
> later in the score file, but -100 can be.  Also a score of 137
> can be changed to -537 by a score of =-537.

So (AIUI) you might as well put all the = rules at the top of the
score file (in order of priority), so that if one applies, the scoring
function will terminate there without testing any other rules and
adjusting the running score up and down.  Right?


-- 
History teaches that grave threats to liberty often come in times of
urgency, when constitutional rights seem too extravagant to endure.
                                                 (Thurgood Marshall)
Re: slrn scorefile ~groups (numpty question, sorry)
#244917
Author: notbob
Date: Tue, 08 Mar 2011 02:27
32 lines
2707 bytes
On 2011-03-07, Adam Funk <a24061@ducksburg.com> wrote:

> score file (in order of priority), so that if one applies, the scoring
> function will terminate there without testing any other rules and
> adjusting the running score up and down.  Right?

It will terminate that particular scoring rule as it applies in that
group and to that article at that time.  It does not prevent the score file
advancing to the next scoring rule, whatever it may be.  Also, scoring
files only apply in the group section you write it for.  Start a new group
section and you essentially start a new score file.  The exception is
using [*] as a group indicator.  It will apply to all the scorefile
following such a group use.  

IOW, if you score John Doe as "=-999", he will no longer exist in that
group to be scored by further rules in that group.  You've essentially
deleted all his posts IN THAT GROUP.  If you score JD as "=0000" or
higher, or even not score him at all, he will still exist and be
subject to further scoring rules IN THAT GROUP.  When you start
another group section, one that JD may also post in, you are starting
from scratch and must score JD as desired in that particular group.
OTOH, if you scored JD as =-9999 in the [*] group, early in the
scorefile, he is forever gone, never to be ruled on again, no matter
what group follows.  Got that?

I admit I set all rules as =, pretty much a TRUE or FALSE approach,
relying on proper prioritization of the rules to do the job.  I've
never considered actually assigning partial -/+ scores or altering a
score later in the file.  I'll hafta play with that one.

nb
Re: slrn scorefile ~groups (numpty question, sorry)
#244920
Author: Mike Yetto
Date: Tue, 08 Mar 2011 12:49
23 lines
2678 bytes
Adam Funk <a24061@ducksburg.com> writes and having writ moves on.
>On 2011-03-07, Mike Yetto wrote:

>> The equal sign (=) sets a score rather than adjusting it.  After
>> a score is set it is locked in, so =-100 will not be changed
>> later in the score file, but -100 can be.  Also a score of 137
>> can be changed to -537 by a score of =-537.

>So (AIUI) you might as well put all the = rules at the top of the
>score file (in order of priority), so that if one applies, the scoring
>function will terminate there without testing any other rules and
>adjusting the running score up and down.  Right?

I can't speak to what branch the code may take, but the article
is finished after being scored with "=" and needn't pass through
the rest of the filters.  Putting the absolute scores at the
start of the score file shouldn't hurt anything and,
theoretically, speed thing up.

Mike "but as indicated in my sig..." Yetto
-- 
In theory, theory and practice are the same.
In practice they are not.
Re: slrn scorefile ~groups (numpty question, sorry)
#244921
Author: Adam Funk
Date: Tue, 08 Mar 2011 13:27
28 lines
2411 bytes
On 2011-03-08, Mike Yetto wrote:

> Adam Funk <a24061@ducksburg.com> writes and having writ moves on.

>>So (AIUI) you might as well put all the = rules at the top of the
>>score file (in order of priority), so that if one applies, the scoring
>>function will terminate there without testing any other rules and
>>adjusting the running score up and down.  Right?
>
> I can't speak to what branch the code may take, but the article
> is finished after being scored with "=" and needn't pass through
> the rest of the filters.  Putting the absolute scores at the
> start of the score file shouldn't hurt anything and,
> theoretically, speed thing up.
>
> Mike "but as indicated in my sig..." Yetto
> -- 
> In theory, theory and practice are the same.
> In practice they are not.

noted!


-- 
Oh, I am just a student, sir, and I only want to learn
But it's hard to read through the rising smoke 
                    of the books that you want to burn
                                           [Phil Ochs]
Re: slrn scorefile ~groups (numpty question, sorry)
#244922
Author: Adam Funk
Date: Tue, 08 Mar 2011 13:30
20 lines
2259 bytes
On 2011-03-08, notbob wrote:

> I admit I set all rules as =, pretty much a TRUE or FALSE approach,
> relying on proper prioritization of the rules to do the job.  I've
> never considered actually assigning partial -/+ scores or altering a
> score later in the file.  I'll hafta play with that one.

I don't use many = rules; just a few at the beginning for my posts,
immediate replies to them, & definite spam.  Most of my permanent
rules bump the score up a bit for people I know I like to read in any
group and keywords related to interesting subjects (some are
restricted by group).  Then I have a lot of temporary rules (with
Expires: set) for threads I'm following or deliberately ignoring.  But
when I open high-traffic groups I sometimes delete everything below 10
points.


-- 
Physics is like sex.  Sure, it may give some practical results,
but that's not why we do it.                  [Richard Feynman]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads