From 494626bfc7f941fb9ffddd97183e8a6288a10694 Mon Sep 17 00:00:00 2001 From: djmaze Date: Mon, 31 May 2021 10:52:26 +0200 Subject: [PATCH] https://github.com/the-djmaze/snappymail/issues/94#issuecomment-850806845 --- snappymail/v/0.0.0/app/libraries/MailSo/Mail/Folder.php | 3 ++- snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Folders.php | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Mail/Folder.php b/snappymail/v/0.0.0/app/libraries/MailSo/Mail/Folder.php index a86752760..5f93f81b0 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Mail/Folder.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Mail/Folder.php @@ -169,7 +169,8 @@ class Folder implements \JsonSerializable public function IsSelectable() : bool { - return $this->bExists && $this->oImapFolder->IsSelectable(); + // https://github.com/the-djmaze/snappymail/issues/94#issuecomment-850806845 + return $this->bExists /* && $this->oImapFolder->IsSelectable()*/; } /** diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Folders.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Folders.php index 06a9df318..877650731 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Folders.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/Folders.php @@ -30,6 +30,8 @@ trait Folders { $this->Plugins()->RunHook('filter.folders-post', array($oAccount, $oFolderCollection)); +/* + // https://github.com/the-djmaze/snappymail/issues/94#issuecomment-850806845 $aFolders = $oFolderCollection->getArrayCopy(); foreach ($aFolders as $i => $oFolder) { if (!$oFolder->IsSelectable()) { @@ -37,6 +39,7 @@ trait Folders } } $oFolderCollection->exchangeArray(\array_values($aFolders)); +*/ $oSettingsLocal = $this->SettingsProvider(true)->Load($oAccount);