🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #51566

Re: slrn score question

#51566
From: 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.

Technical Details
Message-ID: <slrn7t1rmq.qlg.hezu@tuuri.ling.helsinki.fi>
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: <slrn7t10sd.o2d.learned@isis.visi.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn7t1rmq.qlg.hezu@tuuri.ling.helsinki.fi>
Subject: Re: slrn score question
Date: Sat, 04 Sep 1999 00:00:00 +0000
From: Heikki Kantola <hezu@iki.fi>
References: <slrn7t10sd.o2d.learned@isis.visi.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: 520955491
Content-Transfer-Encoding: 8bit
Mail-Copies-To: nobody
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: usenet@news.helsinki.fi
X-Trace: oravannahka.helsinki.fi 936439514 8223 128.214.78.4 (4 Sep 1999 10:05:14 GMT)
Organization: Department of General Wizardry, Unseen University, Ankh-Morpork
User-Agent: slrn/0.9.5.7 (UNIX)
Mime-Version: 1.0
NNTP-Posting-Date: 4 Sep 1999 10:05:14 GMT
Newsgroups: news.software.readers