Used example coffeescript code from bergie's gist. Check it out!
Once configured checkmail.js
listens for new mail. Console log will display from
, subject
, and body
then wait for more mail to parse. Thanks to NodeJS's event loop this will happen over and over again.
node-imap and mailparser are used heavily. Make sure these modules are installed.
npm install imap
npm install mailparser