Encode namespace with utf7 in getBoxes()

fork
Chotiwat Chawannakul 12 years ago
parent 2b2bacfbca
commit eec89fb6ec

@ -797,7 +797,7 @@ ImapConnection.prototype.getBoxes = function(namespace, cb) {
namespace = ''; namespace = '';
} }
this._send((!this._serverSupports('XLIST') ? 'LIST' : 'XLIST') this._send((!this._serverSupports('XLIST') ? 'LIST' : 'XLIST')
+ ' "' + utils.escape(namespace) + '" "*"', cb); + ' "' + utils.escape(utf7.encode(''+namespace)) + '" "*"', cb);
}; };
ImapConnection.prototype.addBox = function(name, cb) { ImapConnection.prototype.addBox = function(name, cb) {

Loading…
Cancel
Save