mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Fetch body structure on download
This commit is contained in:
parent
56bb3a947a
commit
0f1d7fe33b
1 changed files with 3 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue