Rumen,

This is *not* a bug,

The DATA command prepares James to receive a compliant RFC-821 (and later
RFC-822) message. As you correctly identify "msgbody" does not really comply
with RFC-821/822.

You MUST supply certain headers in a message (RFC-822 says "Creation time,
author id & one address required others optional"), and terminate the header
section with CRLFCRLF (a blank line) Everything after that is the body of
the message until you supply CRLF.CRLF (a dot on a line by itself) at which
point DATA considers the message to be complete.

Therefore James considers that you have transmitted a message containing
only the header "msgbody", James does not validate this header and adds the
headers which an MTA is expected or allowed to add.

d.


> -----Original Message-----
> From: Rumen Burrov [mailto:[EMAIL PROTECTED]
> Sent: 04 August 2003 11:15
> To: [EMAIL PROTECTED]
> Subject: Bug report
>
>
> Hi,
>  i like JAMES very much, so I decided to report you a bug:
>
> SMTP command DATA doesnt work fine:
>
> I have downloaded james-2.1.3 MailetSDK, started JAMES (on Java 2
> Runtime Environment , SE v1.4.1_02 ), made some mailboxes and
> sent the following message:
>
> 220 rumen SMTP Server (JAMES SMTP Server 2.1.3) ready Mon, 4 Aug
> 2003 12:40:00 +
> 0300 (EEST)
> mail from:<me>
> 250 Sender <[EMAIL PROTECTED]> OK
> rcpt to:<t>
> 250 Recipient <[EMAIL PROTECTED]> OK
> data
> 354 Ok Send data ending with <CRLF>.<CRLF>
> msgbody.
> 250 Message received
>
>
> these commands generate the following email (well, the date/time
> doesn't match ;)
>
> Return-Path: <[EMAIL PROTECTED]>
> Received: from localhost ([127.0.0.1])
>           by rumen (JAMES SMTP Server 2.1.3) with SMTP ID 716
>           for <[EMAIL PROTECTED]>;
>           Mon, 4 Aug 2003 12:37:26 +0300 (EEST)
> msgbody.
> Date: Mon, 4 Aug 2003 12:37:26 +0300 (EEST)
> From: [EMAIL PROTECTED]
> Delivered-To: [EMAIL PROTECTED]
> Content-Transfer-Encoding: 7bit
> Content-Type: text/plain; charset=us-ascii
> Mime-Version: 1.0
> Message-ID: <[EMAIL PROTECTED]>
>
> Which is not a valid message.
>
> If you save this to a .txt file and rename it to .eml, then try
> to open it and you'll see that message has no body.
> This is (I think) because according to RFC822 before message body
> there must be an empty line (I make no pretence to know RFC822,
> but I think that empty line is the problem).
>
> According to RFC822 :
> "   message = fields *(CRLF *text)   ;Everything after first null
> line is message body  "
>
> http://www.freesoft.org/CIE/RFC/index.htm
> http://www.freesoft.org/CIE/RFC/822/index.htm
>
>
> Hope I help
>
> Rumen
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to