Feb 09

The default IMAP implementation in JavaMail is very slow to download large attachments. Reason for this is that, by default, it uses a small 16K fetch buffer size.

You can increase this buffer size using the “mail.imap.fetchsize” system property

For example:

properties.put("mail.imap.fetchsize", "819200");

written by objects \\ tags: , , , , ,


Leave a Reply

You must be logged in to post a comment.