From a3bb108b331b6804f24bae737703f84780ab46b5 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Mon, 21 Aug 2023 10:03:36 +0200 Subject: [PATCH] Fix for previous commit regarding UTF-8 #1230 --- .../0.0.0/app/libraries/MailSo/Imap/Commands/Messages.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Imap/Commands/Messages.php b/snappymail/v/0.0.0/app/libraries/MailSo/Imap/Commands/Messages.php index ad8d8ab53..9a9498511 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Imap/Commands/Messages.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Imap/Commands/Messages.php @@ -391,8 +391,8 @@ trait Messages $oESearch->aReturn = $aSearchReturn; $oESearch->bUid = $bReturnUid; $oESearch->sLimit = $sLimit; -// if (!$this->UTF8Mode() && !\mb_check_encoding($sSearchCriterias, 'UTF-8')) { - if (!$this->UTF8Mode() && !\MailSo\Base\Utils::IsAscii($sSearchCriterias)) { +// if (!$this->UTF8 && !\mb_check_encoding($sSearchCriterias, 'UTF-8')) { + if (!$this->UTF8 && !\MailSo\Base\Utils::IsAscii($sSearchCriterias)) { $oESearch->sCharset = 'UTF-8'; } $oESearch->SendRequest(); @@ -426,8 +426,8 @@ trait Messages public function MessageSimpleSearch(string $sSearchCriterias = 'ALL', bool $bReturnUid = true) : array { $aRequest = array(); -// if (!$this->UTF8Mode() && !\mb_check_encoding($sSearchCriterias, 'UTF-8')) { - if (!$this->UTF8Mode() && !\MailSo\Base\Utils::IsAscii($sSearchCriterias)) { +// if (!$this->UTF8 && !\mb_check_encoding($sSearchCriterias, 'UTF-8')) { + if (!$this->UTF8 && !\MailSo\Base\Utils::IsAscii($sSearchCriterias)) { $aRequest[] = 'CHARSET'; $aRequest[] = 'UTF-8'; }