POP3: delete flagged and hidden messages too

This commit is contained in:
M66B 2023-10-21 20:04:48 +02:00
parent c6bd6659d3
commit e92b908f77
1 changed files with 6 additions and 6 deletions

View File

@ -3306,9 +3306,9 @@ class Core {
} }
for (TupleUidl uidl : known.values()) for (TupleUidl uidl : known.values())
if (!uidl.ui_flagged && if (account.leave_on_device
(!account.leave_on_device || ? uidl.ui_hide && (uidl.ui_busy == null || uidl.ui_busy < now)
(uidl.ui_hide && (uidl.ui_busy == null || uidl.ui_busy < now)))) { : !uidl.ui_flagged) {
EntityLog.log(context, account.name + " POP purging" + EntityLog.log(context, account.name + " POP purging" +
" uidl=" + uidl.uidl + " hidden=" + uidl.ui_hide); " uidl=" + uidl.uidl + " hidden=" + uidl.ui_hide);
db.message().deleteMessage(uidl.id); db.message().deleteMessage(uidl.id);
@ -3327,9 +3327,9 @@ class Core {
} }
for (TupleUidl uidl : known.values()) for (TupleUidl uidl : known.values())
if (!uidl.ui_flagged && if (account.leave_on_device
(!account.leave_on_device || ? uidl.ui_hide && (uidl.ui_busy == null || uidl.ui_busy < now)
(uidl.ui_hide && (uidl.ui_busy == null || uidl.ui_busy < now)))) { : !uidl.ui_flagged) {
EntityLog.log(context, account.name + " POP purging" + EntityLog.log(context, account.name + " POP purging" +
" msgid=" + uidl.msgid + " hidden=" + uidl.ui_hide); " msgid=" + uidl.msgid + " hidden=" + uidl.ui_hide);
db.message().deleteMessage(uidl.id); db.message().deleteMessage(uidl.id);