Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117827245
D2143.1775300176.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D2143.1775300176.diff
View Options
diff --git a/plugins/libkolab/lib/kolab_storage.php b/plugins/libkolab/lib/kolab_storage.php
--- a/plugins/libkolab/lib/kolab_storage.php
+++ b/plugins/libkolab/lib/kolab_storage.php
@@ -859,27 +859,8 @@
return $folders;
}
- $prefix = $root . $mbox;
$regexp = '/^' . preg_quote($filter, '/') . '(\..+)?$/';
- // get folders types for all folders
- $folderdata = self::folders_typedata($prefix);
-
- if (!is_array($folderdata)) {
- return array();
- }
-
- // In some conditions we can skip LIST command (?)
- if (!$subscribed && $filter != 'mail' && $prefix == '*') {
- foreach ($folderdata as $folder => $type) {
- if (!preg_match($regexp, $type)) {
- unset($folderdata[$folder]);
- }
- }
-
- return self::$imap->sort_folder_list(array_keys($folderdata), true);
- }
-
// Get folders list
if ($subscribed) {
$folders = self::_imap_list_subscribed($root, $mbox);
@@ -895,7 +876,7 @@
// Filter folders list
foreach ($folders as $idx => $folder) {
- $type = $folderdata[$folder];
+ $type = self::folder_type($folder);
if ($filter == 'mail' && empty($type)) {
continue;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 10:56 AM (2 d, 22 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18829106
Default Alt Text
D2143.1775300176.diff (1 KB)
Attached To
Mode
D2143: Remove folder typedata in-memory cache
Attached
Detach File
Event Timeline