Philip Guenther wrote:
Shouldn't it just read:
Reply-line = *( Reply-code "-" [ text ] CRLF )
Reply-code [ SP text ] CRLF
Yes. We need the "/" for an alternative for the <Greeting>
but not here. And maybe we want 3DIGIT for the Reply-Code
with the prose saying that only 2yz up to 5yz are used.
The opposite approach, the ABNF says [2-5]yz, and the prose
says "unless an extension allows e.g. 1yz", is also okay.
The folded <Greeting> ABNF is unfortunately gibberish:
Greeting = ( "220 " (Domain / address-literal) [ SP text ] CRLF
) /
( "220-" (Domain / address-literal) [ SP text ] CRLF
*( "220-" [ text ] CRLF )
"220" [ SP text ] CRLF )
Based on the <Reply-text> idea I get:
Greeting = "220 " (Domain / address-literal)
[ SP Reply-text ] CRLF
Greeting =/ "220-" (Domain / address-literal)
[ SP Reply-text ] CRLF
*( "220-" [ Reply-text ] CRLF )
"220" [ SP Reply-text ] CRLF
The alignment of columns is significant in this <artwork> :-)
Unchecked, the ABNF parser is apparently down at the moment.
Frank