jcreigno/nodejs-mail-notifier

'mail' event triggered more than mail actually received

Closed this issue · 2 comments

I have two unread mail in mail box but the mail event triggered 4 times.

Yep, seeing the same here. One message on the server and the mail even is being triggered 2 times.

Yes, I can reproduce it too. It seems that node-imap changed the way they fire the mail event on imap connection. This might be related to the recent node-imap upgrade.

Node-imap fires a 'mail' event when opening the mailbox, this triggers 2 scans and 2 fetches.