🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #33983

Re: TRN: Killing posts whose subject lines are all UPPER CASE?

#33983
From: Mark Brader
Date: Wed, 04 Jun 1997 00:00
40 lines
2094 bytes
I wrote:

> > 	/^Subject: R*e*[^a-z]*$/c:=:j

Someone else suggested:

> /^R*e*[^a-z]*$/Hsubject:c:=:j
> is probably faster (take only the overview to scan).

In trn 3.6, this is wrong because:

(1) The entire Subject line is tested, even though the documentation refers
    to "the subject"; that's why ^Subject was used in the my version.
    The suggested version will never match anything.

(2) It should not be faster to use Hsubject, since it merely requests the same
    behavior as the default: scan only the subject line.  Rather, it should
    be (minimally) slower, since the option has to be parsed.

(3) If the c and Hsubject modifiers are used together, the correct syntax
    is cHsubject.  The H modifier and its operand must come at the end of
    the modifiers, and no modifiers are allowed after a : operator.

The person who made the suggestion is using trn 4.0, which I don't have
here, so some of these three facts may be out of date for him.  If so,
I would welcome hearing the specifics.

On the other hand, if the suggestion was posted without being tested...
well, please don't do that.

(Posted and emailed.)
-- 
Mark Brader, msb@sq.com, SoftQuad Inc., Toronto
        "I'm a little worried about the bug-eater," she said.  "We're embedded
        in bugs, have you noticed?"             -- Niven, "The Integral Trees"

My text in this article is in the public domain.

Technical Details
Message-ID: <1997Jun4.150934.26934@sq.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: <5mqbbo$51h@nntp02.primenet.com> <1997Jun2.205629.28166@sq.com> <199706041251.OAA28718@caerdonn.eurocontrol.fr>

Show Full Headers
Complete Article Headers
Message-ID: <1997Jun4.150934.26934@sq.com>
Subject: Re: TRN: Killing posts whose subject lines are all UPPER CASE?
Date: Wed, 04 Jun 1997 00:00:00 +0000
From: msb@sq.com (Mark Brader)
References: <5mqbbo$51h@nntp02.primenet.com> <1997Jun2.205629.28166@sq.com> <199706041251.OAA28718@caerdonn.eurocontrol.fr>
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: 246080226
Organization: SoftQuad Inc., Toronto, Canada
Newsgroups: news.software.readers