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) } })