🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44267

Re: RFC 1036 Revision: General

#44267
From: Curt Welch
Date: Mon, 21 Feb 2000 00:00
91 lines
5407 bytes
Jeremy <bofh@netscum.dk> wrote:
> Curt Welch <curt@kcwc.com> wrote:
>
> >> How about returning the planned message id in response to a POST
> >> command?
> [...]
>
> > Do you want it on the 340 response (the one that tells you to go
> > ahead and send the article), or on the 240 response that comes
> > after the article is sent by the user?
> >
> > And why is this needed?

Ok, I've added that feature to my server. (on both the 340 response
that comes before the article and the 240 response that comes after
the article.)

The INN patch planb@newsreaders.com (J. B. Moreno) posted the link to had
the Message-ID mixed in with the text for both responses.  I put it first
on the line which I think is the "right" way to do it.  It's stupid to
force the client to scan the line to check for a message ID when there's no
reason not to just require the ID be placed first on the line (after the
result code and a space of course). The other NNTP responses work that
way.

The ID I put on the first response (the 340, go ahead and send article
response), is the one I use if the article as sent doesn't have a
message-id.  And that's the same thing the INN patch does.  But, if this
were a standard, I think the message-ID there should only be a suggestion
of what the newsreader could use if it wanted to.  That way, even large
multiple system installations that were not able to predict/control what ID
the article ends up with, could at least make up an ID for the client to
use.

This just means that if the client chooses not to use the suggested Id, and
dosen't add any Message-ID: to the article, then the ID it ends up with may
not be the one suggested on the 340 response.

But, at the same time, I see no reason why the server couldn't go ahead
and check for a missing Message-ID: header, and add it based on the
ID it suggested -- even if the article was just being passed on to another
server to do the real post work.  So most the time, the suggested ID
would be the one it would end up with.

So, now that I think though this, I guess there's no reson not to require
the server to use the id it suggested.  i.e., if it includes an ID in
the 340 response, then the article MUST end up with that ID if the client
doesn't include a Message-ID: header.  If the server can't guarantee that
the article will end up with that ID, then it MUST NOT include the ID
in the response code.

So, the correct algorithm for a client should be to 1) if they don't
need to know the ID, leave the Message-ID header off and let the
server generate it, and 2), if it needs to know the ID for whatever
reason, use the one from the 340 response if present, else make your
own up like everyone currently does.

I'm sure that for many newsreaders, this won't be easy, because by
the time the newsreader is sending the POST command, it has already
formatted the entire article, and editing the headers after you
start a post will most likely require a some code structure changes.

> It would be nice in the 340 response, as you could then let the server
> generate a message-id, and still let the reader know what that ID is
> going to be, and allow the possibility to use it or not, as desired.
>
> It does create some implementation problems for larger systems, though,
> so while I'd like to see it in the standard, if it's there it should be
> optional.

Having the ID on the 240 OK response that comes after the article is
posted is mostly useless (because clients that need to know the ID
can't afford to wait until then to find out if the server is going
to be nice enough to include the id there.)  But, it would be very
useful on servers that want to override the supplied ID.

But, for things like Cancel-Locks: based on the ID, or signatures based
on the ID, the client must know what the ID is going to be before the
article is posted, so servers which overide the ID after the fact
should really not be allowed.

So if we can define that to be the case, then including the ID on
the 240 response would just be redundant -- though I guess for some
newsreader it might happen to make things easier, so I guess I see
no harm in having it part of the standard....

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

Technical Details
Message-ID: <20000221123557.473$oL@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> <20000220201223.967$Cp@newsreader.com> <1e6bqtk.minnfm1dl0bk0N%planb@newsreaders.com> <20000221011505.529$P6@newsreader.com> <951116973.332147@news.netscum.dk>

Show Full Headers
Complete Article Headers
Message-ID: <20000221123557.473$oL@newsreader.com>
Subject: 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> <20000220201223.967$Cp@newsreader.com> <1e6bqtk.minnfm1dl0bk0N%planb@newsreaders.com> <20000221011505.529$P6@newsreader.com> <951116973.332147@news.netscum.dk>
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: 588010195
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