james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niklas Therning (JIRA)" <server-...@james.apache.org>
Subject [jira] Commented: (MIME4J-6) Loading bodies on demand instead of using temporary files
Date Fri, 21 Sep 2007 08:20:50 GMT

    [ https://issues.apache.org/jira/browse/MIME4J-6?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529337

Niklas Therning commented on MIME4J-6:

The idea is to make the Message class and friends be able to do this so the user won't have
to. Message uses the streaming parser internally to build the message tree. IIRC the streaming
parser does some look-ahead when searching for boundaries etc. This means that when your callback
in your ContentHandler is called you cannot assume that the current file position in the underlying
stream corresponds to the start of the body part. Mime4j doesn't currently provide a means
to determine the actually start of a body part in the underlying stream. At least that has
to be supported by Mime4j. When that has been done I don't think it would be very hard to
extend Message and friends to be able to load parts as they are requested.

> Loading bodies on demand instead of using temporary files
> ---------------------------------------------------------
>                 Key: MIME4J-6
>                 URL: https://issues.apache.org/jira/browse/MIME4J-6
>             Project: Mime4j
>          Issue Type: Improvement
>            Reporter: Norman Maurer
>             Fix For: 0.4
> Make the DOM-like parser capable of loading bodies (at least large attachment)
> on demand instead of using temporary files.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message