From 59d3428c2e3262c006e4a413a509ac9f8d12451f Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 18 May 2020 19:59:15 +0200 Subject: [PATCH] Fixed POP3 UIDL delete --- app/src/main/java/eu/faircode/email/Core.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 6652c3ea27..1718229406 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -1070,7 +1070,8 @@ class Core { msgid = helper.getMessageID(); Log.i("POP searching=" + message.msgid + " iterate=" + msgid); - if (msgid != null && msgid.equals(message.msgid)) { + if (msgid != null && + (msgid.equals(message.uidl) || msgid.equals(message.msgid))) { found = true; Log.i(folder.name + " POP delete=" + msgid); imessage.setFlag(Flags.Flag.DELETED, true);