RFC5258 NonExistent

This commit is contained in:
djmaze 2021-10-26 20:27:53 +02:00
parent 4d6d0622e5
commit a13c6980a3
3 changed files with 4 additions and 4 deletions

View file

@ -121,7 +121,7 @@ class Folder
public function IsSelectable() : bool
{
return !\in_array('\\noselect', $this->aFlagsLowerCase);
return !\in_array('\\noselect', $this->aFlagsLowerCase) && !\in_array('\\nonexistent', $this->aFlagsLowerCase);
}
public function IsInbox() : bool

View file

@ -76,10 +76,10 @@ class Folder implements \JsonSerializable
* @throws \MailSo\Base\Exceptions\InvalidArgumentException
* @throws \MailSo\Base\Exceptions\InvalidArgumentException
*/
public static function NewNonExistenInstance(string $sFullNameRaw, string $sDelimiter) : self
public static function NewNonExistentInstance(string $sFullNameRaw, string $sDelimiter) : self
{
return new self(
new \MailSo\Imap\Folder($sFullNameRaw, $sDelimiter, array('\\Noselect')), true, false);
new \MailSo\Imap\Folder($sFullNameRaw, $sDelimiter, array('\\Noselect')), false, false);
}
public function Name() : string

View file

@ -1988,7 +1988,7 @@ class MailClient
try
{
$aAddedFolders[$sNonExistenFolderFullNameRaw] =
Folder::NewNonExistenInstance($sNonExistenFolderFullNameRaw, $sDelimiter);
Folder::NewNonExistentInstance($sNonExistenFolderFullNameRaw, $sDelimiter);
}
catch (\Throwable $oExc)
{