🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #36499

Re: [slrn] Variables in scorefile?

#36499
From: Sylvain Robitaille
Date: Mon, 06 Oct 1997 00:00
44 lines
2440 bytes
On 6 Oct 1997 03:18:52 GMT, J.B. Nicholson-Owens
<jbn@pop-a-wheelie.midwest.net> wrote:

> I'm curious what others think of this idea:  Allowing variables in score
> files.  The big problem I forsee is distinguishing them from literal text.

If an approach similar to that in shell scripts is taken, with variables
being used with the '$' character to identify them as such, I'm sure it
could work.

> I'd like the ability to define variables (like 'local-newsgroups' which
> contains a comma-separated list of wildmats that match local newsgroups)
> for use in my scorefile.  I want it primarily because I'm getting lazier
> and I don't want to have to type (or maintain) the same list of groups
> repeatedly.

I'm not sure I really understand what you're trying to do. Why don't you
have a section in your scorefile for local groups, with the comma separated
wildmat list in the [newsgroups] identifier?

For example, in my scorefile, there is a section [concordia.*]. There's no
reason why I can't have it be [concordia.*,news.software.readers,comp.os.*],
and so on.

> In order to get certain scores I want, I have to do that now.  I could
> score in a hook, but I'd prefer to keep all my scoring in one place.
> Most of my scores don't require anything more elaborate than what the
> slrn score syntax provides and I like to use the automated score entry
> facility slrn provides.

Is it a safe bet that this is where the problem occurs, (using the auto-
mated score entry)?

-- 
----------------------------------------------------------------------
Sylvain Robitaille
sp_robi@alcor.concordia.ca          http://alcor.concordia.ca/~sp_robi

Do not believe in miracles -- rely on them.
----------------------------------------------------------------------


Technical Details
Message-ID: <slrn63gr84.13h.sp_robi@Elvira.home>
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: <slrn63gm05.ad.jbn@pop-a-wheelie.midwest.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn63gr84.13h.sp_robi@Elvira.home>
Subject: Re: [slrn] Variables in scorefile?
Date: Mon, 06 Oct 1997 00:00:00 +0000
From: sp_robi@alcor.concordia.ca (Sylvain Robitaille)
References: <slrn63gm05.ad.jbn@pop-a-wheelie.midwest.net>
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: 278132916
Organization: Concordia University, Montreal, Quebec, Canada
NNTP-Posting-User: syl
Newsgroups: news.software.readers