Noel J. Bergman (JIRA) wrote:
[ http://issues.apache.org/jira/browse/JAMES-424?page=comments#action_12434868 ]
Noel J. Bergman commented on JAMES-424:
---------------------------------------
as you keep saying this is a problem in Javamail (and I could agree)
Keep it in context. It is a problem with JavaMail because the content is invalid, and
JavaMail requires valid content, sometimes resulting in "even more" invalid
content. Without JavaMail having problems, we could still transport such messages.
IIRC the problem is in the SMTP transport part, because previously we
never change the message and we prepend the Recipient manipulating the
original stream and if we never change it then it will be written "as
is" and not parsed.
Btw I still don't understand HOW you would parse it IF you have to parse
it. I understand what we can do when we don't have to parse it, but we
also bundle in James mailets that changes the body: HOW should they work?
Let's forget of javamail or mime4j now, I just want to understand the
what is the intended/best behaviour!
I would like to know where you would add the Received: header in the following
message:
--------------------------------
This is a test
Received: <a received header>
--------------------------------
I tested ecelerity, and received:
550 5.6.0 Required headers not found (see RFC2822 section 3.6)
Not sure but I think this is not RFC compliant: rfc2821 (SMTP) does not
say you can check that the data is valid rfc2822 content.
So I would avoid behaving this way. Do you agree?
qmail, however, accepted it, and I received (so delivered by qmail and added to
by JAMES):
---------------------------------------------
Return-Path: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-MessageIsInfected: false
Received: from minotaur.apache.org ([209.237.227.194])
by mail.devtech.com (JAMES SMTP Server 2.3.0rc3) with SMTP ID 986
for <[EMAIL PROTECTED]>;
Thu, 14 Sep 2006 16:38:25 -0400 (EDT)
Date: Thu, 14 Sep 2006 16:38:25 -0400 (EDT)
From: [EMAIL PROTECTED]
Received: (qmail 95997 invoked by uid 1589); 14 Sep 2006 20:11:44 -0000
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 95992 invoked from network); 14 Sep 2006 20:11:44 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199)
by minotaur.apache.org with SMTP; 14 Sep 2006 20:11:44 -0000
Received: (qmail 1843 invoked by uid 500); 14 Sep 2006 20:11:44 -0000
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 1840 invoked by uid 99); 14 Sep 2006 20:11:44 -0000
X-ASF-Spam-Status: No, hits=9.2 required=10.0
tests=MISSING_FROM,MISSING_HB_SEP,MISSING_HEADERS,MISSING_SUBJECT,TO_CC_NONE
X-Spam-Check-By: apache.org
Received-SPF: pass (hermes.apache.org: local policy)
Received: from [66.112.202.2] (HELO devtech.com) (66.112.202.2)
by apache.org (qpsmtpd/0.29) with SMTP; Thu, 14 Sep 2006 13:11:44 -0700
X-Virus-Checked: Checked by ClamAV on apache.org
this is a test
Received: a test header
---------------------------------------------
So qmail prepended headers to the message, but did not take the existing
content and try to make a body out of it.
Never tested qmail, but I understood from Norman that it was considering
it a body: can you test a local delivery to qmail to see if the local
mailbox is altered and how? You should look at the saved mailbox in
order to understand wether the change is done by qmail, by the pop3
server or by the client reading it.
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]