ietf-822
[Top] [All Lists]

Re: Regarding SMTP Message specification syntax ...

2003-09-30 20:53:56

dhananjay wrote:
Hi,
If user enters "." or "CR" as a first character for a response to DATA command. Then, should that be treated as illegal message format ? I went through RFC822 in search of this, but could not gain much from "Message specification section 4.1" with regards to this issue. It would be really great, if I can get some pointers to resolve this issue.

If you mean a completely empty message, i.e. no body and no header, then that
is not legal. RFC 822 section 4.1 gives the message syntax; date, originator
(From), and at least one recipient (To, Cc, Bcc) header fields are mandatory:

     message     =  fields *( CRLF *text )       ; Everything after
                                                 ;  first null line
                                                 ;  is message body

     fields      =    dates                      ; Creation time,
                      source                     ;  author id & one
                    1*destination                ;  address required
                     *optional-field             ;  others optional


RFC 2822 is somewhat more liberal; it does not require a recipient field.
See the table in RFC 2822 section 3.6.


<Prev in Thread] Current Thread [Next in Thread>