Article View: news.software.readers
Article #5781Re: trn all articles with subj
From: Wayne Davison
Date: Fri, 10 Sep 1993 22:11
Date: Fri, 10 Sep 1993 22:11
53 lines
2634 bytes
2634 bytes
According to John Durso <durso@bronze.lcs.mit.edu>: > Thanks, However, will the above macro run on all newsgruops > I've selected in my .newsrc, or just one newsgroup. The previously mentioned macro enters all groups and immediately quits, which only serves to run whatever kill file you have enabled for that group. If you want to limit this you could change the command in the script to run on only one group, i.e.: echo "z" | trn news.software.readers >/dev/null 2>&1 This isn't actually required since having your individual commands in each group's kill file limits their scope. This way you could even have search commands that search the entire article in various kill files and have the work done without you having to sit through it. > However, if the above macro erases all the messages, in all the groups > then I would not be able to read them. It shouldn't erase any messages unless you have kill commands in your kill files. I did just notice that in certain circumstances the newline generated by the echo "z" can cause problems (like if there is a new "newsnews" file the macro gets mixed up) so I would recommend using the following script instead of the one previously posted: #!/bin/sh # trnkill - shell script to apply trn KILL files in the background # 14 Mar 89 created for rn 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 echo "^m ^(z^)" >> $TRNMACRO echo "^j ^(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:
<CD5sBt.9DC@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!concert!decwrl!borland.com!davisonReferences:
<26qnv2$cph@bronze.lcs.mit.edu>Show Full Headers
Complete Article Headers
Message-ID: <CD5sBt.9DC@borland.com> Subject: Re: trn all articles with subj Date: Fri, 10 Sep 1993 22:11:52 GMT From: davison@borland.com (Wayne Davison) References: <26qnv2$cph@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!concert!decwrl!borland.com!davison Newsgroups: news.software.readers Organization: Borland International Lines: 53