🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #8790

Re: trn: how to use NEWSRC variable?

#8790
From: Wayne Davison
Date: Thu, 28 Apr 1994 19:40
40 lines
2473 bytes
According to Duane Fowler <duanef@Newbridge.COM>:
> I get news from two servers.  Since I don't want to read the groups they
> have in common twice, I'm assuming I need two newsrc files as well (true?).

True, but for more reasons than just the duplication of names -- .newsrc
files are specific to one server because the numbers in the file are
specific to one server.

> To this end I do something like:
> 
> % setenv NNTPSERVER host2; setenv NEWSRC .newsrc2

No, don't use NEWSRC.  I'm tempted to remove this critter because it
often causes more problems than it solves.  People often try to redirect
it to a different drive than their home directory, and without also
affecting the newsrc-backup filename, the way trn tries to link or
rename the files doesn't work.

What you should do is to create a subdirectory for any alternate news
servers you have and set DOTDIR to the appropriate directory:

setenv NNTPSERVER host2; setenv DOTDIR ~/host2

Then put host2's .newsrc file into this directory.  The side benefit of this
is that you can be running multiple trn's to all the different hosts at
the same time.

> But when I ran trn it seemed to have the idea that I'd never read news before
> and asked me if I want to subscribe to all the groups in my newsrc!

If your version of trn isn't configured to use the NEWGROUPS nntp call,
then it uses the old method of asking you to add any groups that aren't
listed in your .newsrc as either subscribed or unsubscribed groups.
News servers should have hooked up NEWGROUPS to their active.times
files long ago (but many haven't), so if this works on your server
Configure it to use NEWGROUPS.  If it doesn't work, you may wish to
use the -q option to not have trn look for new groups.
-- 
Wayne Davison
davison@borland.com
Technical Details
Message-ID: <CozIMs.40A@borland.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!nntp.gmd.de!xlink.net!howland.reston.ans.net!agate!darkstar.UCSC.EDU!news.hal.COM!decwrl!borland.com!davison
References: <1994Apr28.182722.15292@nbkanata.Newbridge.COM>

Show Full Headers
Complete Article Headers
Message-ID: <CozIMs.40A@borland.com>
Subject: Re: trn: how to use NEWSRC variable?
Date: Thu, 28 Apr 1994 19:40:03 GMT
From: davison@borland.com (Wayne Davison)
References: <1994Apr28.182722.15292@nbkanata.Newbridge.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!nntp.gmd.de!xlink.net!howland.reston.ans.net!agate!darkstar.UCSC.EDU!news.hal.COM!decwrl!borland.com!davison
Newsgroups: news.software.readers
Organization: Borland International
Lines: 40