From 2b2bacfbca2d61b75252b2986edef44fde0e68c8 Mon Sep 17 00:00:00 2001 From: mscdex Date: Tue, 12 Feb 2013 10:46:01 -0500 Subject: [PATCH] when retrieving the mailbox list, support children that may come before their parents closes #163 --- lib/imap.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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':