🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #55133

Re: slrn: scoring challenge

#55133
From: teasmoke
Date: Sat, 11 Dec 1999 00:00
86 lines
3966 bytes
Still, questions about Heikki Kantola's hands, which might one day hold *my*
Myst book, are unsettling to me:

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

< nods > I'd been using [^<>]* for that, for some reason. I think I'd
the notion that $ wouldn't work reliably with newsreaders which stuck
unaccountable amounts of whitespace between message-ids in the references
header.



> >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]+<[^>]+>$

Wow.

Thank you. Very much.

I must admit, I don't understand how that works, (how <[^>]+> avoids
matching <.*gn08251@erudite.localdomain>) but it does. I plugged that into
my scorefile (changing it for gn08251@erudite.localdomain, of course), and
grabbed the last 2000 articles from /var/spool/news , and they were scored
correctly. Excellent.


The only problem with it, actually, is that I have to set the scores with
an = to avoid scores in the 10000s for references headers containing my ids
more than once. Which is okay, but it wipes out the scoring I have set up for
line count and significance of poster. Is there a Score: operator to skip the
*remaining* tests?



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

< nods > I'm not sure that's a serious consideration; even if it is, that's a
better bug than the multiple-my-ids bug I'd been working with. Thank you.



Served with a smile,
-- 
Kerne

Technical Details
Message-ID: <slrn855n8b.1uh.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
References: <slrn85412c.7cf.gn08251@erudite.localdomain> <slrn854an2.jr7.hezu@tuuri.ling.helsinki.fi>

Show Full Headers
Complete Article Headers
Message-ID: <slrn855n8b.1uh.gn08251@erudite.localdomain>
Subject: Re: slrn: scoring challenge
Date: Sat, 11 Dec 1999 00:00:00 +0000
From: gn08251@news.giganews.com (teasmoke)
References: <slrn85412c.7cf.gn08251@erudite.localdomain> <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
X-Deja-AN: 559521987
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
X-Complaints-To: abuse@GigaNews.Com
X-Trace: sv2-iSjO3KtPe70zZc4hR3uEY3NcgnxorNBrAjIzVOawzh7ThTLrF31xILnRKqIR9XygFCZnhxcIZkD+qH3!QLU0QhtI1Q==
Organization: Giganews.Com - Premium News Outsourcing
User-Agent: slrn/0.9.5.7 (UNIX)
Reply-To: kmfahey@toast.net
NNTP-Posting-Date: Sat, 11 Dec 1999 17:23:57 CST
Newsgroups: news.software.readers