diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 99ab0f98dc..9fa04b2219 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -1088,7 +1088,6 @@ class Core { // - messages in inbox have same id as message sent to self // - messages in archive have same id as original if (message == null) { - // Will fetch headers within database transaction String msgid = helper.getMessageID(); Log.i(folder.name + " searching for " + msgid); for (EntityMessage dup : db.message().getMessageByMsgId(folder.account, msgid)) { diff --git a/app/src/main/java/eu/faircode/email/EntityOperation.java b/app/src/main/java/eu/faircode/email/EntityOperation.java index b20b75fc2e..239a150c3e 100644 --- a/app/src/main/java/eu/faircode/email/EntityOperation.java +++ b/app/src/main/java/eu/faircode/email/EntityOperation.java @@ -84,6 +84,7 @@ public class EntityOperation { static final String ATTACHMENT = "attachment"; static final String SYNC = "sync"; + // These operations should be prepared to be executed twice by both the background and foreground sync private static List FOREGROUND = Arrays.asList(KEYWORD, HEADERS, RAW, BODY, ATTACHMENT); static void queue(Context context, DB db, EntityMessage message, String name, Object... values) {