From e158fac4147449d8ab4b1b659d6cf0c4c7e3f0e7 Mon Sep 17 00:00:00 2001 From: ClaraCrazy Date: Tue, 3 Dec 2024 08:00:13 +0100 Subject: [PATCH] add debug statement to failing `to` if-branch --- domain/mail-repository.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/domain/mail-repository.js b/domain/mail-repository.js index 4b8a0c2..149b3f0 100644 --- a/domain/mail-repository.js +++ b/domain/mail-repository.js @@ -29,6 +29,8 @@ class MailRepository { add(to, mailSummary) { if (to !== undefined) { this.mailSummaries.set(to.toLowerCase(), mailSummary) + } else { + debug('IMAP reported no recipient for mail, ignoring', mailSummary) } }