[ http://issues.apache.org/jira/browse/JAMES-424?page=comments#action_12435219 ] Stefano Bagnara commented on JAMES-424: ---------------------------------------
2 comments: 1. Sendmail seems to apply a more intelligent algorithm: it read the mail and use every line as an header until it find an invalid line. This line will be considered the first body line. 2. We should decide wether to put this in the code that read data from SMTP or to put it in the "parse" method of our MimeMessageWrapper to override the default behaviour. > 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: Improvement > Components: MailStore & MailRepository, SMTPServer > Affects Versions: 2.2.0 > Environment: WinXP > Reporter: Scott Carr > Priority: Minor > Attachments: headerFix.diff > > > 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. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]