inboxthunks

0.0.1 • Public • Published

inboxthunks

Thunkified imap client

Based on inbox

install

npm install inboxthunks

example

var inbox = require ('inboxthunks');
var co = require ('co');
 
var client = inbox.init(false, 'imap.gmail.com', {
  secureConnection: true,
  auth : {
    user : 'mail@gmail.com',
    pass : 'pass'
  }
});
 
co (function * (){
  // try
  yield client.connect();
  // catch the error
 
  // list mailboxes or other api call
  var mailboxes = yield client.listMailboxes();
  console.log (mailboxes);
  
  // try
  yield client.close();
  // catch the error
}

license

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1

Package Sidebar

Install

npm i inboxthunks

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • diorahman