fix example mail keeping

pull/16/head
ClaraCrazy 2024-10-15 10:50:15 +02:00
parent a4c2a9aa72
commit 71f1e401af
No known key found for this signature in database
GPG Key ID: EBBC896ACB497011
1 changed files with 1 additions and 1 deletions

View File

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