I'm opening large folders of email, in the gigabyte ballpark, and I'm
processing those messages. However, the memory consumption never goes
down because Folder holds a hard reference to those messages. Once I
close the folder of course that memory is released. But, I really
just want to process the message and have the memory reclaimed. I
don't want the folder to cache it for me. Is there a way to tell the
folder implementation to not to cache MimeMessages for me?
Also is there a way to improve the performance of pulling down the
email? I've noticed that since things are lazy email only comes down
once I touch a single MimeMessage. I'd like to pull down the email in
bulk in larger chunks to reduce network latency and trips back and
forth. I saw the fetch() method with FetchProfile, but it seemed to
indicate that this method isn't guaraneteed to work across all
providers. What are the limitations with the Sun providers Pop3 and
IMap? Can you fetch a N number of messages at a time and download
the full contents of the messages?
Charlie
===========================================================================
To unsubscribe, send email to
listserv@... and include in the body
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
listserv@... and include in the body of the message "help".