🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #46271

Re: INN 2.3.0 public beta

#46271
From: Curt Welch
Date: Wed, 03 May 2000 00:00
109 lines
6419 bytes
bill@scconsult.com (Bill Cole) wrote:
> In article <957242886.971518@news.netscum.dk>, Jeremy <bofh@netscum.dk>
> wrote:

> If I understand it correctly (I drifted off that thread...) HEADERS would
> be nice but not really much better than XOVER plus full XHDR
> implementation.

There are multiple advantages to the HEADERS command. First, it saves
bandwidth for any application that doesn't need all the standard XOVER
fields.  Any newsreader that currently uses XOVER but at times doesn't
need all the XOVER headers, could easily be modified to try HEADERS
first, and if that fails, fall back to XOVER.  Xref: and References: are
two large fields that for some applications could be ignored.

Second, any application that needed only one or two headers that
currently uses multile XHDR calls could be converted to try HEADERS
first.  Getting all the headers you want on one pass instead of two
or more makes life easier for the newsreader because it doesn't have
to deal with the problems associated with articles being expired or
canceled between calls to XHDR.

For example, with XHDR, if you do a

  XHDR Date 1-

It gives you all Date headers from all the articles in the group. Then
if you follow that with a

  XHDR Subject 1-

To get all the subjects, you may find that a new article showed up
between the two calls.  Then you have to either issue a third XHDR to
get the Date: for that article, or just ignore the fact the new article
which showed up.  Most likely, instead of dealing with all that
complexity, you will just do a GROUP first, and only ask for headers
which are in the range specified by the GROUP command.  But that way
you don't get to see those new articles until much later.

With HEADERS, you get one consistant view of the articles and can use

 HEADERS 1- Date Subject

TO get all the headers on one pass.  And if new articles show up while
the download is in progress, the newsreader will get them now instead
of having to check later.

It's just much simpler for the newsreader if it can get all the headers
it needs with one command.

The third advantage is that over time, newsreaders will be rewritten to
allow the user to select what gets downloaded.  For slow connections, the
user can decide not to download References or Xref at the cost of not
having articles threaded or having cross posted articles marked read
for kill files etc.  If you want to have extra headers for the purpose
of filtering or display, you will be able to add any header you want.

HEADERS is also much cleaner (from the client perspective) than
LIST OVERRVIEW.FMT plus XOVER, plus XHDR.  Any client that wants extra
headers today (or just wants to work "correctly" for any OVERVIEW.FMT),
needs to have a lot of complex code to figure out what headers shows
up with XOVER, and which ones need to be fetched with other commands
like XHDR.  Most newsreaders just don't have that complex code and
just assume XOVER has what it wants (or if for example Xref: isn't there,
it just doesn't bother with the extra fetch and the marking of cross
posted articles just doesn't work).

With HEADERS, that complex code gets moved to the news server (where I
think it belongs).  A news server which supports HEADERS could either
create an OVERVIEW DB that stores all headers, or be set up to allow
the admin to specify what is stored in the OVERVIEW DB and than have
the "smarts" required to use the OVERVIEW data or just use raw header
data as requried depending on what headers the user was requesting.

> And of course there is an implementation issue: readers
> in common use are unlikely to have support for years after the first
> widespread server support.

That's true but I don't see it as an issue.  Any new feature takes a long
time to be widely adapted.  It's easy for a client to try the HEADERS
commad first, and if that doesn't work, fall back to XOVER.  If there's any
common implementation available on a server, clients can start trying to
use it quickly without waiting for it to be wide-spread.  So there's
no requirement that clients need to wait for all the common servers
to implement it befor they can start taking advantage of it.

The bigger issue is that the intent of HEADERS is to allow any header
to be downloaded - not just OVERVIEW headers.  And that's a real technical
problem for most servers today which have overview databases optimized for
storing only the "standard" overview headers and not all of them.  This
means that it will take some major work to build a good implementation of
the HEADERS command on most servers today.

I already have the HEADERS command supported on the news.newsreader.com
NNTP server.  But it's currently very slow - it just does a head of
each article to get the data (and it does it one article at a time with no
attempts for parallel fetches).  It's not even optimized to use the XOVER
code for the headers which are in the XOVER DB.  But it wouldn't be hard to
make it run at the same speed as the XOVER code if anyone was serious about
using it.

There are reasons I would like to use it in my web-interface newsreader
code so I might end up making it work fast just so I can use it there....

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Technical Details
Message-ID: <20000503134110.828$Bh@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <yl7ldiu3j8.fsf@windlord.stanford.edu> <bill-3004002219240001@fireproof.scconsult.com> <957160457.365327@news.netscum.dk> <bill-0105001931200001@fireproof.scconsult.com> <957242886.971518@news.netscum.dk> <bill-0205002029100001@fireproof.scconsult.com>

Show Full Headers
Complete Article Headers
Message-ID: <20000503134110.828$Bh@newsreader.com>
Subject: Re: INN 2.3.0 public beta
Date: Wed, 03 May 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <yl7ldiu3j8.fsf@windlord.stanford.edu> <bill-3004002219240001@fireproof.scconsult.com> <957160457.365327@news.netscum.dk> <bill-0105001931200001@fireproof.scconsult.com> <957242886.971518@news.netscum.dk> <bill-0205002029100001@fireproof.scconsult.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 618778014
X-User: Curt@NewsReader.Com
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Newsgroups: news.software.nntp