🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by John Durso Fri, 03 Sep 1993 22:19
trn all articles with subj
#5685
Author: John Durso
Date: Fri, 03 Sep 1993 22:19
13 lines
1082 bytes
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?

For example, go to news.software.readers and save all articles with
the word "trn" in the subject line since your last read to the file
in your main directory trn.stuff

Thanks

John
-- 
John <durso@bronze.lcs.mit.edu>
Re: trn all articles with subj
#5770
Author: 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
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