You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
464 B
JavaScript
21 lines
464 B
JavaScript
var ImapConnection = require("../lib/imap").ImapConnection,
|
|
imap = new ImapConnection({
|
|
username: "pingkitnet@gmail.com",
|
|
password: "ping5555566666",
|
|
host: "imap.gmail.com",
|
|
port: 993,
|
|
secure: true
|
|
});
|
|
|
|
|
|
imap.connect(function() {
|
|
imap.openBox('INBOX', false, function() {
|
|
//find uid by seqno
|
|
imap.search([["1:5", "8:10"]], function(e, results) {
|
|
console.log(e, results);
|
|
imap.logout();
|
|
});
|
|
})
|
|
});
|
|
|