🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #2757

Re: Help with trn/nntp/inews using slip

#2757
From: Wayne Davison
Date: Mon, 25 Jul 1994 19:38
64 lines
4133 bytes
According to Sean Starkey <starkey@netcom.com>:
> When trn starts up, it downloads the entire active file
> (which is about 300k) into the /tmp directory.  This takes 2-3 minutes over 
> my slip connection.  Why does trn have to download the entire active file?  

Because trn was written before slip became popular.  Using the active file
in this way on a fast net connection is MUCH faster than issuing a bunch of
GROUP commands (the GROUP command is VERY slow).  Also, there is no other
command that returns the moderated/noposting/redirected/etc. information
associated with each group.

A modified implementation of trn could be made to request the active file
once, save it in the user's directory, and then append all new groups as
they arrive.  This would require using the NEWGROUPS command AND having an
NNTP server that responds to the NEWGROUPS request with the active file
format data.  The reference nntp does not return the data in the proper
format, though I have fixed this for nntp-t6 -- a work in progress.

> Is there a way to make trn grab only what I need from the active file 
> instead of the thousands of newsgroups I will never read?

Yes, but this requires an extension to the NNTP protocol that I have been
advocating:  the ability to quickly list the active file info for an
individual group:

	LIST ACTIVE group.name

I have gotten Rich Salz to agree to include such an extension in INN 1.5
(and gave him a quick-fix patch for INN 1.4) and have made the needed
modifications for nntp-t6 and tested them using a modified trn.  I like
this approach much better than keeping a per-user version of the active
file or having to implement a multi-user shared-writable active file on
the system.

> This symptom is three times as bad when I want to post an article using 
> Pnews.  The active file is downloaded twice (300kx2)

Pnews only grabs one copy of the active file, and only if it wasn't called
from inside trn (in which case it uses trn's copy).  I'd suggest you always
post using 'f' from inside a newsgroup (or ".f" from the newsgroup prompt)
while running trn.

> and a file with the descriptions of all the newsgroups (which I don't
> care about) is downloaded.

There is already an easy fix for this that I expected news admins to take
advantage of, but forgot to mention in the INSTALL doc.  Since it is not
as vital that the description file be accurate, I would suggest that one
copy of the file be placed on your system and Pnews be modified to point
the newsgroups variable at this file.  Pnews already uses the environment
variables NEWSGROUPS and NEWSACTIVE to locate pre-existing copies of these
files, if you desire to use an unmodified Pnews script.  Also, if you get
a new version of the description file every week or so, that should be
plenty (if you need to update it at all).  You can even set NEWSGROUPS
and NEWSACTIVE to /dev/null to disable the extra checking it does to
validate your message.

The next version of trn will have support for slow net connections via
the aforementioned NNTP extension and the existing INN command to request
single group descriptions.  If anyone would like to try this out, drop
me a line.
-- 
Wayne Davison
davison@borland.com
Technical Details
Message-ID: <CtIH7M.GBs@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!nntp.gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-ulm.de!zib-berlin.de!news.th-darmstadt.de!terra.wiwi.uni-frankfurt.de!zeus.rbi.informatik.uni-frankfurt.de!news.dfn.de!Germany.EU.net!EU.net!howland.reston.ans.net!gatech!news-feed-1.peachnet.edu!concert!decwrl!borland.com!davison
References: <starkeyCt97BH.K7J@netcom.com>

Show Full Headers
Complete Article Headers
Message-ID: <CtIH7M.GBs@borland.com>
Subject: Re: Help with trn/nntp/inews using slip
Date: Mon, 25 Jul 1994 19:38:10 GMT
From: davison@borland.com (Wayne Davison)
References: <starkeyCt97BH.K7J@netcom.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!nntp.gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-ulm.de!zib-berlin.de!news.th-darmstadt.de!terra.wiwi.uni-frankfurt.de!zeus.rbi.informatik.uni-frankfurt.de!news.dfn.de!Germany.EU.net!EU.net!howland.reston.ans.net!gatech!news-feed-1.peachnet.edu!concert!decwrl!borland.com!davison
Newsgroups: news.software.readers,news.software.nntp
Organization: Borland International
Lines: 64