From a419c5dfe9a4612b9708b7e79605201632067570 Mon Sep 17 00:00:00 2001 From: Lucky-ESA Date: Thu, 7 Nov 2024 20:32:09 +0100 Subject: [PATCH] Crash if uid is empty for new emails --- README.md | 1 + lib/imap_event.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 96bc25c..469dbe9 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ **WORK IN PROGRESS** - (Lucky-ESA) New design for settings page added +- (Lucky-ESA) Crash if uid is empty for new emails ### 0.2.1 (2024-09-16) diff --git a/lib/imap_event.js b/lib/imap_event.js index 34a5e23..cf0e050 100644 --- a/lib/imap_event.js +++ b/lib/imap_event.js @@ -538,7 +538,7 @@ module.exports = { */ newMails(client, uid, what, sort) { this.log.debug(sort); - this.log.info("newMail: " + JSON.stringify(uid)); + this.log.debug("newMail: " + JSON.stringify(uid)); for (const uids of uid) { let attrs; let header_mail;