add debug statement to failing `to` if-branch
parent
367c4a688b
commit
e158fac414
|
@ -29,6 +29,8 @@ class MailRepository {
|
||||||
add(to, mailSummary) {
|
add(to, mailSummary) {
|
||||||
if (to !== undefined) {
|
if (to !== undefined) {
|
||||||
this.mailSummaries.set(to.toLowerCase(), mailSummary)
|
this.mailSummaries.set(to.toLowerCase(), mailSummary)
|
||||||
|
} else {
|
||||||
|
debug('IMAP reported no recipient for mail, ignoring', mailSummary)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue