Article View: news.software.nntp
Article #44276MID in 240 and 340 responses (was: RFC 1036 Revision: General)
From: J. B. Moreno
Date: Mon, 21 Feb 2000 00:00
Date: Mon, 21 Feb 2000 00:00
115 lines
6868 bytes
6868 bytes
Curt Welch <curt@kcwc.com> wrote: > 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. Sensible -- at the very least it means they find it faster. > 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. If I'm reading this right -- I disagree. The 340 response is (or should be) two things: a suggestion of what the client should use and a promise of what the server will use if the client leaves it blank. > 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. Right, the only time it should vary is when the client overrides it. > 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. Absolutely agreed. IMO it's useless if the client can't rely upon it. > 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. Sure it'll require some changes, but it shouldn't require a lot. > > 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. Well, I certainly agree there, I think the server overriding the id is evil. Still -- returning the id that will be used in the 240 allows newsreaders to compensate for evil servers: they can check and if a particular server does over ride the supplied id or not. > 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.... I think it's a good cross check, a bit of redundancy isn't a bad thing as long as it doesn't get in the way. -- John B. Moreno
Technical Details
Message-ID:
<1e6cymd.19ypy5t3b3vitN%planb@newsreaders.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-mailReferences:
<slrn8an4h9.vch.grobe+news@worf.netins.net> <84putvraym.fsf@chiark.greenend.org.uk> <20000217131430.699$Rm@newsreader.com> <ylr9ebwo90.fsf@windlord.stanford.edu> <9qor4.2803$WH1.51356@news.swbell.net> <20000219010540.033$WW@newsreader.com> <slrn8asgfg.ke2.andrew+news@uk21.supernews.com> <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> <1e6bqtk.minnfm1dl0bk0N%planb@newsreaders.com> <20000221011505.529$P6@newsreader.com> <951116973.332147@news.netscum.dk> <20000221123557.473$oL@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <1e6cymd.19ypy5t3b3vitN%planb@newsreaders.com> Subject: MID in 240 and 340 responses (was: RFC 1036 Revision: General) Date: Mon, 21 Feb 2000 00:00:00 +0000 From: planb@newsreaders.com (J. B. Moreno) References: <slrn8an4h9.vch.grobe+news@worf.netins.net> <84putvraym.fsf@chiark.greenend.org.uk> <20000217131430.699$Rm@newsreader.com> <ylr9ebwo90.fsf@windlord.stanford.edu> <9qor4.2803$WH1.51356@news.swbell.net> <20000219010540.033$WW@newsreader.com> <slrn8asgfg.ke2.andrew+news@uk21.supernews.com> <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> <1e6bqtk.minnfm1dl0bk0N%planb@newsreaders.com> <20000221011505.529$P6@newsreader.com> <951116973.332147@news.netscum.dk> <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 X-Deja-AN: 588173111 Mail-Copies-To: nobody X-ACLA-Charter: <http://www.deja.com/msgid.xp?MID=%3Cphenix-121119981748546229@roxboro0-023.dyn.interpath.net%3E&ST=&AH=1> X-Face: ]lUBtDImSD_`E"<*ZgyJUoCT\=CdRLFX4qCMLK[xy^L7v|uX|f8`cFDd*PaH8 N*x>d^h Organization: NetNews BOFH wannabe User-Agent: MacSOUP/2.4.2 Newsgroups: news.admin.misc,news.software.nntp,news.software.readers