It happens when I used https://github.com/mscdex/node-imap on io.js 1.4.1 (on mac os). On <= 1.3.0 node-imap worked good.