Article View: news.software.readers
Article #11790Re: trn question - kill file/reg exp/macro
From: Wayne Davison
Date: Sat, 08 Oct 1994 09:29
Date: Sat, 08 Oct 1994 09:29
27 lines
1806 bytes
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
Technical Details
Message-ID:
<CxCL0u.MDJ@borland.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!cs.utexas.edu!convex!news.duke.edu!eff!news.kei.com!yeshua.marcam.com!charnel.ecst.csuchico.edu!csusac!csus.edu!borland.com!davisonReferences:
<370kqe$48t@elna.ethz.ch>Show Full Headers
Complete Article Headers
Message-ID: <CxCL0u.MDJ@borland.com> Subject: Re: trn question - kill file/reg exp/macro Date: Sat, 8 Oct 1994 09:29:17 GMT From: davison@borland.com (Wayne Davison) References: <370kqe$48t@elna.ethz.ch> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!cs.utexas.edu!convex!news.duke.edu!eff!news.kei.com!yeshua.marcam.com!charnel.ecst.csuchico.edu!csusac!csus.edu!borland.com!davison Newsgroups: news.software.readers Organization: Borland International Lines: 27