🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #5787

Re: uqwk speed and summary files?

#5787
From: Mike Northam
Date: Tue, 03 May 1994 10:01
54 lines
3458 bytes
>>>>> 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
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.

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.
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
Technical Details
Message-ID: <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!bga.com!news.sprintlink.net!rtp.vnet.net!mary.iia.org!babbage.ece.uc.edu!meaddata!ddsw1!news.kei.com!ssd.intel.com!chnews!ornews.intel.com!ornews!mbn
References: <QM-mjuniK0vE062yn@CSCNS.COM> <Tp2njyr28DAD063yn@netcom.com>

Show Full Headers
Complete Article Headers
Message-ID: <MBN.94May3100130@greyskul.intel.com>
Subject: Re: uqwk speed and summary files?
Date: Tue, 03 May 1994 10:01:30 +0000
From: mbn@greyskul.intel.com (Mike Northam)
References: <QM-mjuniK0vE062yn@CSCNS.COM> <Tp2njyr28DAD063yn@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!bga.com!news.sprintlink.net!rtp.vnet.net!mary.iia.org!babbage.ece.uc.edu!meaddata!ddsw1!news.kei.com!ssd.intel.com!chnews!ornews.intel.com!ornews!mbn
Newsgroups: alt.usenet.offline-reader,news.software.nn,netcom.general,netcom.netnews
Organization: Shorter Software Solutions
Lines: 54
NNTP-Posting-Host: greyskul.intel.com
To: ftmexpat@netcom.com (Frank McNeil)
In-reply-to: ftmexpat@netcom.com's message of Tue, 3 May 1994 08:41:03 GMT