Do not ignore INBOX for the displayed folder hierarchy

Summary: Previously INBOX.Archive and Archive were indistinguishable.

Differential Revision: https://git.kolab.org/D2092
This commit is contained in:
Christian Mollekopf 2021-01-13 19:04:07 +01:00
parent d36017592a
commit d4c00a9555
2 changed files with 2 additions and 2 deletions

View file

@ -185,7 +185,7 @@ class kolab_activesync_ui
$names = array();
foreach ($a_folders as $folder) {
$foldername = $origname = preg_replace('/^INBOX »\s+/', '', kolab_storage::object_prettyname($folder));
$foldername = $origname = kolab_storage::object_prettyname($folder);
// find folder prefix to truncate (the same code as in kolab_addressbook plugin)
for ($i = count($names)-1; $i >= 0; $i--) {

View file

@ -563,7 +563,7 @@ class kolab_delegation extends rcube_plugin
$names = array();
foreach ($a_folders as $folder) {
$foldername = $origname = preg_replace('/^INBOX »\s+/', '', kolab_storage::object_prettyname($folder));
$foldername = $origname = kolab_storage::object_prettyname($folder);
// find folder prefix to truncate (the same code as in kolab_addressbook plugin)
for ($i = count($names)-1; $i >= 0; $i--) {