🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79437

Re: News servers without XOVER and XHDR?

#79437
From: Curt Welch
Date: Sat, 13 Sep 2008 18:07
105 lines
6410 bytes
=?Windows-1252?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid>
> wrote: Hi Curt,
>
> > RFC 3977 without a doubt breaks most current newsreaders (any
> > newsreader that doesn't do XOVER isn't a "real" newsreader :)).  You
> > need to include support for XOVER at a minimum and you should include
> > support for XHDR. Both of those are old well established standards on
> > Usenet that almost all news clients use.
>
> It is a pity that lots (?) of them only rely on these commands and, when
> unavailable, do not fall back to ARTICLE/BODY/HEAD which are the basics!

Yeah, well, if the guys developing the newsreaders ever found a server that
didn't implement xover, they would probably have taken the time to write
the code to use head to make it work.  But since basically every server in
the world implements xover these days they have no motivation to do it, and
no server to test it on even if they wrote the code.  They would have to
write a custom news server (or at least a news server proxy) just to be
able to test their code.  That seldom happens and as a result, all the
current newsreaders assume XOVER is there and that's what they used.

The basic commands in NNTP are GROUP, XOVER, and ARTICLE.  Everything else
is just "extra fluff". :)

The first newsreader I wrote was in 1989.  XOVER was just coming out in
those days, but XHDR was already well established.  I used XHDR because a
single XHDR command was far faster than 100's of HEAD commands.  A few
years later, I added XOVER support with fallback to my old XHDR code.  Ever
since the early 90's, XOVER has been the standard and has been included in
all news server written since then.  So there hasn't been any reason to
fall back to HEAD.  Falling back from XOVER to HEAD is basically as odd as
writing code to fallback to HEAD and BODY if ARTICLE wasn't implemented or
falling back to ARTICLE if HEAD OR BODY wasn't implemented. :)  This is
simply because all current newsreaders expect all current news servers to
implement GROUP, XOVER, HEAD and ARTICLE as the basic fundamental NNTP
commands.

> > The X* convention for experimental commands is also totally unworkable.
> > There's no workable path for the migration of X* commands to a new
> > name. By the time the command is popular enough to be included in a
> > standard, it's already embedded in too many servers and clients to make
> > it practical to change the name.  When adding experimental commands,
> > people should just give them real names.
>
> I see one workable path:  suppose that you create XPAT and implement it,
> then there is no reason why that command would not be PAT.
> When standardized, PAT is advertised in CAPABILITIES and news readers
> know for sure that they can use it.
>
> It might be possible to provide an extension to CAPABILITIES.  There is a
> keyword argument.  For instance:
>
> [C] CAPABILITIES XPAT
> [S] 101 Standardized command: follows
> [S] PAT
> [S] .
>
> The keyword must begin with "X" to be treated like that by CAPABILITIES.
> (Several CAPABILITIES could be answered too, if needed.)
>
> Otherwise, using lines which do not begin with a letter?
>
> [C] CAPABILITIES
> [S] 101 List follows
> [S] VERSION 2 3
> [S] PAT
> [S] _XPAT PAT
> [S] .
>
> An underscore (or a dash, a % or I do not know what) followed by the
> legacy capability and then the standardized command.
>
> Of course the new command X* should be well defined according to current
> RFCs so as not to change its syntax (but only add new cases compatible
> with X*) when standardized.

Yeah that would work.  The behavior of assuming if an X command didn't work
then trying the command without the X would be a simple and workable
solution.

But there is so little new server development and new protocol changes
happening these days that there's no need (or reason) such a convention
would take hold.  The RFC sets the standard that CAPABILITIES and draft
standards are the "correct" path for new commands to be added to NNTP if
there was a need.

Speaking of which, why are you witting a Usenet server if you don't mind me
asking...? (I assume from all your detailed questions that you are witting
a new server from scratch?).

If someone wanted to make a change to the protocol, the major thing that
needs fixing in NNTP is to eliminate article numbers. They represent a
major architectural headache in the development of distributed servers.

I haven't thought through how that would be done, but it seems like it
should be possible. Basically, all article access would be message-id and
header data would be accessed by time stamps and there would be no
assumption or requirement of article order, or consistency in groups.  All
newsreaders would have to be written from scratch basically to deal with it
however so it's not very practical but a fun design exercise to think
about.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Technical Details
Message-ID: <20080913140739.795$ZM@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.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!198.186.190.251.MISMATCH!transit4.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr2.newsreader.com.POSTED!not-for-mail
References: <gabun3$g3k$1@news.trigofacile.com> <20080912010217.896$nr@newsreader.com> <gad18f$oq$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <20080913140739.795$ZM@newsreader.com>
Subject: Re: News servers without XOVER and XHDR?
Date: Sat, 13 Sep 2008 18:07:37 +0000
From: curt@kcwc.com (Curt Welch)
References: <gabun3$g3k$1@news.trigofacile.com> <20080912010217.896$nr@newsreader.com> <gad18f$oq$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!198.186.190.251.MISMATCH!transit4.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr2.newsreader.com.POSTED!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-NRC-Trace: NewsReader.Com c6jvuag+BL/9PvVmD_@@PLfuzTC7R8-T9R6ZXZ8DvUnk7R1+
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
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 105
NNTP-Posting-Host: 54a22949.nr2.newsreader.com
X-Trace: DXC=0IgE]6RiIWB54lN_WT@d4LOA8_@f\K_iBNeemI`PFoEL9n?hASYdgfANd7biGRhQTGabI[<ZWSB4AaZoYm76jLMC
X-Complaints-To: abuse@newsreader.com