🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Nil Thu, 16 Feb 2012 23:56
Xnews: grouped scoring recipes?
#248862
Author: Nil
Date: Thu, 16 Feb 2012 23:56
9 lines
1277 bytes
Can Xnews's scoring system handle grouped clauses, like are shown in 
this page about SLRN's scoring?

http://www.slrn.org/docs/score.txt

(scroll all the way down to the bottom)

When I try to set up a rule like this, Xnews complains "Invalid test 
expression "{: at line 198}". 
Re: Xnews: grouped scoring recipes?
#248929
Author: Mike Dee
Date: Sun, 19 Feb 2012 12:56
31 lines
2203 bytes
Nil wrote:

> Can Xnews's scoring system handle grouped clauses, like are shown in 
> this page about SLRN's scoring?
> 
> http://www.slrn.org/docs/score.txt
> 
> (scroll all the way down to the bottom)
> 
> When I try to set up a rule like this, Xnews complains "Invalid test 
> expression "{: at line 198}". 
> 

No, it doesn't parse those curly braces.

For that particular example it has to use two entries:

Score: -9999
 ~Subject= .*[a-z]
 % does not contain one lowercase letter in subject :-)

Score: -9999
 Subject= ^[Rr][Ee]: [^a-z]*$
 % the article will be killed if the subject begins with "Re: "
 % and the rest of the line does not contain a lowercase
 % character.

OTOH, Xnews can do some scoring tricks slrn cannot.

-- 
dee
Re: Xnews: grouped scoring recipes?
#248938
Author: John Wunderlich
Date: Mon, 20 Feb 2012 18:40
28 lines
2114 bytes
Mike Dee <mikedee@emteedee.invalid> wrote in 
news:Xns9FFEF39007773mikedee@emteedee.invalid:

> For that particular example it has to use two entries:
> 
> Score: -9999
>  ~Subject= .*[a-z]
> % does not contain one lowercase letter in subject :-)
> 
> Score: -9999
>  Subject= ^[Rr][Ee]: [^a-z]*$
> % the article will be killed if the subject begins with "Re: "
> % and the rest of the line does not contain a lowercase % character.
> 
> OTOH, Xnews can do some scoring tricks slrn cannot.
> 

Well, you _can_ do it with a single entry.
By placing an extra colon after the "Score" entry (ie double colon), 
you change the sense of the statements after it from an "AND" to an 
"OR" condition so the equivalent single statement would be:

Score:: -9999
 ~Subject= .*[a-z]
 Subject= ^[Rr][Ee]: [^a-z]*$

(See line 77 of the scoring.txt file that accompanies Xnews)
--John
Re: Xnews: grouped scoring recipes?
#248948
Author: Mike Dee
Date: Wed, 22 Feb 2012 09:53
10 lines
1753 bytes
John Wunderlich wrote:

> Score:: -9999
>  ~Subject= .*[a-z]
>  Subject= ^[Rr][Ee]: [^a-z]*$

Makes more sense to use this (in Xnews)

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