🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by G. Edw. Learned Sat, 04 Sep 1999 00:00
slrn score question
#51581
Author: G. Edw. Learned
Date: Sat, 04 Sep 1999 00:00
20 lines
1213 bytes
I need help understanding score files for slrn.
Let's say that I want to score any occurance
of the word 'gravity' (no offense intended
to gravity users), including 'gravity', 
'Gravity', 'GrAvItyv.1' and so on, no
matter where they occur in the subject.
  
  How do I do that? I seem to be having
  problems with case. I can score 'gravity'
  but not 'Gravity'.

For the example, I've tried:

	Subject: gravity
	Subject: *gravity*
	Subject: \Cgravity

As you can see, I'm totally lost.

Re: slrn score question
#51528
Author: jwk
Date: Sat, 04 Sep 1999 00:00
36 lines
1841 bytes
On Sat, 04 Sep 1999 02:27:26 GMT, G. Edw. Learned <learned@isis.visi.com> wrote:
>I need help understanding score files for slrn.
>Let's say that I want to score any occurance
>of the word 'gravity' (no offense intended
>to gravity users), including 'gravity', 
>'Gravity', 'GrAvItyv.1' and so on, no
>matter where they occur in the subject.
>  
>  How do I do that? I seem to be having
>  problems with case. I can score 'gravity'
>  but not 'Gravity'.
>
>For the example, I've tried:
>
>	Subject: gravity
>	Subject: *gravity*
>	Subject: \Cgravity
>
>As you can see, I'm totally lost.

perhaps something like *[gG][rR][aA][vV][iI][tT][yY]* ?

it would catch all permutations of lower- and uppercase letters.

fyi, [aA] means allow either a or A, whilst [a-z] means allow anything
from a up to and including z

Good luck,
Jurriaan

-- 
A poignant plea, sir, enough to melt the stoniest of hearts, but the
answer, I'm afraid, must remain, 'You're going to die, fat pig'.
        Edmund to George : Duel and Duality

Re: slrn score question
#51566
Author: Heikki Kantola
Date: Sat, 04 Sep 1999 00:00
44 lines
2550 bytes
G. Edw. Learned <learned@isis.visi.com> informed
news.software.readers with the following:
>I need help understanding score files for slrn.
>Let's say that I want to score any occurance
>of the word 'gravity' (no offense intended
>to gravity users), including 'gravity', 
>'Gravity', 'GrAvItyv.1' and so on, no
>matter where they occur in the subject.
>
>  How do I do that? I seem to be having
>  problems with case. I can score 'gravity'
>  but not 'Gravity'.

Odd, by default Slrn score entry regexps should be case insensitive,
are you sure that your problem isn't some other part of rule? Eg. that
you list multiple lines under one "Score: 1234"-line, which would mean
that article gets that score only if all the lines match... To get the
score for any matches, one should write "Score:: 1234" instead.

>For the example, I've tried:
>
>	Subject: gravity

Sounds ok to me, should match any occurence of string "gravity".

>	Subject: *gravity*

This isn't quite right, it would say that 0-n spaces (or does that 
initial space between header name and regexp count at all?), string
"gravit" and then y 0-n times. If you need match anything expression,
which isn't needed in these rules, you should use ".*".

>	Subject: \Cgravity

And this one would be about the same as the first one, except that
there's needless (as case insensitivity is default) "\C" in front.

-- 
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 score question
#51571
Author: Dawn Owens-Nicholson
Date: Sat, 04 Sep 1999 00:00
20 lines
1144 bytes
G. Edw. Learned wrote:
> Let's say that I want to score any occurance of the word 'gravity' [...]
> including 'gravity', 'Gravity', 'GrAvItyv.1' and so on, no matter where they
> occur in the subject.

    Subject: gravity

will work (score regular expressions are case insensitive unless you say
otherwise).  This is equivalent (and faster) than:

    Subject: .*gravity.*

however

    Subject: \<gravity\>

would match "gravity" (still any case) only as a word, which is probably
what you want.

Re: slrn score question
#51616
Author: G. Edw. Learned
Date: Sun, 05 Sep 1999 00:00
27 lines
1491 bytes
hezu@iki.fi (Heikki Kantola) wrote in 
<slrn7t1rmq.qlg.hezu@tuuri.ling.helsinki.fi>:

>Odd, by default Slrn score entry regexps should be case insensitive,
>are you sure that your problem isn't some other part of rule? Eg. that
>you list multiple lines under one "Score: 1234"-line, which would mean
>that article gets that score only if all the lines match... To get the
>score for any matches, one should write "Score:: 1234" instead.
>
>>For the example, I've tried:
>>
>>     Subject: gravity
>
>Sounds ok to me, should match any occurence of string "gravity".

No, my entire filter is:

    	Score: -100
    	Subject: gravity

and it still lets Gravity thru.  Argh!!!!

-- 
G. Edw. Learned
learned@yuck.net

Re: slrn score question
#51617
Author: Albert Koellner
Date: Sun, 05 Sep 1999 00:00
19 lines
1096 bytes
G. Edw. Learned <gl68@bigfoot.com> wrote:
[...]
> No, my entire filter is:
> 
>     	Score: -100
>     	Subject: gravity
> 
> and it still lets Gravity thru.  Argh!!!!

Don't forget to define the newsgroup:

[news.software.readers]
Score: -100
       Subject: gravity

And of course you will still see the postings as long as their score
doesn't match or exceed the kill_score (as defined in .slrnrc).

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