node-imap
node-imap copied to clipboard
No timeout for openBox
We were having an issue where occasionally opening a box would cause the system to hang. We fixed this by implementing a timeout around this code that forces it to close the current opened box and then try again.
Might be useful to implement a timeout in node-imap that works in the same sort of way as connection timeouts.
If something like that were to be added it would probably be available to all requests, not just openBox(), but I'm not sure how common of a problem this is ...
As previously mentioned, a pull request to add a timeout like this in a sane way for all requests would be welcome.