Article View: news.software.nn
Article #5166Re: Message: ".newsrc line too long" ???
From: David D Kilzer
Date: Sat, 11 Dec 1993 20:57
Date: Sat, 11 Dec 1993 20:57
62 lines
3469 bytes
3469 bytes
>Mike Ramey <mramey@u.washington.edu> wrote:
>>What's this message mean: ".newsrc line too long" ???
mathew@mantis.co.uk (Snakes of Medusa) writes:
>At a guess, it means that one of the lines of your .newsrc is too
>long. That's just a wild guess, though :-)
That's exactly the problem.
>The solution is to make sure you're up-to-date with reading news (i.e. no
>old articles which you want to leave unread), then edit your .newsrc
>using something which can handle long lines. Find the long lines --
>ones longer than (say) 80 characters -- and remove all the numbers
>except the last one.
>For instance, here's a line from my .newsrc:
>comp.org.eff.talk: 1-3904,3907,3917-3920,3936,3939,3942,3948,3960-3961,
> 3972-3973,3985,3988,3990,3997-3998,4000,4003,4020,4023,4027,4031,4033,
> 4052-4060,4066,4078,4094-4095,4102-4103
>(I've added carriage returns for clarity)
>I could safely replace it with
>comp.org.eff.talk: 4103
>because I've read or junked all the articles up to number 4103.
>The reason this happens is that sometimes if you don't read a newsgroup
>for a while, articles will appear and disappear before you get a chance
>to see 'em, and hence there will be gaps in the list of articles you've
>read. In the above example, I never saw articles 3905 or 3906, hence I
>ended up with 1-3904,3907... Thus the lines get longer and longer.
>It seems that nn eventually complains.
There are a couple of solutions. If ``nntidy'' is available on your
system, it performs the above function for you (and more!) so you don't
have to edit your .newsrc file by hand. See the man page (``man nntidy'')
for more information.
If nntidy isn't available on your system, you can clean up your .newsrc
using the following shell script. Note that it only removes bloated
lines as described above--it is NOT a replacement for nntidy:
------------------------------------------------------------------------
#/bin/csh
/bin/sed '/!/s/! \([0-9]*\)[-,].*[-,]/! \1-/' < ~/.newsrc > ! ~/.newsrc.new
------------------------------------------------------------------------
Use this with caution! Make a quick visual check of the .newsrc.new
file before replacing it with your current .newsrc file. If you want to
live dangerously, however, add this line to the end of the above script:
/bin/mv ~/.newsrc.new ~/.newsrc
Dave
--
David D. Kilzer \ ST:TNG _Relics_
Computer Engineer 3 / Capt. Montgomery Scott ("Scotty")
ddkilzer@iastate.edu \ "I may be a captain by rank, but I never
Iowa State University, Ames / wanted to be anything but an engineer."
Technical Details
Message-ID:
<ddkilzer.755643451@pv343f.vincent.iastate.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.nn.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!vixen.cso.uiuc.edu!newsrelay.iastate.edu!news.iastate.edu!pv343f.vincent.iastate.edu!ddkilzerReferences:
<2e7ol5$gol@news.u.washington.edu> <2e9ot0$9hg@news.mantis.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <ddkilzer.755643451@pv343f.vincent.iastate.edu> Subject: Re: Message: ".newsrc line too long" ??? Date: Sat, 11 Dec 1993 20:57:31 GMT From: ddkilzer@iastate.edu (David D Kilzer) References: <2e7ol5$gol@news.u.washington.edu> <2e9ot0$9hg@news.mantis.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!vixen.cso.uiuc.edu!newsrelay.iastate.edu!news.iastate.edu!pv343f.vincent.iastate.edu!ddkilzer Newsgroups: news.software.nn Sender: news@news.iastate.edu (USENET News System) Organization: Iowa State University, Ames IA Lines: 62