----- Original Message -----
From: <[EMAIL PROTECTED]>
> It looks like James doesn't properly handle basic non-mime messages which
do
> _not_ begin with a CRLF after the SMTP 'DATA' command.
> For example, I'm printing out all MIME headers (via a Mailet, with code
> shown below) as a debugging test, and I can reproduce the following
scenario
> every time:
>
> <Transcript of telnet session>
> 220 fnatural SMTP Server (JAMES SMTP Server 2.0a3) ready Fri, 27 Dec 2002
> 21:14:26 -0800
> helo aeoifj
> 250 fnatural Hello aeoifj (fnatural [192.168.1.100])
> mail from: <aeoijf@aeofij>
> 250 Sender <aeoijf@aeofij> OK
> rcpt to: <[EMAIL PROTECTED]>
> 250 Recipient <[EMAIL PROTECTED]> OK
> data
> 354 Ok Send data ending with <CRLF>.<CRLF>
> This is noline body.
> .
> 250 Message received

You're sending an invalid MIME message... you have to put headers followed
by a blank line, then the message body.  As it is, you've got no headers,
and no blank line.  I'm not quite sure how "This is noline body." is showing
up as a header, but well, no idea why you're even allowed to send this
message at all.

James uses Javamail (currently 1.2) for all it's mime message handling
(parsing, etc...), so you could report the fact that you can create a
MimeMessage without a header as a bug to them.  This may have been fixed in
1.3, and we hope to upgrade to that soon in a point release following the
2.1 release.

Serge Knystautas
Loki Technologies
http://www.lokitech.com/



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

Reply via email to