Fix manual deletion

The fact this has gone unnoticed for so long is genuinely pathetic
This commit is contained in:
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

View file

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