mscdex / node-imap

An IMAP client module for node.js.
MIT License
2.14k stars 379 forks source link

Does Node-IMAP has reconnecting mechanism? #877

Open josephusmv opened 2 years ago

josephusmv commented 2 years ago

In my project, I am using node-imp to periodically fetching the new comming emails in a webserver application. I keep the IMAP instance connected and set timeout to call openBox('INBOX') periodically.

But I am concerned that the IMAP may disconnect from the IMAP server.

So I wish to known what is the best practice in such scenario? Would the IMAP connection be disconnected after a very long time running? Does IMAP do the auto-reconnecting when it disconnected? Or I need to handle the reconnect myself?

Thanks for any helps.

steffenstolze commented 1 year ago

@josephusmv have you ever found an answer to that? Did you implement long running IMAP clients and what has been your experience? Much appreciated!

MadhabaPatra commented 1 year ago

@steffenstolze @josephusmv i am also curious about the solution. Have you guys found any way to approach this scenario ?