From e92b908f775bb5e28120da80ae1e1b23907ea1d8 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 21 Oct 2023 20:04:48 +0200 Subject: [PATCH] POP3: delete flagged and hidden messages too --- app/src/main/java/eu/faircode/email/Core.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index c1a93a4bf8..10fd47763d 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -3306,9 +3306,9 @@ class Core { } for (TupleUidl uidl : known.values()) - if (!uidl.ui_flagged && - (!account.leave_on_device || - (uidl.ui_hide && (uidl.ui_busy == null || uidl.ui_busy < now)))) { + if (account.leave_on_device + ? uidl.ui_hide && (uidl.ui_busy == null || uidl.ui_busy < now) + : !uidl.ui_flagged) { EntityLog.log(context, account.name + " POP purging" + " uidl=" + uidl.uidl + " hidden=" + uidl.ui_hide); db.message().deleteMessage(uidl.id); @@ -3327,9 +3327,9 @@ class Core { } for (TupleUidl uidl : known.values()) - if (!uidl.ui_flagged && - (!account.leave_on_device || - (uidl.ui_hide && (uidl.ui_busy == null || uidl.ui_busy < now)))) { + if (account.leave_on_device + ? uidl.ui_hide && (uidl.ui_busy == null || uidl.ui_busy < now) + : !uidl.ui_flagged) { EntityLog.log(context, account.name + " POP purging" + " msgid=" + uidl.msgid + " hidden=" + uidl.ui_hide); db.message().deleteMessage(uidl.id);