From 1587e4183d32fe4de45fbace7224bf88eb29a03d Mon Sep 17 00:00:00 2001 From: djmaze <> Date: Thu, 6 Jan 2022 16:23:52 +0100 Subject: [PATCH] Bugfix: double SELECT/EXAMINE useless --- snappymail/v/0.0.0/app/libraries/MailSo/Imap/ImapClient.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 5830d3e90..579b196be 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 @@ -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)) {