[Top] [All Lists]

rfc2821bis-01 Issue 14 Continuation of 222 greeting and Issue 15 syntax for multiline replies (was: Re: 2821bis server reply ABNF)

2007-04-06 16:08:24

--On Thursday, 05 April, 2007 17:29 +0100 Tony Finch
<dot(_at_)dotat(_dot_)at> wrote:

Section 4.2 says:

   In ABNF, server responses are:

   Greeting       = "220 " (Domain / address-literal) [ SP
text ] CRLF

   Reply-line     = Reply-code [ SP text ] CRLF

This omits the multiline response cases, and it omits the
definition of Reply-code, so it should be corrected to:

   Greeting       =   "220 " (Domain / address-literal) [ SP
text ] CRLF                   /   "220-" (Domain /
address-literal) [ SP text ] CRLF                    *( "220-"
[ text ] CRLF )
                      "220" [ SP text ] CRLF

I don't know how many of them still exist in the wild, but there
was a time that a multiline opening greeting would cause some
clients to self-destruct.  Frank's comments about trying to
confuse some bots may be consistent with that observed behavior.
And the greeting is definitely not a "reply to a command".
I'll do whatever people like but, unless someone can show a
reason why a multiline greeting is actually necessary, I'm a bit
reluctant to change that just for symmetry purposes.  Issue 14
is now "continuation on 220 Greeting".

   Reply-line     = *( Reply-code "-" [ text ] CRLF )
                       Reply-code [ SP text ] CRLF

   Reply-code     = %x31-35 %x30-35 %x30-39

That was, IMO, clearly a bug.  Will fix unless someone objects
RSN.  Issue 15 for tracking purposes.