Skip to content

Instantly share code, notes, and snippets.

@aenario
Last active August 29, 2015 14:27
Show Gist options
  • Save aenario/3add9fdf517c05f3c7ca to your computer and use it in GitHub Desktop.
Save aenario/3add9fdf517c05f3c7ca to your computer and use it in GitHub Desktop.
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