node-imap icon indicating copy to clipboard operation
node-imap copied to clipboard

Does Node-IMAP has reconnecting mechanism?

Open josephusmv opened this issue 2 years ago • 2 comments

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.

josephusmv avatar May 27 '22 13:05 josephusmv

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

steffenstolze avatar Jan 27 '23 15:01 steffenstolze

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

MadhabaPatra avatar Jan 31 '23 20:01 MadhabaPatra