POP3: delete flagged and hidden messages too

pull/214/head
M66B 1 year ago
parent c6bd6659d3
commit e92b908f77

@ -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);

Loading…
Cancel
Save