title: Waiting for email to arrive using node-imap
body: <p>I'm using node-imap as a mail solution, but I need a way of waiting until an email arrives.  In <a href="https://stackoverflow.com/questions/19173364/get-new-email-with-node-imap-nodejs">this</a> post, someone referenced using the IMAP IDLE command to do this.  I was wondering if anybody has had success with this, and how you would suggest incorporating that into the example code provided in the node-imap readme?</p>