You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mime4j-dev@james.apache.org by "Sebb (JIRA)" <mi...@james.apache.org> on 2017/03/08 14:12:38 UTC

[jira] [Created] (MIME4J-259) MboxIterator does not handle EOL = CRLF

Sebb created MIME4J-259:
---------------------------

             Summary: MboxIterator does not handle EOL = CRLF
                 Key: MIME4J-259
                 URL: https://issues.apache.org/jira/browse/MIME4J-259
             Project: James Mime4j
          Issue Type: Bug
            Reporter: Sebb


The MboxIterator class assumes that the EOL consists of a single character, so it increments findEnd by 1 to get the start of the message.

This causes problems for files which have a CRLF line ending, because the generated message contains a leading LF which confuses the parser.

The iterator should ensure that the entire EOL is skipped.

However it might be better to keep the From_ line in the returned message.
The parser can then process it to extract its data.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)