Don't call IMAP METADATA on LSUB

This commit is contained in:
djmaze 2021-10-28 09:48:22 +02:00
parent e289532699
commit 6c84313c98

View file

@ -491,7 +491,7 @@ class ImapClient extends \MailSo\Net\NetClient
$aReturn = $this->SendRequestGetResponse($sCmd, $aParameters)->getFoldersResult($sCmd, $bUseListStatus);
// RFC 5464
if ($this->IsSupported('METADATA')) {
if (!$bIsSubscribeList && $this->IsSupported('METADATA')) {
foreach ($aReturn as $oFolder) {
try {
foreach ($this->getMetadata($oFolder->FullNameRaw(), ['/shared', '/private'], ['DEPTH'=>'infinity']) as $key => $value) {