diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Imap/SearchCriterias.php b/snappymail/v/0.0.0/app/libraries/MailSo/Imap/SearchCriterias.php index 31f09ec54..b2ce499d5 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Imap/SearchCriterias.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Imap/SearchCriterias.php @@ -280,7 +280,7 @@ abstract class SearchCriterias } if ($bHideDeleted && !\in_array('DELETED', $aCriteriasResult) && !\in_array('UNDELETED', $aCriteriasResult)) { - $aCriteriasResult['UNDELETED'] = true; + $aCriteriasResult[] = 'UNDELETED'; } if (\MailSo\Config::$MessageListPermanentFilter) { diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Messages.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Messages.php index 7aaeab620..6cb11dea7 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Messages.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Messages.php @@ -74,7 +74,7 @@ trait Messages $oSettingsLocal = $this->SettingsProvider(true)->Load($oAccount); if ($oSettingsLocal instanceof \RainLoop\Settings) { - $oParams->bHideDeleted = empty($oSettingsLocal->GetConf('HideDeleted', 1)); + $oParams->bHideDeleted = !empty($oSettingsLocal->GetConf('HideDeleted', 1)); } $oMessageList = $this->MailClient()->MessageList($oParams);