Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

mailsearch

0.2.0 • Public • Published

node-gmail-example

A Simple node-imap and mailparser example

Usage

var MailSearch = require('mailsearch');

var imapConfig = {
  user: 'hans.wurst@gmail.com',
  password: 'Zwiebelrostbraten',
  host: 'imap.gmail.com',
  port: 993,
  tls: true
}

var ms = new MailSearch( imapConfig );
ms.search('INBOX', [ 'UNSEEN', ['FROM', 'ifttt.com'] ]).then(function(mails) {
  console.log('Total Inbox Count: :', mails.length);
});

License

Copyright (c) 2014 . Licensed under the MIT license.

Keywords

none

install

npm i mailsearch

Downloadsweekly downloads

1

version

0.2.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability