diff --git a/lib/imap.js b/lib/imap.js index a5e5faf..b68669c 100644 --- a/lib/imap.js +++ b/lib/imap.js @@ -465,8 +465,9 @@ ImapConnection.prototype.connect = function(loginCb) { } box.parent = parent; } - if (!curChildren[name]) - curChildren[name] = box; + if (curChildren[name]) + box.children = curChildren[name].children; + curChildren[name] = box; } break; case 'SEARCH':