mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Resolve #1438
This commit is contained in:
parent
e02cb38974
commit
5a69d1e241
1 changed files with 6 additions and 2 deletions
|
|
@ -59,21 +59,25 @@ trait Folders
|
|||
|
||||
$oNamespaces = $this->ImapClient()->GetNamespaces();
|
||||
if ($oNamespaces) {
|
||||
if (isset($oNamespaces->aOtherUsers[0])) {
|
||||
if (isset($oNamespaces->aOtherUsers[0])) try {
|
||||
$oCollection = $this->MailClient()->Folders($oNamespaces->aOtherUsers[0]['prefix'], '*', $HideUnsubscribed);
|
||||
if ($oCollection) {
|
||||
foreach ($oCollection as $oFolder) {
|
||||
$oFolderCollection[$oFolder->FullName] = $oFolder;
|
||||
}
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
// https://github.com/the-djmaze/snappymail/issues/1438
|
||||
}
|
||||
if (isset($oNamespaces->aShared[0])) {
|
||||
if (isset($oNamespaces->aShared[0])) try {
|
||||
$oCollection = $this->MailClient()->Folders($oNamespaces->aShared[0]['prefix'], '*', $HideUnsubscribed);
|
||||
if ($oCollection) {
|
||||
foreach ($oCollection as $oFolder) {
|
||||
$oFolderCollection[$oFolder->FullName] = $oFolder;
|
||||
}
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
// https://github.com/the-djmaze/snappymail/issues/1438
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue