From 08cdba4caaa6b1906792fb3913ef2f9631664a4b Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 25 Oct 2021 09:48:11 +0200 Subject: [PATCH] Added fail-safe --- 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 dc24925368..401e43911d 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -1608,6 +1608,10 @@ class Core { if (found && muid == message.uid) continue; + MessageHelper helper = new MessageHelper((MimeMessage) iexisting, context); + if (!message.msgid.equals(helper.getMessageID())) + continue; + Log.i(folder.name + " deleting uid=" + muid); try { if (perform_expunge)