I can understand why we need to use javamail since I have found the
saveChanges at almost all mailets in James.
org/apache/james/transport/mailets/AddHabeasWarrantMark.java:
message.saveChanges();
org/apache/james/transport/mailets/LocalDelivery.java:
localMessage.saveChanges();
org/apache/james/transport/mailets/AddFooter.java:
message.saveChanges();
org/apache/james/transport/mailets/AddHeader.java:
message.saveChanges();
org/apache/james/transport/mailets/DSNBounce.java: newMail.getMessage
().saveChanges();
org/apache/james/transport/mailets/DSNBounce.java:
dsnMessage.saveChanges();
org/apache/james/transport/mailets/AbstractRedirect.java:
newMail.getMessage().saveChanges();
org/apache/james/transport/mailets/ServerTime.java:
response.saveChanges();
org/apache/james/James.java: reply.saveChanges();
org/apache/james/core/MimeMessageWrapper.java:
message.saveChanges();
org/apache/james/core/MimeMessageWrapper.java: public void saveChanges()
throws MessagingException {
org/apache/james/core/MimeMessageWrapper.java: message.saveChanges();
org/apache/james/fetchpop/FetchPOP.java:
message.saveChanges();
org/apache/james/fetchmail/MessageProcessor.java:
messageOut.saveChanges();
On my first rough guess, changing mime4j to my problem of receiving large
email will not be so easy. I can change my mailet to use mime4j but other
James' mailets are still using javamail and replacing them will be masive
work since most of them requires writing to the message.
If I narrow down to my requirement, the work will be concentrated in
LocalDelivery mailet but still this is not a pretty solution.
Has James team considered using mime4j as a drop-in replacement to javamail?
I googled around and noticed that someone has incorporated mime4j in James.
Regards,
Edward
On 12/31/05, Edward Tan <[EMAIL PROTECTED]> wrote:
>
> And for the same 30+ MB message.
>
> It is about 8 seconds. (I tried several times and it is the same about 8
> seconds and uses without extra memory, default java).
>
> and for 190+ MB file, it takes 1 minute 32 seconds.
>
> I cannot think how it is different.
>
>