| | |
| | | $realnames = (bool)$attrib['realnames']; |
| | | $msgcounts = $this->storage->get_cache('messagecount'); |
| | | $collapsed = $this->config->get('collapsed_folders'); |
| | | |
| | | if ($this->config->get('show_real_foldernames')) |
| | | $realnames = true; |
| | | $realnames = $this->config->get('show_real_foldernames'); |
| | | |
| | | $out = ''; |
| | | foreach ($arrFolders as $folder) { |
| | |
| | | */ |
| | | public function localize_foldername($name, $with_path = true) |
| | | { |
| | | $realnames = $this->config->get('show_real_foldernames'); |
| | | |
| | | // try to localize path of the folder |
| | | if ($with_path) { |
| | | if ($with_path && !$realnames) { |
| | | $storage = $this->get_storage(); |
| | | $delimiter = $storage->get_hierarchy_delimiter(); |
| | | $path = explode($delimiter, $name); |
| | |
| | | if ($count > 1) { |
| | | for ($i = 0; $i < $count; $i++) { |
| | | $folder = implode($delimiter, array_slice($path, 0, -$i)); |
| | | if (!$this->config->get('show_real_foldernames') && |
| | | ($folder_class = $this->folder_classname($folder))) { |
| | | if ($folder_class = $this->folder_classname($folder)) { |
| | | $name = implode($delimiter, array_slice($path, $count - $i)); |
| | | return $this->gettext($folder_class) . $delimiter . rcube_charset::convert($name, 'UTF7-IMAP'); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | if (!$this->config->get('show_real_foldernames') && |
| | | ($folder_class = $this->folder_classname($name))) { |
| | | if (!$realnames && ($folder_class = $this->folder_classname($name))) { |
| | | return $this->gettext($folder_class); |
| | | } |
| | | else { |
| | | return rcube_charset::convert($name, 'UTF7-IMAP'); |
| | | } |
| | | |
| | | return rcube_charset::convert($name, 'UTF7-IMAP'); |
| | | } |
| | | |
| | | |