Article View: news.software.readers
Article #5778trn all articles with subj
From: John Durso
Date: Fri, 10 Sep 1993 20:27
Date: Fri, 10 Sep 1993 20:27
69 lines
2843 bytes
2843 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? > >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, Thanks, However, will the above macro run on all newsgruops I've selected in my .newsrc, or just one newsgroup. What I want to do is save all articles with a certain word in the subject line of 1 Newsgroup. Otherwise, I'd like it to treat everything else like nothing happened. In other words, I want to be able to occasionally log on to trn, and read all my newsgroups in an interactive mode. However, if the above macro erases all the messages, in all the groups then I would not be able to read them. What I specifically want to do is be able to run a cron job or something at a specific time every few days and save the articles with a specific set of words in the subject line to a file, and then set those articles as read (so they won't get saved again). I'd like to keep everything else as unread, so that I'll have the chance to read them interactively in the future when I run trn. Thanks John -- John <durso@bronze.lcs.mit.edu>
Technical Details
Message-ID:
<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!yale.edu!yale!gumby!wupost!math.ohio-state.edu!cs.utexas.edu!uunet!olivea!grapevine.lcs.mit.edu!ai-lab!bronze.lcs.mit.edu!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <26qnv2$cph@bronze.lcs.mit.edu> Subject: trn all articles with subj Date: Fri, 10 Sep 1993 20:27:14 +0000 From: durso@bronze.lcs.mit.edu (John Durso) 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!yale.edu!yale!gumby!wupost!math.ohio-state.edu!cs.utexas.edu!uunet!olivea!grapevine.lcs.mit.edu!ai-lab!bronze.lcs.mit.edu!not-for-mail Newsgroups: news.software.readers Organization: MIT LCS guest machine Lines: 70 NNTP-Posting-Host: bronze.ai.mit.edu