🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
4 messages
4 total messages Started by Mike Ramey Thu, 09 Dec 1993 17:52
Message: ".newsrc line too long" ???
#5171
Author: Mike Ramey
Date: Thu, 09 Dec 1993 17:52
8 lines
1036 bytes
What's this message mean:  ".newsrc line too long" ???

I pressed U to subscribe to 2 new 'novell' groups.
Just now I did 'cat .newsrc' and nothing looked outrageous to me.

I didn't find a list of messages in either the FAQ or the manual. ???

Thanks, -mr
Re: Message: ".newsrc line too long" ???
#5165
Author: Snakes of Medusa
Date: Fri, 10 Dec 1993 12:09
39 lines
2313 bytes
In article <2e7ol5$gol@news.u.washington.edu>,
Mike Ramey <mramey@u.washington.edu> wrote:
>What's this message mean:  ".newsrc line too long" ???

At a guess, it means that one of the lines of your .newsrc is too
long.  That's just a wild guess, though :-)

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.


mathew
-- 
/X-Attribution:/h:j -- just say no to SuperCite             GOD IS MY MODERATOR
                          Will betray country for food
Re: Message: ".newsrc line too long" ???
#5166
Author: David D Kilzer
Date: Sat, 11 Dec 1993 20:57
62 lines
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."
Re: Message: ".newsrc line too long" ???
#5173
Author: Amos Shapir
Date: Sun, 12 Dec 1993 13:02
35 lines
2087 bytes
mathew@mantis.co.uk (Snakes of Medusa) writes:

>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

Better make that 1-4103.  This can be done by the command:

sed 's/^\([^!]*![^,-]*\).*[,-]\(.*\)/\1-\2/' $HOME/.newsrc


>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.

A more probable reason is that most news readers mark cross-posted
articles as read in all newsgroups they are posted to, including
unsubscribed ones (in case you ever want to re-subscribe).  When a lot
of (but not all) articles in a group are cross-posted to another
unsubscribed group, that group's line in .newsrc will have a lot of
"holes" in it.  This might happen even if you make sure to read all
your subscribed groups every day.
--
	Amos Shapir		Net: amos@cs.huji.ac.il
Paper: The Hebrew Univ. of Jerusalem, Dept. of Comp. Science.
       Givat-Ram, Jerusalem 91904, Israel
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads