mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Small improvement
This commit is contained in:
parent
d896671534
commit
682c92b56b
1 changed files with 16 additions and 9 deletions
|
@ -445,16 +445,23 @@ class Core {
|
|||
}
|
||||
}
|
||||
ifolder.expunge();
|
||||
} else {
|
||||
// Cross account move
|
||||
if (autoread) {
|
||||
Log.i(folder.name + " queuing SEEN id=" + message.id);
|
||||
EntityOperation.queue(context, db, message, EntityOperation.SEEN, true);
|
||||
}
|
||||
} else
|
||||
try {
|
||||
db.beginTransaction();
|
||||
|
||||
Log.i(folder.name + " queuing DELETE id=" + message.id);
|
||||
EntityOperation.queue(context, db, message, EntityOperation.DELETE);
|
||||
}
|
||||
// Cross account move
|
||||
if (autoread) {
|
||||
Log.i(folder.name + " queuing SEEN id=" + message.id);
|
||||
EntityOperation.queue(context, db, message, EntityOperation.SEEN, true);
|
||||
}
|
||||
|
||||
Log.i(folder.name + " queuing DELETE id=" + message.id);
|
||||
EntityOperation.queue(context, db, message, EntityOperation.DELETE);
|
||||
|
||||
db.setTransactionSuccessful();
|
||||
} finally {
|
||||
db.endTransaction();
|
||||
}
|
||||
}
|
||||
|
||||
private static void onMove(Context context, JSONArray jargs, boolean copy, EntityFolder folder, EntityMessage message, Session isession, IMAPStore istore, IMAPFolder ifolder) throws JSONException, MessagingException, IOException {
|
||||
|
|
Loading…
Reference in a new issue