🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #5770

Re: trn all articles with subj

#5770
From: Wayne Davison
Date: Fri, 10 Sep 1993 17:37
39 lines
1984 bytes
According to John Durso <durso@bronze.lcs.mit.edu>:
> Is there a way to get TRN (v2.5) to go to a specific usenet conference
> and get all articles with a specified word in the subj line and
> save them (appending) to a file?

You could put the following line into the kill file for each group you wish
to save stuff (or in the global kill file):

/trn/:s~/trn.stuff

However, this requires that you run trn and enter the group to get it to
work.  If you want this to happen automatically you can use the following
script that tells trn to enter each group in your .newsrc, which in turn
runs each group's kill file:

#!/bin/sh
# trnkill - shell script to apply trn KILL files in the background
# 14 Mar 89  created by Jim Olsen <olsen@XN.LL.MIT.EDU>
# 10 Sep 93  modified for trn 3 (or 2) by Wayne Davison <davison@borland.com>
# Options: -d	debug mode -- you see all gory action as it happens.

# Visit all newsgroups (if trn asks about anything else, just say no)
export TRNINIT TRNMACRO RNMACRO
TRNINIT='-q -s -T -t -x +X'
TRNMACRO=/tmp/trnkill$$
# support for trn 2.x
RNMACRO=$TRNMACRO
trap 'rm -f $TRNMACRO; exit' 1 2 3 15
echo "z %(%m=[nf]?.q^M:n)^(z^)" > $TRNMACRO
if test X$1 = X-d; then
	echo "z" | trn
else
	echo "z" | trn >/dev/null 2>&1
fi
rm -f $TRNMACRO
exit 0
-- 
Wayne Davison
davison@borland.com
Technical Details
Message-ID: <CD5FLs.1ss@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!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!gatech!swrinde!elroy.jpl.nasa.gov!decwrl!borland.com!davison
References: <268fso$j3o@bronze.lcs.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <CD5FLs.1ss@borland.com>
Subject: Re: trn all articles with subj
Date: Fri, 10 Sep 1993 17:37:04 GMT
From: davison@borland.com (Wayne Davison)
References: <268fso$j3o@bronze.lcs.mit.edu>
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!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!gatech!swrinde!elroy.jpl.nasa.gov!decwrl!borland.com!davison
Newsgroups: news.software.readers
Organization: Borland International
Lines: 39