🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by conrads Tue, 23 Jan 1996 00:00
Re: NewsXpress and kill files.
#17995
Author: 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.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads