πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80420

Re: Questions about datastream answers (especially to TAKETHIS)

#80420
From: Russ Allbery
Date: Fri, 20 Mar 2009 20:36
57 lines
3339 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> Such a case is not dealt with RFC 4644.  What should be done?
>
>   [C] TAKETHIS bad-mid
>   [S] 501 Syntax error in message-ID
>
> and unfortunately
>
>   [C] From: ...
>   [C] (with a valid article)
>   [S] 500 What?
>   [S] 500 What?
>   [S] 500 What?
>   [S] 500 What?
>   [S] 500 What?
>
> and so on...
>
> Or should we wait for the final
>   [C] .
> and then send
>   [S] 501 Syntax error in message-ID

The response can be sent immediately, but we have to continue consuming
lines from the client until we see a period on a line by itself because
TAKETHIS immediately sends data and hence the data always has to be
consumed even if the command is syntactically invalid.

> How a news server is it supposed to parse that?
>   [C] TAKETHIS <good@mid> other arguments
> Shouldn't it be 501 too?

Yes.

> I also see that 403 is not a valid answer to TAKETHIS in case the server
> does not want to accept or reject the article.  As a matter of fact:
>
>   The server MUST return either a 239 response, indicating that the
>   article was successfully transferred, or a 439 response, indicating
>   that the article was rejected.  If the server encounters a temporary
>   error that prevents it from processing the article but does not want
>   to reject the article, it MUST reply with a 400 response to the client
>   and close the connection.
>
> I do not understand why 403 would be a problem; only because the sender
> will never see the message-ID in "239/439 message-ID"?

I don't see a reason why 403 wouldn't be fine if that represents the
situation.  Generally, the Generic Response Codes are always allowed in
response to any command when they're appropriate.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <877i2knd8m.fsf@windlord.stanford.edu>
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.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!newsfeed.news2me.com!headwall.stanford.edu!news.stanford.edu!not-for-mail
References: <gq0tnk$kp3$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <877i2knd8m.fsf@windlord.stanford.edu>
Subject: Re: Questions about datastream answers (especially to TAKETHIS)
Date: Fri, 20 Mar 2009 13:36:09 -0700
From: Russ Allbery <rra@stanford.edu>
References: <gq0tnk$kp3$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.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!newsfeed.news2me.com!headwall.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 57
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.stanford.edu 1237581369 10099 171.67.225.134 (20 Mar 2009
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Cancel-Lock: sha1:vUjRNFWRcqqTw+NRnQsQn/beobc=
X-Original-Bytes: 3135