From 239c7c28fbaae7962dce212d5619d89fcd649085 Mon Sep 17 00:00:00 2001 From: djmaze <> Date: Thu, 6 Jan 2022 16:20:10 +0100 Subject: [PATCH] Replace some FolderSelect to FolderExamine because they should be READ-ONLY --- .../v/0.0.0/app/libraries/MailSo/Mail/MailClient.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Mail/MailClient.php b/snappymail/v/0.0.0/app/libraries/MailSo/Mail/MailClient.php index e8c5d89bc..3711b8a20 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Mail/MailClient.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Mail/MailClient.php @@ -222,7 +222,7 @@ class MailClient throw new \MailSo\Base\Exceptions\InvalidArgumentException; } - $this->oImapClient->FolderSelect($sFolderName); + $this->oImapClient->FolderExamine($sFolderName); $oBodyStructure = null; $oMessage = null; @@ -293,7 +293,7 @@ class MailClient throw new \MailSo\Base\Exceptions\InvalidArgumentException; } - $this->oImapClient->FolderSelect($sFolderName); + $this->oImapClient->FolderExamine($sFolderName); $sFileName = ''; $sContentType = ''; @@ -557,7 +557,7 @@ class MailClient if ($iPrevUidNext && $iPrevUidNext != $iCurrentUidNext && 'INBOX' === $sFolderName && \MailSo\Config::$CheckNewMessages) { - $this->oImapClient->FolderSelect($sFolderName); + $this->oImapClient->FolderExamine($sFolderName); $aFetchResponse = $this->oImapClient->Fetch(array( \MailSo\Imap\Enumerations\FetchType::INDEX, @@ -617,7 +617,7 @@ class MailClient if ($oRange && \count($oRange)) { - $this->oImapClient->FolderSelect($sFolderName); + $this->oImapClient->FolderExamine($sFolderName); $aFetchResponse = $this->oImapClient->Fetch(array( \MailSo\Imap\Enumerations\FetchType::INDEX, @@ -937,7 +937,7 @@ class MailClient list($iMessageRealCount, $iMessageUnseenCount, $iUidNext, $iHighestModSeq) = $this->initFolderValues($oParams->sFolderName); - $this->oImapClient->FolderSelect($oParams->sFolderName); + $this->oImapClient->FolderExamine($oParams->sFolderName); $oMessageCollection = new MessageCollection; $oMessageCollection->FolderName = $oParams->sFolderName;