🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #23599

Re: slrn & regexp's ?

#23599
From: J.B. Nicholson-Owens
Date: Mon, 01 Jul 1996 00:00
60 lines
2587 bytes
On 1 Jul 1996 07:15:15 GMT, Mike Mckinney <mike@bga.com> wrote:
> 	Does the slrn score file understand regular expressions for
> 	killing posts at all?

Yes.

> 	I tried the following, with no success at all:
> 
> 	Score: -9999
> 	  Subject:^.*2940.*

Try:

[<newsgroup(s) go here>]
Score: -9999
  Subject: 2940

> 	And several variations on that, with no success at all..

Probably because you didn't specify where to apply the score (you need to
specify one or more newsgroups).  For instance, to kill all articles in all
newsgroups where the string ``2940'' appears anywhere in the subject:

[*]
Score: -9999
  Subject: 2940

The [...] uses a modified regexp to handle wildmat expressions (and comma
separated lists as of slrn v0.8.8.3).  The ``.*'' surrounding the Subject:
regexp are implied if unstated (and if there aren't more exacting
expressions like ``^2940$'').  However, there is no need to specify ``^''
because you aren't referencing anything particular about the beginning of
the line.

> 	I have read both score.txt & KILL_FAQ, but am still unclear
> 	on what is allowed/accepted in the slrn Score file.

See the score.txt file where it describes and gives an example of the
scorefile format, specifically:

   The file is divided into sections delimited by a newsgroup enclosed in
   square brackets.

Or see subject 2 in the slrn KILL_FAQ file (``What is the format of an slrn
score file?'') for an overview of the format of the score file and more
examples, specifically the part that says

   Each section must start with a line that contains the name of the
   newsgroup, enclosed in square brackets, for which the scores defined by
   that section apply.

and subject 3 (``How do I assign a score to a specific subject, e.g., `test'
messages?'') for a reference to handling a single subject such as you want
to do with ``2940''.
-- 
Due to local news server and feed problems, I might not see all followups.


Technical Details
Message-ID: <slrn4tg67l.43g.jbn@mystery-train.cu-online.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
References: <slrn4teup1.604.mike@apm1-75.realtime.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn4tg67l.43g.jbn@mystery-train.cu-online.com>
Subject: Re: slrn & regexp's ?
Date: Mon, 01 Jul 1996 00:00:00 +0000
From: jbn@mystery-train.cu-online.com (J.B. Nicholson-Owens)
References: <slrn4teup1.604.mike@apm1-75.realtime.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: 163134369
Organization: Organizing Organisms & Organs
Newsgroups: news.software.readers