Fix construction of mail folders tree

This commit is contained in:
Francis Lachapelle
2014-03-14 15:34:43 -04:00
parent e968be8024
commit b8f239bf34
2 changed files with 2 additions and 3 deletions
+1 -3
View File
@@ -2887,11 +2887,9 @@ Mailbox.prototype = {
findMailboxByName: function(name) {
var mailbox = null;
var searchName = name.asCSSIdentifier();
var i = 0;
while (!mailbox && i < this.children.length)
if (this.children[i].name == searchName
if (this.children[i].name == name
|| this.children[i].displayName == name)
mailbox = this.children[i];
else