mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Drop root folders with \noselect flag
Like 'dovecot' which has 'dovecot.sieve' which has no emails
This commit is contained in:
parent
5eb7c7515a
commit
135831b116
1 changed files with 6 additions and 0 deletions
|
|
@ -36,6 +36,12 @@ trait Folders
|
||||||
|
|
||||||
if ($oFolderCollection instanceof \MailSo\Mail\FolderCollection)
|
if ($oFolderCollection instanceof \MailSo\Mail\FolderCollection)
|
||||||
{
|
{
|
||||||
|
foreach ($oFolderCollection as $i => $oFolder) {
|
||||||
|
if (!$oFolder->IsSelectable()) {
|
||||||
|
unset($oFolderCollection[$i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$oSettingsLocal = $this->SettingsProvider(true)->Load($oAccount);
|
$oSettingsLocal = $this->SettingsProvider(true)->Load($oAccount);
|
||||||
|
|
||||||
$aSystemFolders = array();
|
$aSystemFolders = array();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue