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
Leave a Reply
You must be logged in to post a comment.