Fetch body structure on download

This commit is contained in:
M66B 2019-09-21 19:28:09 +02:00
parent 56bb3a947a
commit 0f1d7fe33b
1 changed files with 3 additions and 5 deletions

View File

@ -2187,18 +2187,16 @@ class Core {
if (fetch) {
Log.i(folder.name + " fetching message id=" + message.id);
// Fetch on demand to prevent OOM
//FetchProfile fp = new FetchProfile();
FetchProfile fp = new FetchProfile();
//fp.add(FetchProfile.Item.ENVELOPE);
//fp.add(FetchProfile.Item.FLAGS);
//fp.add(FetchProfile.Item.CONTENT_INFO); // body structure
fp.add(FetchProfile.Item.CONTENT_INFO); // body structure
//fp.add(UIDFolder.FetchProfileItem.UID);
//fp.add(IMAPFolder.FetchProfileItem.HEADERS);
//fp.add(IMAPFolder.FetchProfileItem.MESSAGE);
//fp.add(FetchProfile.Item.SIZE);
//fp.add(IMAPFolder.FetchProfileItem.INTERNALDATE);
//ifolder.fetch(new Message[]{imessage}, fp);
ifolder.fetch(new Message[]{imessage}, fp);
MessageHelper helper = new MessageHelper(imessage);
MessageHelper.MessageParts parts = helper.getMessageParts();