chirag04/mail-listener2

Support for autoreconnect

Closed this issue · 2 comments

Maybe it would be good idea to include option for autoreconnect?

node-imap does it internally i guess. Mail-listener2 is a wrapper on top of it.

I would recommend using auto-restart scripts like pm2 or forever and terminating the mail-listener process on disconnect or error.

I am willing to accept a pull request if you have better ideas though.