mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
Bugfix: error for folder status after IMAP FolderUnselect
This commit is contained in:
parent
6faf8a6a36
commit
8fae760bb8
1 changed files with 3 additions and 9 deletions
|
|
@ -54,11 +54,6 @@ class ImapClient extends \MailSo\Net\NetClient
|
|||
*/
|
||||
private $bIsLoggined = false;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
private $bIsSelected = false;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
|
@ -279,7 +274,7 @@ class ImapClient extends \MailSo\Net\NetClient
|
|||
|
||||
public function IsSelected() : bool
|
||||
{
|
||||
return $this->IsLoggined() && $this->bIsSelected;
|
||||
return $this->IsLoggined() && $this->oCurrentFolderInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -563,8 +558,6 @@ class ImapClient extends \MailSo\Net\NetClient
|
|||
array($this->EscapeString($sFolderName)))
|
||||
->getCurrentFolderInformation($sFolderName, $bIsWritable);
|
||||
|
||||
$this->bIsSelected = true;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
@ -602,7 +595,7 @@ class ImapClient extends \MailSo\Net\NetClient
|
|||
if ($this->IsSelected() && $this->IsSupported('UNSELECT'))
|
||||
{
|
||||
$this->SendRequestGetResponse('UNSELECT');
|
||||
$this->bIsSelected = false;
|
||||
$this->oCurrentFolderInfo = null;
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
|
@ -753,6 +746,7 @@ class ImapClient extends \MailSo\Net\NetClient
|
|||
}
|
||||
|
||||
$aRequest = array();
|
||||
|
||||
if ($bSort)
|
||||
{
|
||||
$aRequest[] = 'RETURN';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue