Article View: news.software.nn
Article #5795Re: uqwk speed and summary files?
From: Frank McNeil
Date: Wed, 04 May 1994 08:08
Date: Wed, 04 May 1994 08:08
104 lines
5562 bytes
5562 bytes
In article <MBN.94May3100130@greyskul.intel.com>, Mike Northam wrote:
>>>>>> In article <Tp2njyr28DAD063yn@netcom.com>, ftmexpat@netcom.com (Frank McNeil) writes:
>
>frank> This nn method isn't an answer that I'm satisfied with because
>
>frank> * I don't know how to get my temporarily used .newsrc file updated
>frank> so it doesn't read the previously read messages the next time a
>frank> 'nn -ms tax' is issued.
>frank> // I also tried nn -s tax.
>
>Below is a script that I use to update my .newsrc-home (which is the file
>I use for downloading via uqwk. I 'prekill' my news (you can use a script
>like trnkill or rnkill for this. I use emacs GNUS in batch mode, kicked
If I understand your suggestion, it is to kill every subject that
doesn't contain the word "tax" in it rather than type nn -s tax.
>off by a cron at 4 in the morning.) Then run the 'updatenewsrc' shell
>script to copy the relevant lines from .newsrc to .newsrc-home (you'll
>have to modify the script since your filenames will be different than mine).
>
>frank> * I don't know if it's possible to use nngrab on an updated .newsrc
>
>Just rename your .newsrc file.
I don't get it. I thought nngrab does a search for select words on
all newsgroups subject lines (e.g. 'nn -Xm tax'). I never thought it
looked at any file I can change. I've assumed it used the file named
"active" or something else that I don't have permission to change.
>frank> * I really think that there is be a better way using readnews and/or
>frank> some other unix programs. I assume that many of the UNIX power
>frank> users and/or perl programers use these other methods.
>
>This script uses sed and awk to copy lines from .newsrc to .newsrc-home.
>Put this in a file "updatenews" in your toolbox directory.
>Adjust the filenames for your situation.
The script you've written only seems necessary if the the news reader
MUST use all the news groups when processing information instead of a
small group called in .newsrc-home.
I like the cp command and don't understand what is to be gained by
extracting a specific set (e.g. .newsrc-home) of groups from .newsrc.
I have a file called .newsrc.all that contains all the groups. I
rarely use it, since I use many other much smaller files that contain
subsets of .newsrc.all. I do this by replacing .newsrc with the
smaller subset by doing 'cp .newsrc.tax .newsrc' before running nn or
tin. [I realize I may not understand something about your interesting
script. I'll run it as soon as I get the msdos GNU version of SED.]
>chmod +x updatenews
>Then just type 'updatenews' to run it--just takes a couple of seconds.
>
>-----snippety-snip----------
>#! /bin/sh
># updatenews - uses the newsgroup lines in one .newsrc (.newsrc-home)
># as a template, grabbing corresponding newsgroup lines
># from the main .newsrc and updating them in .newsrc-home
>#
># this could do a little more cleaning up after itself
>
># extract just the newsgroup name from the template .newsrc
>awk '{print "/^"$1"/ p"}' ~/.newsrc-home > /tmp/tmpnews
>
># using the template, copy only those newsgroup lines from the main
># .newsrc into .newsrc-home
>sed -nf /tmp/tmpnews ~/.newsrc > /tmp/.newsrc-home2
>
># make backups and rename
>mv ~/.newsrc-home ~/.newsrc-home.bak
>mv /tmp/.newsrc-home2 ~/.newsrc-home
>-----snippety-snip----------
>--
>Mike Northam, Shorter Software Solutions, on contract to Intel Corp.
>(h) (503) 324-1831 (o) (503) 696-2356 123 11' 40" W 45 37' 14" N
> Watch for temporary address change soon. Standard disclaimers apply
> mail now accepted at mbn@teleport.com, but mbn@greyskul.intel.com is OK
Hello
Thanks for responding to my plea for help. I haven't looked at
trnkill or rnkill. I don't use kill. I prefer to only read news with
certain words in the subject line or certain authors
(e.g. 'nn -mn LaCour' of U.S. Robotics). My problem is a simple one.
* After I run nn -s tax, or nn -ms tax
* Then read then mark as read the messages
* Then quit
I would expect my ~/.newsrc and/or ~/.nn/select files to be changed
so the subject lines of the messages won't be searched the next time
I run nn -s tax or nn -ms tax. However this isn't happening.
HELP!
I appreciate being able to read and use the script that explains part
of your method. Thank you.
Frank
---
Frank McNeil, Tax Code Junkie ftp.netcom.com:/pub/ftmexpat/*
ftmexpat@netcom.com //contains inpat and expat tax info/pgm
Technical Details
Message-ID:
<tdqnjyr289O3063yn@netcom.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-netcom.netnews.mbox.zip!gmd.de!nntp.gmd.de!dearn!blekul11!psuvm!news.cac.psu.edu!howland.reston.ans.net! math.ohio-state.edu!magnus.acs.ohio-state.edu!csn!csus.edu!netcom.com!ftmexpatReferences:
<QM-mjuniK0vE062yn@CSCNS.COM> <Tp2njyr28DAD063yn@netcom.com> <MBN.94May3100130@greyskul.intel.com>Show Full Headers
Complete Article Headers
Message-ID: <tdqnjyr289O3063yn@netcom.com> Subject: Re: uqwk speed and summary files? Date: Wed, 4 May 1994 08:08:39 GMT From: ftmexpat@netcom.com (Frank McNeil) References: <QM-mjuniK0vE062yn@CSCNS.COM> <Tp2njyr28DAD063yn@netcom.com> <MBN.94May3100130@greyskul.intel.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-netcom.netnews.mbox.zip!gmd.de!nntp.gmd.de!dearn!blekul11!psuvm!news.cac.psu.edu!howland.reston.ans.net! math.ohio-state.edu!magnus.acs.ohio-state.edu!csn!csus.edu!netcom.com!ftmexpat Newsgroups: alt.usenet.offline-reader,news.software.nn,netcom.general,netcom.netnews Sender: ftmexpat@netcom.com (Frank McNeil) Organization: NETCOM On-line Communication Services (408 241-9760 guest) Lines: 105