mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Folder flags case-sensitive not used, so remove them
This commit is contained in:
parent
f2fe937940
commit
4b7495b7e7
3 changed files with 2 additions and 18 deletions
|
|
@ -35,11 +35,6 @@ class Folder
|
|||
*/
|
||||
private $sDelimiter;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private $aFlags;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
|
|
@ -68,8 +63,7 @@ class Folder
|
|||
|
||||
$this->sFullNameRaw = $sFullNameRaw;
|
||||
$this->sDelimiter = $sDelimiter;
|
||||
$this->aFlags = $aFlags;
|
||||
$this->aFlagsLowerCase = \array_map('strtolower', $this->aFlags);
|
||||
$this->aFlagsLowerCase = \array_map('strtolower', $aFlags);
|
||||
|
||||
$this->sFullNameRaw = 'INBOX'.$this->sDelimiter === \substr(\strtoupper($this->sFullNameRaw), 0, 5 + \strlen($this->sDelimiter)) ?
|
||||
'INBOX'.\substr($this->sFullNameRaw, 5) : $this->sFullNameRaw;
|
||||
|
|
@ -107,11 +101,6 @@ class Folder
|
|||
return $this->sDelimiter;
|
||||
}
|
||||
|
||||
public function Flags() : array
|
||||
{
|
||||
return $this->aFlags;
|
||||
}
|
||||
|
||||
public function FlagsLowerCase() : array
|
||||
{
|
||||
return $this->aFlagsLowerCase;
|
||||
|
|
|
|||
|
|
@ -123,11 +123,6 @@ class Folder implements \JsonSerializable
|
|||
return $this->oImapFolder->Delimiter();
|
||||
}
|
||||
|
||||
public function Flags() : array
|
||||
{
|
||||
return $this->oImapFolder->Flags();
|
||||
}
|
||||
|
||||
public function FlagsLowerCase() : array
|
||||
{
|
||||
return $this->oImapFolder->FlagsLowerCase();
|
||||
|
|
|
|||
|
|
@ -458,7 +458,7 @@ trait Folders
|
|||
foreach ($oFolders as $oFolder)
|
||||
{
|
||||
$aResult[] = $oFolder->FullNameRaw()."|".
|
||||
implode("|", $oFolder->Flags()).($oFolder->IsSubscribed() ? '1' : '0');
|
||||
implode("|", $oFolder->FlagsLowerCase()).($oFolder->IsSubscribed() ? '1' : '0');
|
||||
|
||||
$oSub = $oFolder->SubFolders();
|
||||
if ($oSub && 0 < $oSub->Count())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue