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
View File
@@ -11,6 +11,7 @@ Bug fixes
- fixed unseen count for folders beginning with a digit and used in Sieve filters (#2652)
- fixed decoding of HTML entities in reminder alerts (#2659)
- fixed check for resource conflict when creating an event in the resource's calendar (#2541)
- fixed construction of mail folders tree
2.2.1 (2014-03-07)
------------------
+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