🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #68732

Re: New NNTP standard in Working Group Last Call

#68732
From: Curt Welch
Date: Sun, 21 Mar 2004 09:22
46 lines
3504 bytes
"Colin Wilson" <colin@wilsonc.demon.co.uk> wrote:
> The reason I say it's a bug is that nowhere in RFC 977 does it say it's
> valid to return '0' for the article number in a 22x response.  On the
> contrary - it specifically says that the article number should be
> returned for both forms:

I've argued that the source has always been the real "standard" for Usenet
and never the RFC.  And as far as I know, INN has always returned 0 for the
article number on Message-Id look-ups.  But what I didn't really know is
what the older NNTP server software which came before inn did with the
article number.  So I just did a little digging.

I found two version of it.  One version, which seems to be version 1.5.11
from around 1991, did have a hard-coded 0 for all look-ups by Message-ID:

        printf("%d 0 %s Article retrieved, %s.\r\n",
                OK_ARTICLE + method, argv[1], verbiage[method]);

The NNTP code was first written in 1996 by the same people I believe that
wrote RFC 977.  I assume that since this 1991 version had the hard-coded 0,
that all previous version did as well for the 7 years before that, and this
stands as a good example of the difference between the RFC and the "real
standard", (the actual code).

However, I also found version 1.5.12.1 which has this:

         printf("%d %ld %s Article retrieved, %s.\r\n",
                        OK_ARTICLE + method, group_artnum, argv[1],
                        verbiage[method]);

Where group_artnum is set from the data in the history file if the current
group is set and the article is posted to the current group.  i.e., It is
returning the article number like you want when it makes sense to do so.

This version seems to be from 1994.  Version 1.5.12 is the version that
added support for the non-standard "XOVER" command as well.  This change to
the return value was not mentioned in the change log however.

INN I assume copied the orginal behavior, and then after INN was written,
someone changed how the NNTP server code worked to include the article
number when possible.  So servers which work this way pre-dates dnews....

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20040321042202.812$OG@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!archiver1.google.com!news1.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!newshosting.com!nx01.iad01.newshosting.com!38.144.126.77.MISMATCH!feed4.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <871xo3w5c6.fsf@windlord.stanford.edu> <xn0dfommipc6fs004@news.clara.net> <87u10t4qie.fsf@windlord.stanford.edu> <xn0dfq4tk2v2hm000@news.clara.net>

Show Full Headers
Complete Article Headers
Message-ID: <20040321042202.812$OG@newsreader.com>
Subject: Re: New NNTP standard in Working Group Last Call
Date: Sun, 21 Mar 2004 09:22:02 +0000
From: curt@kcwc.com (Curt Welch)
References: <871xo3w5c6.fsf@windlord.stanford.edu> <xn0dfommipc6fs004@news.clara.net> <87u10t4qie.fsf@windlord.stanford.edu> <xn0dfq4tk2v2hm000@news.clara.net>
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!archiver1.google.com!news1.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!newshosting.com!nx01.iad01.newshosting.com!38.144.126.77.MISMATCH!feed4.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com 3pctZYnPTQfjsB,a2/IQ1/Nal@Jel/zxfW7WYgD.TXCsyJFSo-
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: 45