diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 90bb2b5de0..ee836e64a3 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -383,7 +383,8 @@ class Core { // Delete previous message(s) with same ID if (folder.id.equals(message.folder)) { - db.message().setMessageUid(message.id, null); + // Prevent deleting message + db.message().setMessageUid(message.id, -1L); Message[] ideletes = ifolder.search(new MessageIDTerm(message.msgid)); for (Message idelete : ideletes) {