when retrieving the mailbox list, support children that may come before their parents

closes #163
fork
mscdex 12 years ago
parent f2ec7d6071
commit 2b2bacfbca

@ -465,8 +465,9 @@ ImapConnection.prototype.connect = function(loginCb) {
} }
box.parent = parent; box.parent = parent;
} }
if (!curChildren[name]) if (curChildren[name])
curChildren[name] = box; box.children = curChildren[name].children;
curChildren[name] = box;
} }
break; break;
case 'SEARCH': case 'SEARCH':

Loading…
Cancel
Save