Encode namespace with utf7 in getBoxes()

fork
Chotiwat Chawannakul 11 years ago
parent 2b2bacfbca
commit eec89fb6ec

@ -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) {

Loading…
Cancel
Save