Skip to content

Instantly share code, notes, and snippets.

@mduca
mduca / README.md
Created December 1, 2012 03:52
Sit and wait.. for mail

Sit and Wait.. for mail

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