mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-25 07:16:21 +08:00
Resolve #1430
This commit is contained in:
parent
9f2b2e50d7
commit
b3e1fe1320
1 changed files with 16 additions and 13 deletions
|
@ -55,8 +55,10 @@ trait Folders
|
|||
$HideUnsubscribed = (bool) $oSettingsLocal->GetConf('HideUnsubscribed', $HideUnsubscribed);
|
||||
}
|
||||
|
||||
$oNamespaces = $this->ImapClient()->GetNamespaces();
|
||||
$oFolderCollection = $this->MailClient()->Folders('', '*', $HideUnsubscribed);
|
||||
|
||||
$oNamespaces = $this->ImapClient()->GetNamespaces();
|
||||
if ($oNamespaces) {
|
||||
if (isset($oNamespaces->aOtherUsers[0])) {
|
||||
$oCollection = $this->MailClient()->Folders($oNamespaces->aOtherUsers[0]['prefix'], '*', $HideUnsubscribed);
|
||||
if ($oCollection) {
|
||||
|
@ -73,6 +75,7 @@ trait Folders
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($oFolderCollection) {
|
||||
$aQuota = null;
|
||||
|
@ -94,7 +97,7 @@ trait Folders
|
|||
array(
|
||||
'quotaUsage' => $aQuota ? $aQuota[0] * 1024 : null,
|
||||
'quotaLimit' => $aQuota ? $aQuota[1] * 1024 : null,
|
||||
'namespace' => $oNamespaces->GetPersonalPrefix(),
|
||||
'namespace' => $oNamespaces ? $oNamespaces->GetPersonalPrefix() : '',
|
||||
'namespaces' => $oNamespaces,
|
||||
'capabilities' => $aCapabilities
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue