|
|
@ -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();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|