diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 7aecac2423..3761c6151f 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -451,7 +451,7 @@ class Core { // Delete previous message(s) with same ID if (folder.id.equals(message.folder)) { // Prevent adding/deleting message - db.message().setMessageUid(message.id, message.uid == null ? -1L : -message.uid); + db.message().setMessageUid(message.id, null); if (TextUtils.isEmpty(message.msgid)) { // Draft might be created somewhere else @@ -549,8 +549,6 @@ class Core { try { db.beginTransaction(); - List rules = db.rule().getEnabledRules(folder.id); - if (folder.id.equals(message.folder)) { if (EntityFolder.DRAFTS.equals(folder.type)) { Log.i(folder.name + " Setting id=" + message.id + " uid=" + uid);