🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Andrew Torda Thu, 06 Oct 1994 10:50
trn question - kill file/reg exp/macro
#11746
Author: Andrew Torda
Date: Thu, 06 Oct 1994 10:50
18 lines
1450 bytes
I want to kill all articles containing the string 'XYZ' in the
title, but not follow-ups.
That is, I do not want to see the first post about XYZ, but I
do want to see successive articles on the topic.

Logically speaking, I want something like
   (/XYZ/ && !followup)j

I can not see how to get my logical desires into kill file
format.

Many thanks for helping a trn macro-gumby like me.
-Andrew
-- 
This posting is not merely my opinion.  It is the official position
of my employer, the Swiss Federal Institute of Technology.
       Andrew Torda,  Computational Chemistry,  ETH,  Zurich,
torda@igc.chem.ethz.ch      http://igc.chem.ethz.ch/torda/torda.html
Re: trn question - kill file/reg exp/macro
#11787
Author: Myrddhin Emrys
Date: Fri, 07 Oct 1994 16:31
14 lines
998 bytes
In article <370kqe$48t@elna.ethz.ch>,
Andrew Torda <torda@igc.chem.ethz.ch> wrote:
>Logically speaking, I want something like
>   (/XYZ/ && !followup)j
>

/XYZ/j
/^Re:.*XYZ/m

-- 
Mitch Gorman
msghouse!emrys@twwells.com

IHNJH, IJLS "Annual Punkin Hunt"
Re: trn question - kill file/reg exp/macro
#11790
Author: Wayne Davison
Date: Sat, 08 Oct 1994 09:29
27 lines
1806 bytes
According to Andrew Torda <torda@igc.chem.ethz.ch>:
> I want to kill all articles containing the string 'XYZ' in the
> title, but not follow-ups.

Trn doesn't support "kill if this AND that" very well (just OR).
Mitch's suggesting to use /^Re:.*XYZ/m after /XYZ/j has a couple
problems.  First, the subject line starts with "Subject: ", so
this will never match "^Re:" (a simple mistake).  More profoundly,
using 'm' marks all old XYZ followups as unread, even if you've
already seen them.

You can get around this in some fashion by using 'M' in creative
ways.  One solution is to mark all the follow-ups as read-but-
returning and then junk the ones that remain.  The problem with
this is that you have to yank them back manually, since the kill
file won't do this for you.  E.g.:

/^Subject: *Re:.*XYZ/M
/XYZ/j

Followed by you pressing 'Y' manually to get the XYZ followups
back.  Alternately, you could put the three steps into a macro;
while it would still take a keystroke to execute it, you would
get to use it selectively.
-- 
Wayne Davison
davison@borland.com
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