An event machine based IMAP client