mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
Timeout optimizations
This commit is contained in:
parent
ba645f5614
commit
d476a6a3ac
3 changed files with 13 additions and 9 deletions
|
|
@ -26,7 +26,7 @@ class MailClient
|
|||
$this->oLogger = null;
|
||||
|
||||
$this->oImapClient = \MailSo\Imap\ImapClient::NewInstance();
|
||||
$this->oImapClient->SetTimeOuts(10, 30); // TODO
|
||||
$this->oImapClient->SetTimeOuts(10, 300); // TODO
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1927,7 +1927,7 @@ class MailClient
|
|||
{
|
||||
// TODO
|
||||
throw new \MailSo\Mail\Exceptions\RuntimeException(
|
||||
'New folder name contain delimiter');
|
||||
'New folder name contains delimiter');
|
||||
}
|
||||
|
||||
$sFullNameRawToCreate = $sFolderParentFullNameRaw.$sFullNameRawToCreate;
|
||||
|
|
@ -2019,8 +2019,7 @@ class MailClient
|
|||
if (0 < \strlen($sDelimiter) && false !== \strpos($sNewFolderFullNameRaw, $sDelimiter))
|
||||
{
|
||||
// TODO
|
||||
throw new \MailSo\Mail\Exceptions\RuntimeException(
|
||||
'New folder name contain delimiter');
|
||||
throw new \MailSo\Mail\Exceptions\RuntimeException('New folder name contains delimiter');
|
||||
}
|
||||
|
||||
$sFolderParentFullNameRaw = false === $iLast ? '' : \substr($sPrevFolderFullNameRaw, 0, $iLast + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue