Bugfix: double SELECT/EXAMINE useless

This commit is contained in:
djmaze 2022-01-06 16:23:52 +01:00
parent bfc8524876
commit 1587e4183d

View file

@ -732,12 +732,11 @@ class ImapClient extends \MailSo\Net\NetClient
$aParams[] = $aSelectParams;
}
$oResult = new FolderInformation($sFolderName, $bIsWritable);
/**
* IMAP4rev2 SELECT/EXAMINE are now required to return an untagged LIST response.
*/
$oResponseCollection = $this->SendRequestGetResponse($bIsWritable ? 'SELECT' : 'EXAMINE', $aParams);
$oResult = new FolderInformation($sFolderName, $bIsWritable);
$this->SendRequest($bIsWritable ? 'SELECT' : 'EXAMINE', $aParams);
foreach ($this->yieldUntaggedResponses() as $oResponse) {
if (!$oResult->setStatusFromResponse($oResponse)) {