From 0178351623215450e1f134ca26f4427dfd17e479 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 13 Apr 2020 12:06:18 +0200 Subject: [PATCH] Allow empty POP3 trash --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 2241a51b84..0999c172ae 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -6452,7 +6452,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. for (Long id : ids) { EntityMessage message = db.message().getMessage(id); if (message != null && - (message.uid != null || !TextUtils.isEmpty(message.msgid))) { + (account.protocol == EntityAccount.TYPE_POP || + message.uid != null || !TextUtils.isEmpty(message.msgid))) { Log.i("Deleting account=" + account.id + " folder=" + folder.id + " message=" + message.id); EntityOperation.queue(context, message, EntityOperation.DELETE); }