add debug statement to failing `to` if-branch

main
ClaraCrazy 2024-12-03 08:00:13 +01:00
parent 367c4a688b
commit e158fac414
No known key found for this signature in database
GPG Key ID: EBBC896ACB497011
1 changed files with 2 additions and 0 deletions

View File

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