🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #17995

Re: NewsXpress and kill files.

#17995
From: conrads
Date: Tue, 23 Jan 1996 00:00
49 lines
2114 bytes
Debra Walker (debraw@mcs.net) wrote:
[...] 
: Here are the entries that I made to the global kill file in NX:
: 
: /test/h:j
: /forte/h:j
: /agent/h:j
: /free agent/h:j
: /agent/h:j
: /os\/2/h:j
: 
: These expressions are designed to kill certain subject patterns.  At 
: least, they do in trn.  Should they be modified for use with NX?  If so, 
: how should they be modified?

The suggestion to refer to the trn docs is a little misleading.  Actually,
what you're looking for is a reference on "regular expressions", as 
implemented in several popular UNIX programs.

The above strings will definitely not do what you want them to in NX.

The good news is that NX killfile filters are actually easier!  All you
need in NX is the actual regular expression for the text you want to
filter on (in either the subject or from boxes).  For example, your filters
above could be reduced to simply:

test|forte|agent|free agent|os/2

This uses the "|" operator (logical OR) to place all the patterns in one RE.
Note also that the "\" escape character is not necessary before "/".

We could make it even more compact.  Note the redundancy above with "agent"
and "free agent".  This could be replaced by:

[free ]*agent

This indicates zero or more instances of "free " followed by "agent".

Substituting this into our original RE, we get this:

test|forte|[free ]*agent|os/2

For clarity, we could include parentheses if we wish:

test|forte|([free ]*agent)|os/2

See the ed(1) man page for more details on RE's.

Technical Details
Message-ID: <4e1eb1$3ib@uuneo.neosoft.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: <4dju0o$2ko_004@debraw.mcs.net>

Show Full Headers
Complete Article Headers
Message-ID: <4e1eb1$3ib@uuneo.neosoft.com>
Subject: Re: NewsXpress and kill files.
Date: Tue, 23 Jan 1996 00:00:00 +0000
From: conrads@neosoft.com (conrads)
References: <4dju0o$2ko_004@debraw.mcs.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: 136281259
Organization: NeoSoft Internet Services +1 713 968 5800
Newsgroups: news.software.readers