Merge pull request #145 from wavify/fix-number-boxname

Mailbox name gets convert to number
fork
Brian White 12 years ago
commit 2e33378ae0

@ -428,7 +428,7 @@ ImapConnection.prototype.connect = function(loginCb) {
// m.mailbox = mailbox name (string)
m.flags = (m.flags ? m.flags.toUpperCase().split(' ') : []);
m.delimiter = parsers.convStr(m.delimiter, indata.literals);
m.mailbox = parsers.convStr(m.mailbox, indata.literals);
m.mailbox = '' + parsers.convStr(m.mailbox, indata.literals);
if (self.delimiter === undefined)
self.delimiter = parsers.convStr(m.delimiter, indata.literals);
else {
@ -475,7 +475,7 @@ ImapConnection.prototype.connect = function(loginCb) {
case 'STATUS':
// m.mailbox = mailbox name (string)
// m.attributes = expression list (k=>v pairs) of mailbox attributes
m.mailbox = parsers.convStr(m.mailbox, indata.literals);
m.mailbox = '' + parsers.convStr(m.mailbox, indata.literals);
var ret = {
name: m.mailbox,
uidvalidity: 0,

Loading…
Cancel
Save