From 159cd9942e7c2ce93873143bdb740891d59cd5b7 Mon Sep 17 00:00:00 2001 From: ClaraCrazy Date: Mon, 11 Nov 2024 18:51:00 +0100 Subject: [PATCH] Fix manual deletion The fact this has gone unnoticed for so long is genuinely pathetic --- 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 e6f5324..80b218a 100644 --- a/application/imap-service.js +++ b/application/imap-service.js @@ -244,7 +244,7 @@ class ImapService extends EventEmitter { */ async deleteSpecificEmail(uid) { debug(`deleting mails ${uid}`) - if (!this.config.http.examples.uids.includes(parseInt(uid))) { + if (!this.config.email.examples.uids.includes(parseInt(uid))) { await this.connection.deleteMessage(uid) console.log(`deleted mail with UID: ${uid}.`) this.emit(ImapService.EVENT_DELETED_MAIL, uid)