Updated to work with node-imap v0.8.0