🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #36651

Re: slrn scoring and newsgroup exceptions

#36651
From: Sylvain Robitaille
Date: Tue, 14 Oct 1997 00:00
68 lines
3127 bytes
On 13 Oct 1997 21:30:52 GMT, John R MacMillan <john@mail.interlog.com> wrote:

> Is there anyway to `negate' a pattern in the newsgroups part of the
> score file, eg. [comp.lang.*,!comp.lang.c.moderated] would specify
> everything under comp.lang _except_ comp.lang.c.moderated?

Almost. If you use a ~ as the first character inside the square bracket,
scores are applied to groups the do *not* match the expression in the
brackets. For example,

 [~misc.invest.*, misc.taxes]
   Score:: -9999
     Subject: Earn Money
     Subject: Earn $

Would apply to all groups *except* those matching misc.invest.* and
misc.taxes.

I wonder if you could use the word "Newsgroups" as a keyword to score on,
to try and get what you're after. I haven't experimented with this, but it
does seem like it must be possible. Ie.:

[~comp.lang.c.moderated]
  Score: -9999
    Newsgroups: comp\.lang\.*
    Subject: visual

> If not, does slrn stop scoring and junk an article when its score
> reaches -9999 or is given as -9999?

Yes. Quoted from score.txt in the doc directory of the slrn distribution:

  However there are two special values: 9999 and -9999.  If the score for
  an individual test is one of these two values, any following tests are
  skipped and the article is simply given one of the two special values.
  If the numerical value of the score is prefixed by an equal sign, score
  processing for the header is stoped and the header will be given the
  score for that test.  

> For (not so ficticious) example, would the score entries below kill any
> article with the word `yummy' in the subject except in the rec.foods.*
> groups, or will they all get killed because of the second match?
> 
> [rec.food.*]
> Score: 9999
> 	Subject: yummy
> 
> [*]
> Score: -9999
> 	Subject: yummy

For articles in the rec.food.* groups, scoring would stop after the first
"stanza". In all other groups, articles with the word "yummy" in the
subject line would be killed regardless of other scores that might be
applied later in the scorefile. (Processing stops).

Hope I've helped...

-- 
----------------------------------------------------------------------
Sylvain Robitaille                              syl@alcor.concordia.ca

Assistant to the System Managers                  Concordia University
Computing Services Department                 Montreal, Quebec, Canada
----------------------------------------------------------------------

Technical Details
Message-ID: <slrn645u71.3h9.syl@Elvira.home>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn6454pr.481.john@elixir.interlog.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn645u71.3h9.syl@Elvira.home>
Subject: Re: slrn scoring and newsgroup exceptions
Date: Tue, 14 Oct 1997 00:00:00 +0000
From: syl@alcor.concordia.ca (Sylvain Robitaille)
References: <slrn6454pr.481.john@elixir.interlog.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.mbox.zip!not-for-mail
X-Deja-AN: 280377405
Organization: Concordia University, Montreal, Quebec, Canada
NNTP-Posting-User: syl
Newsgroups: news.software.readers