🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44272

Re: ietf-nntp Re: RFC 1036 Revision: General

#44272
From: Curt Welch
Date: Mon, 21 Feb 2000 00:00
71 lines
4050 bytes
ietf-nntp@academ.com wrote:
> The following message is a courtesy copy of an article
> that has been posted to news.admin.misc,news.software.nntp,
> news.software.readers as well.
>
> >>>>> "Curt" == Curt Welch <curt@kcwc.com> writes:
>
>  >> xhdr From <20000220110821.423$oq@newsreader.com>
>  >> 221 0 From header of article <20000220110821.423$oq@newsreader.com>.
>  >> <20000220110821.423$oq@newsreader.com> curt@kcwc.com (Curt Welch)
>  >> .
>  >> xpat From <20000220110821.423$oq@newsreader.com> *curt*
>  >> 221 From matches follow.
>  >> <20000220110821.423$oq@newsreader.com> curt@kcwc.com (Curt Welch)
>  >> .
>
>  Curt> Thanks.  I hope the NNTP draft gets that right.  It's stupid to
>  Curt> try and return an article number.
>
> The NNTP draft obviously doesn't specify XHDR & XPAT, but the example it
> includes for PAT header <message-id> does show an article number being
> returned:

Right, it's the PAT command I was concerned about.

>         Example of a successful retrieval of header from an article by
>         message-id
>
>                     [S] 200 NNTP Service Ready
>
>                     [C] PAT subject <i.am.a.test.article@nowhere.to>
>
>                     [S] 221 Header information follows
>
>                         3000345 I am just a test article
>
>                         .
>
> The relevent part of the text says:
>
>         Successful responses start with a 221 response followed by
>         article number, an US-ASCII space, and the header from that
>         message in which the argument pattern matches the contents of
>         the specified header line.
>
> IMO there should be some change here to handle this case - either
> allowing the returned article number to be '0', or having the message-id
> returned instead as for INN's xhdr & xpat.

Yes, 0 is fine as well, but for consistencey with INNs XPAT I'd recommend
using the Message-ID.  That way, anyone using XPAT in their code can just
change it to PAT and it would still work.

It's easy of course to print out an article number, but it's likely to
cause confusion.  People might assume it's an article number from the
currently selected GROUP but the server might simply print the first
article number it finds in the Xref: data -- so for cross posted articles
the number might not apply to the current group, even though the article
is posted to the current group.

The other issue is whether PAT header <id> requires a group to be selected,
or whether the article has to be posted to that group.  It shouldn't have
to be selected or related at all to the current group, but the draft I have
doesn't get into that issue at all.  This is the same issue that comes up
with the ARTICLE/HEAD/BODY <id> commands.

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

Technical Details
Message-ID: <20000220231248.316$8q@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mail
References: <slrn8an4h9.vch.grobe+news@worf.netins.net> <20000219165634.892$gw@newsreader.com> <951044199.654748@news.netscum.dk> <20000220110821.423$oq@newsreader.com> <951077734.28590@news.netscum.dk> <20000220201223.967$Cp@newsreader.com> <87aekv43ts.fsf@erlenstar.demon.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <20000220231248.316$8q@newsreader.com>
Subject: Re: ietf-nntp Re: RFC 1036 Revision: General
Date: Mon, 21 Feb 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <slrn8an4h9.vch.grobe+news@worf.netins.net> <20000219165634.892$gw@newsreader.com> <951044199.654748@news.netscum.dk> <20000220110821.423$oq@newsreader.com> <951077734.28590@news.netscum.dk> <20000220201223.967$Cp@newsreader.com> <87aekv43ts.fsf@erlenstar.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mail
X-Deja-AN: 587792816
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-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.admin.misc,news.software.nntp,news.software.readers,mcom.list.ietf-nntp