mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-28 14:45:28 +00:00
Fix construction of mail folders tree
This commit is contained in:
@@ -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)
|
||||
------------------
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user