From eec89fb6ecc4085385fe68568b2f1f08c7262a33 Mon Sep 17 00:00:00 2001 From: Chotiwat Chawannakul Date: Thu, 21 Feb 2013 13:44:27 +0700 Subject: [PATCH] Encode namespace with utf7 in getBoxes() --- lib/imap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/imap.js b/lib/imap.js index b68669c..2929ce4 100644 --- a/lib/imap.js +++ b/lib/imap.js @@ -797,7 +797,7 @@ ImapConnection.prototype.getBoxes = function(namespace, cb) { namespace = ''; } this._send((!this._serverSupports('XLIST') ? 'LIST' : 'XLIST') - + ' "' + utils.escape(namespace) + '" "*"', cb); + + ' "' + utils.escape(utf7.encode(''+namespace)) + '" "*"', cb); }; ImapConnection.prototype.addBox = function(name, cb) {