🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #57879

Re: slrn / score / specifying pattern

#57879
From: J.B. Nicholson-Owens
Date: Thu, 10 Feb 2000 00:00
28 lines
1826 bytes
Kludge wrote:
> I've read the old slrn doc's here (at the ISP ) and newer doc's 
> on the web, and I am uncertain that the score file uses (full) 
> Regular Expressions for the text of Subject:/From:, etc.

It doesn't.  S-Lang's regular expressions don't support some things but 
this won't be a problem for this case.

>   Subject: ^fa\s    % kill Subject lines that start: "fa XYZ-2000.....
>   Subject: ^fs\s    % kill Subject lines that start: "fs XYZ-2000.....

I don't know if you know this, but inline comments are not allowed in 
S-Lang regular expressions--if you have these lines in your scorefile, 
they won't match what you want them to.  Try:

   [rec.radio.amateur.*]
      Score: =-9999
         Subject: ^fa[ \t]+
         Subject: \<f\.[sa]\.:?\>
         Subject: \<f[sa]:

To kill the for sale and for auction stuff.  There are three regexes 
instead of two so you won't kill on "fa" or "fs" as a word.  I don't 
know if that's a concern or not, but better safe than sorry.

Off-topic: I'm just *trying* MT-NW, I'm not switching to it.

Technical Details
Message-ID: <jbn-278A18.21404410022000@news>
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: <slrn8a6ctb.89g.X@animas.frontier.net>

Show Full Headers
Complete Article Headers
Message-ID: <jbn-278A18.21404410022000@news>
Subject: Re: slrn / score / specifying pattern
Date: Thu, 10 Feb 2000 00:00:00 +0000
From: "J.B. Nicholson-Owens" <jbn@mystery-train.pdnt.com>
References: <slrn8a6ctb.89g.X@animas.frontier.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: 584395097
X-Complaints-To: abuse@pdnt.com
X-Trace: sol.pdnt.net 950240123 209.16.217.234 (Thu, 10 Feb 2000 21:35:23 CST)
User-Agent: MT-NewsWatcher/3.0 (PPC)
NNTP-Posting-Date: Thu, 10 Feb 2000 21:35:23 CST
Newsgroups: news.software.readers