Playing with IMAP in Node to make a node-webkit client