mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-07 15:27:43 +08:00
Bugfix: double SELECT/EXAMINE useless
This commit is contained in:
parent
bfc8524876
commit
1587e4183d
1 changed files with 2 additions and 3 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue