🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #4241

Re: trn & newsrc file getting unreasonable

#4241
From: Paul Smee
Date: Tue, 25 May 1993 09:10
30 lines
2284 bytes
In article <C7JqHq.Mn7@chinet.chinet.com> dhartung@chinet.chinet.com (Dan Hartung) writes:
>Unfortunately, and I don't know if this is a direct result of the
>large feed we get or not, but I certainly experience it more often --
>when I try to do a "vi .newsrc" I get a "line too long" error when
>it reaches a group with a large volume of posts and a motley collection
>of post numbers.  

Unless you've got really wierd reading habits, the problem groups won't
be ones that you read, but rather groups which get lots of articles
crossposted to them from groups that you read.  Some few releases ago,
trn's 'chasing Xrefs' code changed so that it insists on putting lines
for such groups into your .newsrc as it does its xrefs chasing.

Given that, a solution with usually works is:

    grep : .newsrc > temp.newsrc
    mv temp.newsrc .newsrc

This basically cleans out all the lines in your .newsrc which refer to
groups you don't subscribe to.  Note you've GOT to use a temporary file,
as trying to grep from .newsrc straight into .newsrc will trash the file
completely.  (Standard Unix IO redirection hazard.)

Of course, trn will then slowly begin slipping the excess baggage back
into your .newsrc, so you've got to do this every month or so if you're
trying to minimize your .newsrc.  If you don't care, then just try this
before trying to edit the file.
-- 
Paul Smee, Computing Service, University of Bristol, Bristol BS8 1UD, UK
     P.Smee@bristol.ac.uk - Tel +44 272 303132 - FAX +44 272 291576
Technical Details
Message-ID: <C7Ks4w.J23@bristol.ac.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.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!wupost!uunet!pipex!warwick!bsmail!smee
References: <C7JqHq.Mn7@chinet.chinet.com>

Show Full Headers
Complete Article Headers
Message-ID: <C7Ks4w.J23@bristol.ac.uk>
Subject: Re: trn & newsrc file getting unreasonable
Date: Tue, 25 May 1993 09:10:07 GMT
From: smee@mail.bris.ac.uk (Paul Smee)
References: <C7JqHq.Mn7@chinet.chinet.com>
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!howland.reston.ans.net!wupost!uunet!pipex!warwick!bsmail!smee
Newsgroups: news.software.readers
Sender: news@bristol.ac.uk (Usenet news owner)
Nntp-Posting-Host: ncs.bris.ac.uk
Reply-To: P.Smee@bristol.ac.uk (Paul Smee)
Organization: University of Bristol
Lines: 30