diff --git a/plugins/kolab_activesync/kolab_activesync_ui.php b/plugins/kolab_activesync/kolab_activesync_ui.php --- a/plugins/kolab_activesync/kolab_activesync_ui.php +++ b/plugins/kolab_activesync/kolab_activesync_ui.php @@ -183,23 +183,10 @@ $checkbox_sync = new html_checkbox(array('name' => 'subscribed[]', 'class' => 'subscription')); $checkbox_alarm = new html_checkbox(array('name' => 'alarm[]', 'class' => 'alarm')); - $names = array(); foreach ($a_folders as $folder) { - $foldername = $origname = preg_replace('/^INBOX »\s+/', '', 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--) { - if (strpos($foldername, $names[$i].' » ') === 0) { - $length = strlen($names[$i].' » '); - $prefix = substr($foldername, 0, $length); - $count = count(explode(' » ', $prefix)); - $foldername = str_repeat('  ', $count-1) . '» ' . substr($foldername, $length); - break; - } - } + $foldername = kolab_storage::object_prettyname($folder); $folder_id = 'rcmf' . rcube_utils::html_identifier($folder); - $names[] = $origname; $classes = array('mailbox'); if ($folder_class = $this->rc->folder_classname($folder)) {