Autocreate system folders in folder list request.

Additional plugin hooks
This commit is contained in:
RainLoop Team 2013-12-18 03:00:57 +04:00
parent 972067b6d9
commit 394e22520e
19 changed files with 357 additions and 288 deletions

View file

@ -1653,12 +1653,11 @@ class MailClient
/**
* @param string $sParent = ''
* @param string $sListPattern = '*'
* @param bool $bUseListStatus = false
* @param bool $bUseListSubscribeStatus = false
*
* @return \MailSo\Mail\FolderCollection|false
*/
public function Folders($sParent = '', $sListPattern = '*', $bUseListStatus = false, $bUseListSubscribeStatus = true)
public function Folders($sParent = '', $sListPattern = '*', $bUseListSubscribeStatus = true)
{
$oFolderCollection = false;
@ -1671,19 +1670,9 @@ class MailClient
{
$aSubscribedFolders = $this->oImapClient->FolderSubscribeList($sParent, $sListPattern);
}
catch (\Exception $oException)
{
}
catch (\Exception $oException) {}
}
// TODO
// $mStatusFolders = null;
// if ($bUseListStatus)
// {
// $mStatusFolders = $this->oImapClient->FolderStatusList($sParent, $sListPattern);
// }
$aImapSubscribedFoldersHelper = null;
if (\is_array($aSubscribedFolders))
{