diff --git a/mail/inc/class.mail_tree.inc.php b/mail/inc/class.mail_tree.inc.php index b35b4ca0c4..0642684eec 100644 --- a/mail/inc/class.mail_tree.inc.php +++ b/mail/inc/class.mail_tree.inc.php @@ -240,7 +240,7 @@ class mail_tree } //List of folders - $foldersList = $this->ui->mail_bo->getFolderArrays(null, true, $_allInOneGo?0:2,$_subscribedOnly, true); + $foldersList = $this->ui->mail_bo->getFolderArrays(null, true, $_allInOneGo?0:2,$_subscribedOnly, false); foreach ($foldersList as &$folder) { $path = $parent = $parts = explode($folder['delimiter'], $folder['MAILBOX']); diff --git a/mail/js/app.js b/mail/js/app.js index f84b8d6e97..2d6018e0d0 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -169,7 +169,10 @@ app.classes.mail = AppJS.extend( var nm = this.et2.getWidgetById(this.nm_index); this.mail_isMainWindow = true; this.mail_disablePreviewArea(true); - + + //Get initial folder status + this.mail_refreshFolderStatus(undefined,undefined,false); + // Bind to nextmatch refresh to update folder status if(nm != null && (typeof jQuery._data(nm).events=='undefined'||typeof jQuery._data(nm).events.refresh == 'undefined')) {