Keep message info

pull/199/head
M66B 3 years ago
parent 5a20f8c277
commit e38566118a

@ -582,7 +582,6 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
db.folder().setFolderError(browsable.id, Log.formatThrowable(ex)); db.folder().setFolderError(browsable.id, Log.formatThrowable(ex));
} finally { } finally {
isub[j] = null; isub[j] = null;
//((IMAPMessage) isub[j]).invalidateHeaders();
} }
} }

@ -1406,7 +1406,6 @@ class Core {
boolean download = db.folder().getFolderDownload(folder.id); boolean download = db.folder().getFolderDownload(folder.id);
List<EntityRule> rules = db.rule().getEnabledRules(folder.id); List<EntityRule> rules = db.rule().getEnabledRules(folder.id);
try {
FetchProfile fp = new FetchProfile(); FetchProfile fp = new FetchProfile();
fp.add(FetchProfile.Item.ENVELOPE); fp.add(FetchProfile.Item.ENVELOPE);
fp.add(FetchProfile.Item.FLAGS); fp.add(FetchProfile.Item.FLAGS);
@ -1440,9 +1439,6 @@ class Core {
if (!stats.isEmpty()) if (!stats.isEmpty())
EntityLog.log(context, account.name + "/" + folder.name + " fetch stats " + stats); EntityLog.log(context, account.name + "/" + folder.name + " fetch stats " + stats);
} finally {
((IMAPMessage) imessage).invalidateHeaders();
}
} catch (MessageRemovedException | MessageRemovedIOException ex) { } catch (MessageRemovedException | MessageRemovedIOException ex) {
Log.i(ex); Log.i(ex);
@ -2981,7 +2977,7 @@ class Core {
db.folder().setFolderError(folder.id, Log.formatThrowable(ex)); db.folder().setFolderError(folder.id, Log.formatThrowable(ex));
} finally { } finally {
// Free memory // Free memory
((IMAPMessage) isub[j]).invalidateHeaders(); isub[j] = null;
} }
} }
} }
@ -3051,7 +3047,6 @@ class Core {
} finally { } finally {
// Free memory // Free memory
isub[j] = null; isub[j] = null;
//((IMAPMessage) isub[j]).invalidateHeaders();
} }
} }
} }

@ -1409,12 +1409,6 @@ public class Log {
"failed to create new store connection".equals(ex.getMessage()))) "failed to create new store connection".equals(ex.getMessage())))
return null; return null;
if (ex instanceof MessagingException &&
ex.getMessage() != null &&
ex.getMessage().contains("invalid message sequence number"))
// invalid message sequence number: message is probably expunged
return null;
if (ex instanceof MessagingException && if (ex instanceof MessagingException &&
ex.getCause() instanceof ConnectionException && ex.getCause() instanceof ConnectionException &&
ex.getCause().getMessage() != null && ex.getCause().getMessage() != null &&

Loading…
Cancel
Save