oups... you are right! I thought that the header was *optional* ;-)
By the way, if you try the same thing with SendMail, my DATA are taken as body and a header is added.
Anyway, I don't see a big issue. James follow the RFC... and probably nearly any old script don't add header (at lest Subject:).
For my manual test, I add a Subject, then everything is fine :-D
Cheers, Laurent.
Danny Angus wrote:
This is not a bug. A message contains headers and content, seperated by CRLFCRLF your message has no CRLFCRLF to identify the end of the headers, therfore the message *is* the headers.
RFC 2822[1] clearly states:
"A message consists of header fields (collectively called "the header of the message") followed, optionally, by a body."
The headers aren't optional. For those who understand gobbledegook this detail [1] from section three confirms it:
"message = (fields / obs-fields) [CRLF body]
body = *(*998text CRLF) *998text"
And section three is described thus: "The syntax included in section 3 represents messages as they MUST be created."
d.
[1] http://james.apache.org/rfclist/basic/rfc2822.txt
|---------+----------------------------> | | Laurent Rouvet | | | <[EMAIL PROTECTED]| | | om> | | | | | | 26/05/2004 11:00 | | | PM | | | Please respond to| | | "James Developers| | | List" | | | | |---------+----------------------------> >---------------------------------------------------------------------------------------------------------------| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: BUG with small message | >---------------------------------------------------------------------------------------------------------------|
Hi,
I've noticed a small bug if the message don't have any header line.
220 qdi.roovay.com SMTP Server (JAMES SMTP Server 2.1.3) ready Wed, 26 May 2004 23:57:59 +0200 (CEST) helo roovay.com 250 qdi.roovay.com Hello roovay.com (localhost [127.0.0.1]) mail from:<[EMAIL PROTECTED]> 250 Sender <[EMAIL PROTECTED]> OK rcpt to:<[EMAIL PROTECTED]> 250 Recipient <[EMAIL PROTECTED]> OK data 354 Ok Send data ending with <CRLF>.<CRLF> bonjour, test . 250 Message received
Then I get the following message in the table inbox: --------------- Return-Path: <[EMAIL PROTECTED]> Received: from localhost ([127.0.0.1]) by qdi.roovay.com (JAMES SMTP Server 2.1.3) with SMTP ID 913 for <[EMAIL PROTECTED]>; Wed, 26 May 2004 23:58:28 +0200 (CEST) bonjour, test Date: Wed, 26 May 2004 23:58:28 +0200 (CEST) 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]>
---------------
I'm using James v2.1.3 with a JDBC repository.
I'm not such which part of James is involve. The SMTP, core or mailets LocalDelivery ?
Laurent
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
