Last active
August 29, 2015 14:27
-
-
Save aenario/3add9fdf517c05f3c7ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imap = require 'imap' | |
imap = new Imap | |
user: 'xxxxx@gmail.com', | |
password: '*****', | |
host: 'imap.gmail.com', | |
port: 993, | |
tls: true | |
imap.once 'error', (err) -> console.log err | |
imap.once 'ready', -> imap.getBoxes (err, arbo) -> | |
console.log err, arbo | |
imap.close() | |
imap.connect() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment