james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <mime4j-...@james.apache.org>
Subject [jira] [Created] (MIME4J-259) MboxIterator does not handle EOL = CRLF
Date Wed, 08 Mar 2017 14:12:38 GMT
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)

Mime
View raw message