Right, but using MIME4J whould be a big rewrite! And at the moment MIME4J only supports reading not writing if im not wrong.

bye
Norman

Noel J. Bergman (JIRA) schrieb:
[ http://issues.apache.org/jira/browse/JAMES-424?page=comments#action_12434779 ] Noel J. Bergman commented on JAMES-424:
---------------------------------------

RFC 2821 says, in part:

   Server SMTP systems SHOULD NOT reject messages based on perceived
   defects in the RFC 822 or MIME [12] message header or message body.

Section 3.7 goes further to say:

   As discussed in section 2.4.1, a relay SMTP has no need to inspect or
   act upon the headers or body of the message data and MUST NOT do so
   except to add its own "Received:" header (section 4.4) and,
   optionally, to attempt to detect looping in the mail system (see
   section 6.2).

I'm not entirely dismissing Scott's point.  Frankly, I see a LOT of invalid 
messages in the real-world, and JavaMail tosses exceptions often.  The general 
solution is to avoid JavaMail whenever we can, and be more graceful in content 
handling if/when we even need to look at the content.

Invalid DATA for Message shows up in Headers in mailstore
---------------------------------------------------------

                Key: JAMES-424
                URL: http://issues.apache.org/jira/browse/JAMES-424
            Project: James
         Issue Type: Bug
         Components: MailStore & MailRepository, SMTPServer
   Affects Versions: 2.2.0
        Environment: WinXP
           Reporter: Scott Carr

If you open a connection to the server, and send in the following in the DATA 
for the message:
This is a test
.
Then the data shows up in the headers instead of after the headers like it 
should.  Here is what I recieved in the message:
Return-Path: <[EMAIL PROTECTED]>
Received: from localhost ([127.0.0.1])
          by QRGMAIN (JAMES SMTP Server 2.2.0) with SMTP ID 792
          for <[EMAIL PROTECTED]>;
          Thu, 6 Oct 2005 21:40:21 -0500 (CDT)
this is a test
Date: Thu, 6 Oct 2005 21:40:21 -0500 (CDT)
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]>
Notice where 'this is a test' appears in the message.




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

Reply via email to