Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #117 from asutherland/imap-unordered-hierarchy-fix
Browse files Browse the repository at this point in the history
Bug 835149 - [email/IMAP] folder list sync breaks if IMAP server (ex: courier) returns folders in non-hierarchy order. r=squib
  • Loading branch information
asutherland committed Jan 30, 2013
2 parents b603fd7 + 4d679f3 commit 61fc239
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions data/lib/imap.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,9 @@ ImapConnection.prototype.connect = function(loginCb) {
box.parent = parent;
}
box.displayName = decodeModifiedUtf7(name);
if (!curChildren[name])
curChildren[name] = box;
if (curChildren[name])
box.children = curChildren[name].children;
curChildren[name] = box;
}
break;
// QRESYNC (when successful) generates a "VANISHED (EARLIER) uids"
Expand Down

0 comments on commit 61fc239

Please sign in to comment.