Fix manual deletion

The fact this has gone unnoticed for so long is genuinely pathetic
main
ClaraCrazy 2024-11-11 18:51:00 +01:00
parent 919c770fe3
commit 159cd9942e
No known key found for this signature in database
GPG Key ID: EBBC896ACB497011
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ class ImapService extends EventEmitter {
*/ */
async deleteSpecificEmail(uid) { async deleteSpecificEmail(uid) {
debug(`deleting mails ${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) await this.connection.deleteMessage(uid)
console.log(`deleted mail with UID: ${uid}.`) console.log(`deleted mail with UID: ${uid}.`)
this.emit(ImapService.EVENT_DELETED_MAIL, uid) this.emit(ImapService.EVENT_DELETED_MAIL, uid)