🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #8912

How to use several NNTP servers (Re: A real dumb question)

#8912
From: Sami K|ykk{
Date: Fri, 06 May 1994 10:02
57 lines
3170 bytes
In article <sridhar.03May94.091858@homecheese.eas.asu.edu>, Sridhar Venkatarama wrote:
> There is an environmental variable named NNTPSERVER (in versions of rn
> that I used) which when set will allow you to read from another server.
> 
> setenv NNTPSERVER other.news.server
> 
> should do it. 

When I read the original question again I realized that this answer was
off the topic. However, I think that this information will come handy to
those who are thinking of reading news from several servers. This kind
of article would have saved me from rebuilding my .newsrc many years
ago. 

Therefore, I'm going to post it anyway. 

    *    *    *

Please note that different NNTP servers use different article numbering.
If you just change the NNTPSERVER variable and start the newsreader, you
will be in trouble. The newsreader will update the .newsrc file
according to a new numbering system. This means that in some newsgroups
you won't see new articles for many days (or months!) and in some other
newsgroups you will see articles you have already read. Also, the other
server could carry a different set of newsgroups which could make rn
mark some newsgroups as bogus. When you start using your regular server
again, the same problems are back. 

You should have a different .newsrc file for every NNTP server you are
going to use. When you start using a new server, you should first create
a subdirectory where you will keep the .newsrc file for that server:

    mkdir .other.dotdir

For reading news from the other server, you should use a script like
this: 

    #!/bin/csh
    setenv NNTPSERVER other.news.server
    setenv DOTDIR .other.dotdir
    rn 

The DOTDIR variable will tell the rn to use the .newsrc file in
the .other.dotdir subdirectory.

The .newsrc file in your home directory will be used when you are using
your regular NNTP server with rn.

The above script works with rn and trn (for trn, just change the rn to
trn). For other newsreaders you should check the manual page for
instructions how to define a different .newsrc file when using another
server. 

-- 
Sami K|ykk{				+----------------------------+	  
samik@kaktus.uta.fi			!       couch potato         !
http://www.uta.fi/~samik/samik.html	+----------------------------+
Technical Details
Message-ID: <L6NojK54O194058yn@uta.fi>
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!bga.com!news.sprintlink.net!hookup!usc!cs.utexas.edu!howland.reston.ans.net!EU.net!sunic!news.funet.fi!news.cc.tut.fi!uta.fi!news-path
References: <2q43hr$jj1@rs6a.wln.com> <sridhar.03May94.091858@homecheese.eas.asu.edu>

Show Full Headers
Complete Article Headers
Message-ID: <L6NojK54O194058yn@uta.fi>
Subject: How to use several NNTP servers (Re: A real dumb question)
Date: Fri, 06 May 1994 10:02:12 +0000
From: samik@uta.fi (Sami K|ykk{)
References: <2q43hr$jj1@rs6a.wln.com> <sridhar.03May94.091858@homecheese.eas.asu.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.readers.mbox.zip!bga.com!news.sprintlink.net!hookup!usc!cs.utexas.edu!howland.reston.ans.net!EU.net!sunic!news.funet.fi!news.cc.tut.fi!uta.fi!news-path
Newsgroups: news.software.readers
Organization: Nintendo Super Mario Brothers (tm) Advanced Technology Research Center
Lines: 57
Distribution: inet
Reply-To: samik@kaktus.uta.fi
NNTP-Posting-Host: leinikki.uta.fi