mailsearch
v0.2.0
Published
A Simple node-imap and mailparser example
Downloads
5
Readme
node-gmail-example
A Simple node-imap and mailparser example
##Usage
var MailSearch = require('mailsearch');
var imapConfig = {
user: '[email protected]',
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.