From 975c6916e5d4db0e2bd646f16fb9cfd02ae66bef Mon Sep 17 00:00:00 2001 From: Robin Qu Date: Wed, 22 Aug 2012 10:42:10 +0800 Subject: [PATCH] remove test; fix small bugs --- lib/imap.utilities.js | 3 +-- test/test-seqno-serach.js | 20 -------------------- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 test/test-seqno-serach.js diff --git a/lib/imap.utilities.js b/lib/imap.utilities.js index 2e7043e..9e8bfa7 100644 --- a/lib/imap.utilities.js +++ b/lib/imap.utilities.js @@ -369,7 +369,7 @@ exports.buildSearchQuery = function(options, extensions, isOrChild) { // last hope it's a seqno set // http://tools.ietf.org/html/rfc3501#section-6.4.4 var seqnos = (args ? [criteria].concat(args) : [criteria]); - exports.validateUIDList([seqnos]); + exports.validateUIDList(seqnos); searchargs += modifier + seqnos.join(','); } catch(e) { throw new Error('Unexpected search option: ' + criteria); @@ -379,7 +379,6 @@ exports.buildSearchQuery = function(options, extensions, isOrChild) { if (isOrChild) break; } - console.log(searchargs); return searchargs; } diff --git a/test/test-seqno-serach.js b/test/test-seqno-serach.js deleted file mode 100644 index e21bed8..0000000 --- a/test/test-seqno-serach.js +++ /dev/null @@ -1,20 +0,0 @@ -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(); - }); - }) -}); -