mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-10 06:58:27 +03:00
No need to call IMAP EXAMINE when current folder already SELECT
This commit is contained in:
parent
ad45bcf2cf
commit
871664cd39
1 changed files with 2 additions and 3 deletions
|
|
@ -350,13 +350,12 @@ trait Folders
|
|||
if (!$bReSelectSameFolders
|
||||
&& $this->oCurrentFolderInfo
|
||||
&& $sFolderName === $this->oCurrentFolderInfo->FolderName
|
||||
&& $bIsWritable === $this->oCurrentFolderInfo->IsWritable
|
||||
&& ($bIsWritable === $this->oCurrentFolderInfo->IsWritable || $this->oCurrentFolderInfo->IsWritable)
|
||||
) {
|
||||
return $this->oCurrentFolderInfo;
|
||||
}
|
||||
|
||||
if (!\strlen(\trim($sFolderName)))
|
||||
{
|
||||
if (!\strlen(\trim($sFolderName))) {
|
||||
throw new \InvalidArgumentException;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue