I cant find solution how to download multiple Emails with Multipart content with only one request to server (as batch fetching). The code i use:
FetchProfile lFp = new FetchProfile();
lFp.add(FetchProfile.Item.ENVELOPE);
lFp.add(FetchProfileItem.FLAGS);
lFp.add(FetchProfileItem.CONTENT_INFO);
pFolder.fetch(lMessages, lFp);
but when lMessages[i].getContent() is used, next request to server is performed. So for 50 next messages there are at least 50 more requests (+ nested Multiparts), it is not acceptable in my case. How to speed it up?