mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 03:59:21 +03:00
Bugfix: ignore getMetadata() Exceptions
This commit is contained in:
parent
1bb7139d46
commit
934431c6be
1 changed files with 6 additions and 2 deletions
|
|
@ -480,8 +480,12 @@ class ImapClient extends \MailSo\Net\NetClient
|
|||
// RFC 5464
|
||||
if ($this->IsSupported('METADATA')) {
|
||||
foreach ($aReturn as $oFolder) {
|
||||
foreach ($this->getMetadata($oFolder->FullNameRaw(), ['/shared', '/private'], ['DEPTH'=>'infinity']) as $key => $value) {
|
||||
$oFolder->SetMetadata($key, $value);
|
||||
try {
|
||||
foreach ($this->getMetadata($oFolder->FullNameRaw(), ['/shared', '/private'], ['DEPTH'=>'infinity']) as $key => $value) {
|
||||
$oFolder->SetMetadata($key, $value);
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
// Ignore error
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue