mscdex/node-imap — pull request #74 by chotiwat (2012-08-02 10:51:47+00:00)
Title: Allow STATUS command to be sent without having to wait for server response

According to issues #73, I can call multiple status() commands concurrently and get correct results. However, each STATUS command will be sent after the previous command gets complete response from the server. This makes calling them concurrently equivalent to calling them one after another inside each previous status() command's callback. So it takes N round trips for N concurrent status() command calls.

This commit tries to allow STATUS command to be sent to the server without having to wait for server response. I have added a flag for each request specifying that it can be sent to the server immediately.

I'm not sure whether it will break anything else, or there may be a simpler and more elegant solution.