🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #55118

Re: slrn: scoring challenge

#55118
From: Heikki Kantola
Date: Sat, 11 Dec 1999 00:00
54 lines
2833 bytes
teasmoke <gn08251@news.giganews.com> informed
news.software.readers with the following:
>This almost works. The only problem with this is, it matches
>
>        References: <me!> <123@foo> <me!> <456@bar> <789@baz>
>
>just the same as
>
>        References: <000@qux> <123@foo> <me!> <456@bar> <789@baz>
>
>. As a result, extended discussions with me end up being scored the same as
>a thread where my post has long since been left in the dust. Which is *not*
>what I'm looking for.
>
>I need a pattern which will give me the equivelant of
>
>Score: -1000
>References: <me!> <NOTme!>
>
>. I've been dueling with my scorefile for a long time now, trying to come up
>with a recipe that will produce that effect, but to no avail.

The trick is to anchor the message-id list to end of line with '$',
otherwise it can still match lines with anything after the matching 
part of your regexp.

>Does anyone know of a slrn or regex trick that I could put to use here?

So, you should something this:

 Score:: =9000
        References: hezu@.*\.Helsinki.FI>$
 Score: 5000
	References: <[^>]+hezu@.*\.Helsinki\.FI>[ \t\n]+<[^>]+>$
 Score: 2500
	References: <[^>]+hezu@.*\.Helsinki\.FI>[ \t\n]+<[^>]+>[ \t\n]+\
	<[^>]+>$
 Score: 500
        References: <[^>]+hezu@.*\.Helsinki\.FI>[ \t\n]+<[^>]+>[ \t\n]+\
	<[^>]+>[ \t\n]+<[^>]+>$

It is still possible that the above rules match articles deeper in the
thread as some newsreaders wrap long References:-line into multiple
lines and Msg-id of your article can be near of end of line again and
I can't think of any easy way to determine which line is the last one
with Slrn's score mechanism.

-- 
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: <slrn854an2.jr7.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: <slrn85412c.7cf.gn08251@erudite.localdomain>

Show Full Headers
Complete Article Headers
Message-ID: <slrn854an2.jr7.hezu@tuuri.ling.helsinki.fi>
Subject: Re: slrn: scoring challenge
Date: Sat, 11 Dec 1999 00:00:00 +0000
From: Heikki Kantola <hezu@iki.fi>
References: <slrn85412c.7cf.gn08251@erudite.localdomain>
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: 559317813
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 944909026 1635 128.214.78.4 (11 Dec 1999 10:43:46 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: 11 Dec 1999 10:43:46 GMT
Newsgroups: news.software.readers