mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
RFC5258 NonExistent
This commit is contained in:
parent
4d6d0622e5
commit
a13c6980a3
3 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1988,7 +1988,7 @@ class MailClient
|
|||
try
|
||||
{
|
||||
$aAddedFolders[$sNonExistenFolderFullNameRaw] =
|
||||
Folder::NewNonExistenInstance($sNonExistenFolderFullNameRaw, $sDelimiter);
|
||||
Folder::NewNonExistentInstance($sNonExistenFolderFullNameRaw, $sDelimiter);
|
||||
}
|
||||
catch (\Throwable $oExc)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue