mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +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
|
if (!$bReSelectSameFolders
|
||||||
&& $this->oCurrentFolderInfo
|
&& $this->oCurrentFolderInfo
|
||||||
&& $sFolderName === $this->oCurrentFolderInfo->FolderName
|
&& $sFolderName === $this->oCurrentFolderInfo->FolderName
|
||||||
&& $bIsWritable === $this->oCurrentFolderInfo->IsWritable
|
&& ($bIsWritable === $this->oCurrentFolderInfo->IsWritable || $this->oCurrentFolderInfo->IsWritable)
|
||||||
) {
|
) {
|
||||||
return $this->oCurrentFolderInfo;
|
return $this->oCurrentFolderInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!\strlen(\trim($sFolderName)))
|
if (!\strlen(\trim($sFolderName))) {
|
||||||
{
|
|
||||||
throw new \InvalidArgumentException;
|
throw new \InvalidArgumentException;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue