mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +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;
|
private $bIsLoggined = false;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var bool
|
|
||||||
*/
|
|
||||||
private $bIsSelected = false;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
|
|
@ -279,7 +274,7 @@ class ImapClient extends \MailSo\Net\NetClient
|
||||||
|
|
||||||
public function IsSelected() : bool
|
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)))
|
array($this->EscapeString($sFolderName)))
|
||||||
->getCurrentFolderInformation($sFolderName, $bIsWritable);
|
->getCurrentFolderInformation($sFolderName, $bIsWritable);
|
||||||
|
|
||||||
$this->bIsSelected = true;
|
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -602,7 +595,7 @@ class ImapClient extends \MailSo\Net\NetClient
|
||||||
if ($this->IsSelected() && $this->IsSupported('UNSELECT'))
|
if ($this->IsSelected() && $this->IsSupported('UNSELECT'))
|
||||||
{
|
{
|
||||||
$this->SendRequestGetResponse('UNSELECT');
|
$this->SendRequestGetResponse('UNSELECT');
|
||||||
$this->bIsSelected = false;
|
$this->oCurrentFolderInfo = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
|
@ -753,6 +746,7 @@ class ImapClient extends \MailSo\Net\NetClient
|
||||||
}
|
}
|
||||||
|
|
||||||
$aRequest = array();
|
$aRequest = array();
|
||||||
|
|
||||||
if ($bSort)
|
if ($bSort)
|
||||||
{
|
{
|
||||||
$aRequest[] = 'RETURN';
|
$aRequest[] = 'RETURN';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue