mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 14:37:02 +03:00
Release fixes
This commit is contained in:
parent
5e31c01344
commit
9a98bff931
30 changed files with 143 additions and 76 deletions
|
|
@ -20,7 +20,7 @@ class FolderCollection extends \MailSo\Base\Collection
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $sNamespace;
|
||||
public $Namespace;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
|
|
@ -49,7 +49,7 @@ class FolderCollection extends \MailSo\Base\Collection
|
|||
{
|
||||
parent::__construct();
|
||||
|
||||
$this->sNamespace = '';
|
||||
$this->Namespace = '';
|
||||
$this->FoldersHash = '';
|
||||
$this->SystemFolders = array();
|
||||
$this->IsThreadsSupported = false;
|
||||
|
|
@ -96,12 +96,30 @@ class FolderCollection extends \MailSo\Base\Collection
|
|||
return $mResult;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function CountRec()
|
||||
{
|
||||
$iResult = $this->Count();
|
||||
foreach ($this->aItems as /* @var $oFolder \MailSo\Mail\Folder */ $oFolder)
|
||||
{
|
||||
if ($oFolder)
|
||||
{
|
||||
$oSub = $oFolder->SubFolders();
|
||||
$iResult += $oSub ? $oSub->CountRec() : 0;
|
||||
}
|
||||
}
|
||||
|
||||
return $iResult;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function GetNamespace()
|
||||
{
|
||||
return $this->sNamespace;
|
||||
return $this->Namespace;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -110,7 +128,7 @@ class FolderCollection extends \MailSo\Base\Collection
|
|||
public function FindDelimiter()
|
||||
{
|
||||
$sDelimiter = '/';
|
||||
|
||||
|
||||
$oFolder = $this->GetByFullNameRaw('INBOX');
|
||||
if (!$oFolder)
|
||||
{
|
||||
|
|
@ -132,7 +150,7 @@ class FolderCollection extends \MailSo\Base\Collection
|
|||
*/
|
||||
public function SetNamespace($sNamespace)
|
||||
{
|
||||
$this->sNamespace = $sNamespace;
|
||||
$this->Namespace = $sNamespace;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue