From 71f1e401af072a6ae45880dffd85ac5fdfa38e31 Mon Sep 17 00:00:00 2001 From: ClaraCrazy Date: Tue, 15 Oct 2024 10:50:15 +0200 Subject: [PATCH] fix example mail keeping --- application/imap-service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/imap-service.js b/application/imap-service.js index eb45f0a..52819e9 100644 --- a/application/imap-service.js +++ b/application/imap-service.js @@ -222,7 +222,7 @@ class ImapService extends EventEmitter { const uidsWithHeaders = await this._getMailHeaders(uids) uidsWithHeaders.forEach(mail => { - if (mail['attributes'].date > DeleteOlderThan || this.config.http.examples.uids.includes(parseInt(mail['attributes'].id))) { + if (mail['attributes'].date > DeleteOlderThan || this.config.http.examples.uids.includes(parseInt(mail['attributes'].uid))) { uids = uids.filter(uid => uid !== mail['attributes'].uid) } })