Skip to content

youngmountain/mailsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mailsearch Dependency Status

A Simple node-imap and mailparser example

Install

$ npm install --save mailsearch

##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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors