|
|
@ -408,6 +408,8 @@ class Core {
|
|
|
|
ex instanceof FolderNotFoundException ||
|
|
|
|
ex instanceof FolderNotFoundException ||
|
|
|
|
ex instanceof IllegalArgumentException ||
|
|
|
|
ex instanceof IllegalArgumentException ||
|
|
|
|
ex instanceof SQLiteConstraintException ||
|
|
|
|
ex instanceof SQLiteConstraintException ||
|
|
|
|
|
|
|
|
ex.getCause() instanceof MessageRemovedException ||
|
|
|
|
|
|
|
|
ex.getCause() instanceof MessageRemovedIOException ||
|
|
|
|
ex.getCause() instanceof BadCommandException ||
|
|
|
|
ex.getCause() instanceof BadCommandException ||
|
|
|
|
ex.getCause() instanceof CommandFailedException) {
|
|
|
|
ex.getCause() instanceof CommandFailedException) {
|
|
|
|
// com.sun.mail.iap.BadCommandException: B13 BAD [TOOBIG] Message too large
|
|
|
|
// com.sun.mail.iap.BadCommandException: B13 BAD [TOOBIG] Message too large
|
|
|
@ -428,7 +430,11 @@ class Core {
|
|
|
|
db.folder().setFolderSyncState(folder.id, null);
|
|
|
|
db.folder().setFolderSyncState(folder.id, null);
|
|
|
|
|
|
|
|
|
|
|
|
// Cleanup messages
|
|
|
|
// Cleanup messages
|
|
|
|
if (message != null && ex instanceof MessageRemovedException) {
|
|
|
|
if (message != null &&
|
|
|
|
|
|
|
|
(ex instanceof MessageRemovedException ||
|
|
|
|
|
|
|
|
ex instanceof MessageRemovedIOException ||
|
|
|
|
|
|
|
|
ex.getCause() instanceof MessageRemovedException ||
|
|
|
|
|
|
|
|
ex.getCause() instanceof MessageRemovedIOException)) {
|
|
|
|
db.message().deleteMessage(message.id);
|
|
|
|
db.message().deleteMessage(message.id);
|
|
|
|
for (EntityMessage m : similar.values())
|
|
|
|
for (EntityMessage m : similar.values())
|
|
|
|
db.message().deleteMessage(m.id);
|
|
|
|
db.message().deleteMessage(m.id);
|
|
|
|