Thread View: news.software.readers
6 messages
6 total messages
Started by John R MacMillan
Mon, 13 Oct 1997 00:00
slrn scoring and newsgroup exceptions
Author: John R MacMillan
Date: Mon, 13 Oct 1997 00:00
Date: Mon, 13 Oct 1997 00:00
23 lines
1241 bytes
1241 bytes
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? If not, does slrn stop scoring and junk an article when its score reaches -9999 or is given as -9999? 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 -- To reply by mail, please remove "mail." from my address -- but please send e-mail or post, not both
Re: slrn scoring and newsgroup exceptions
Author: Heikki Kantola
Date: Tue, 14 Oct 1997 00:00
Date: Tue, 14 Oct 1997 00:00
30 lines
2073 bytes
2073 bytes
John R MacMillan <john@mail.interlog.com> informed news.software.readers with the following: >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? Yes, the negation char is '~', so [comp.lang.*, ~comp.lang.c.moderated] should yield the scope you wished. >If not, does slrn stop scoring and junk an article when its score >reaches -9999 or is given as -9999? 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? If I'm not mistaken, even as score -9999 has the special meaning, the actual article killing will happen only after all relevant rules have been tried and total scores have been accumulated, so in your example (erased for sake of brevity) rules giving both 9999 and -9999 to same article would result total score of 0 and thus no special action by default. -- Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI> L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta tunnilta.
Re: slrn scoring and newsgroup exceptions
Author: Zed C. Pobre
Date: Tue, 14 Oct 1997 00:00
Date: Tue, 14 Oct 1997 00:00
52 lines
2961 bytes
2961 bytes
-----BEGIN PGP SIGNED MESSAGE-----
On 14 Oct 1997 10:04:15 GMT, Heikki Kantola <hezu@iki.fi> wrote:
>John R MacMillan <john@mail.interlog.com> informed
>news.software.readers with the following:
>>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?
>
>Yes, the negation char is '~', so [comp.lang.*, ~comp.lang.c.moderated]
>should yield the scope you wished.
Er, no. That pattern yields the same as [comp.lang.*] I think.
The ~ only has value if it is the first character in the sequence, and
then the scoring applies to every group *except* those in the
brackets.
>If I'm not mistaken, even as score -9999 has the special meaning, the
>actual article killing will happen only after all relevant rules have
>been tried and total scores have been accumulated, so in your example
>(erased for sake of brevity) rules giving both 9999 and -9999 to same
>article would result total score of 0 and thus no special action by
>default.
Not true. The way I understand it, as SLRN enters a newsgroup, it
looks for all [] sequences that match that newsgroup, and for each
message header it goes down the rules sequences one by one. If during
that search it hits a Score: 9999, no more rules are checked, that
message is scored "high". If it hits a Score: -9999 no more rules are
checked, and that message is scored "low". If it hits a Score: =500,
no more rules are checked and that message is scored at 500 points
exactly. There should have been a SCORE_FAQ file or some such that
came with SLRN that explains this, though granted it can be a little
confusing in spots.
=============================================================================
Zed Pobre <zcp@po.cwru.edu> | PGP key on servers, fingerprint on finger
=============================================================================
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
iQCVAwUBNEPyL2bpC/EUvSeLAQE1+gP+JO2bzg71xhamDyFjhvvd98SqVo2F3Xf1
877YQsE7b4WW8WteiejcLa/TKk9SRzxsfRbfe1bmBWGqu/bBbMnys5oXFaq7ebZ9
nRO7U9HRwZHNqm7im3GunUp+IrFSFXvTkZiZtSUM1tLzx9RZrCimrymD2ZW3Crc7
P8VsgS8oOhE=
=sjar
-----END PGP SIGNATURE-----
Re: slrn scoring and newsgroup exceptions
Author: Sylvain Robitaille
Date: Tue, 14 Oct 1997 00:00
Date: Tue, 14 Oct 1997 00:00
68 lines
3127 bytes
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
----------------------------------------------------------------------
Re: slrn scoring and newsgroup exceptions
Author: Lloyd Zusman
Date: Thu, 16 Oct 1997 00:00
Date: Thu, 16 Oct 1997 00:00
35 lines
1938 bytes
1938 bytes
On 14 Oct 1997 10:04:15 GMT, Heikki Kantola <hezu@iki.fi> wrote:
> John R MacMillan <john@mail.interlog.com> informed
> news.software.readers with the following:
> >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?
>
> Yes, the negation char is '~', so [comp.lang.*, ~comp.lang.c.moderated]
> should yield the scope you wished.
I'm sorry, but I don't think that this is correct. I looked in score.c,
and it looks like the negation char ('~') is only significant after
the opening bracket in a newsgroup line. In this case, it negates
the sense of all the newsgroup matches. In other words ...
[~comp.lang.*, alt.lang.s-lang]
... this is correct, and it means that the following scoring
rules apply to all groups except those matching
comp.lang.* and except the group alt.lang.s-lang
[comp.lang.*, ~alt.lang.s-lang]
... this is not correct. It would only do something meaningful
if there happened to be a newsgroup named '~alt.lang.s-lang'
(with a leading '~' before 'alt'), and this is impossible.
> [ ... ]
--
Lloyd Zusman
ljz@asfast.com
Re: slrn scoring and newsgroup exceptions
Author: Stefan Scholl
Date: Thu, 16 Oct 1997 00:00
Date: Thu, 16 Oct 1997 00:00
13 lines
1120 bytes
1120 bytes
On 16 Oct 1997 00:44:04 GMT, J.B. Nicholson-Owens <jbn@pop-a-wheelie.midwest.net> wrote: > Stefan Scholl <stesch@parsec.inka.de> wrote: > > Yes. I use the following entry to kill all crossposts to > > de.talk.bizarre: > > Taking 200 points away from an article's score may not kill it for two > reasons: Don't answer by mail _and_ by followup!
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