diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Imap/ImapClient.php b/snappymail/v/0.0.0/app/libraries/MailSo/Imap/ImapClient.php index 1eb567bc3..27bc76d2e 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Imap/ImapClient.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Imap/ImapClient.php @@ -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 } } }