Skip recursive GETMETADATA command for personal namespace folders if they have no children
This commit is contained in:
parent
4c39157ca1
commit
b03bdd88b7
1 changed files with 2 additions and 1 deletions
|
@ -1049,7 +1049,8 @@ class kolab_storage
|
|||
foreach ((array)self::$imap->get_metadata('%', $type_keys) as $folder => $metadata) {
|
||||
if (!in_array($folder, $blacklist)) {
|
||||
$folderdata[$folder] = $metadata;
|
||||
if ($data = self::$imap->get_metadata($folder.$delimiter.'*', $type_keys)) {
|
||||
$opts = self::$imap->folder_attributes($folder);
|
||||
if (!in_array('\\HasNoChildren', $opts) && ($data = self::$imap->get_metadata($folder.$delimiter.'*', $type_keys))) {
|
||||
$folderdata += $data;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue