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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    3
  • 0.1.0
    0

Package Sidebar

Install

npm i mailsearch

Weekly Downloads

3

Version

0.2.0

License

MIT

Last publish

Collaborators

  • kwakayama