mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Fix mail shows empty mailboxes for some specific mail servers
This commit is contained in:
parent
87388aee27
commit
264d32d233
@ -1885,6 +1885,12 @@ class Mail
|
||||
{
|
||||
$sortResult = $this->icServer->search($_folderName, $filter, array(
|
||||
'sort' => $sortOrder,));
|
||||
|
||||
// Attempt another search without sorting filter if first try failed with
|
||||
// no result, as may some servers do not coupe well with sort option
|
||||
// eventhough they claim to support SORT capability.
|
||||
if (!isset($sortResult['count'])) $sortResult = $this->icServer->search($_folderName, $filter);
|
||||
|
||||
// if there is an Error, we assume that the server is not capable of sorting
|
||||
}
|
||||
catch(\Exception $e)
|
||||
|
Loading…
Reference in New Issue
Block a user