From dbe569e0651a60fd8e91fd6d33f955270450f02b Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 13 May 2020 07:53:08 +0200 Subject: [PATCH] Prevent POP3 inbox delete --- app/src/main/java/eu/faircode/email/Core.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index f604af658a..eb06732118 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -958,6 +958,10 @@ class Core { message.ui_flagged = false; message.ui_hide = false; + // Prevent deleting message from inbox + if (message.uidl == null) + message.uidl = message.msgid; + db.message().updateMessage(message); }