På tirsdag 22. september 2015 kl. 19:07:53, skrev Markus Wiederkehr < [email protected] <mailto:[email protected]>>: I have been away from this project for quite some time but I vaguely remember something about the "storage" package. I think ThresholdStorageProvider [1] should do what you want. Create your own StorageBodyFactory [2] and use it with DefaultMessageBuilderl#setBodyFactory [3]. Also have a look at the DOM samples under org.apache.james.mime4j.samples.dom. I am not very familiar with the current state of the API but I hope that helps.
[1] https://james.apache.org/mime4j/apidocs/org/apache/james/mime4j/storage/ThresholdStorageProvider.html <https://james.apache.org/mime4j/apidocs/org/apache/james/mime4j/storage/ThresholdStorageProvider.html> [2] https://james.apache.org/mime4j/apidocs/org/apache/james/mime4j/storage/StorageBodyFactory.html <https://james.apache.org/mime4j/apidocs/org/apache/james/mime4j/storage/StorageBodyFactory.html> [3] https://james.apache.org/mime4j/apidocs/org/apache/james/mime4j/message/DefaultMessageBuilder.html#setBodyFactory%28org.apache.james.mime4j.message.BodyFactory%29 <https://james.apache.org/mime4j/apidocs/org/apache/james/mime4j/message/DefaultMessageBuilder.html#setBodyFactory%28org.apache.james.mime4j.message.BodyFactory%29> Thanks, this seems closer to what I want with less work. -- Andreas Joseph Krogh CTO / Partner - Visena AS Mobile: +47 909 56 963 [email protected] <mailto:[email protected]> www.visena.com <https://www.visena.com> <https://www.visena.com>
