mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 06:27:02 +03:00
Small restructure
This commit is contained in:
parent
27cfd1ee83
commit
5c22933628
2 changed files with 3 additions and 3 deletions
|
|
@ -46,13 +46,13 @@ trait Quota
|
||||||
: null;
|
: null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// * QUOTA "User quota" (STORAGE 1284645 2097152)\r\n
|
||||||
private function getQuotaResult(\MailSo\Imap\ResponseCollection $oResponseCollection) : array
|
private function getQuotaResult(\MailSo\Imap\ResponseCollection $oResponseCollection) : array
|
||||||
{
|
{
|
||||||
$aReturn = array(0, 0);
|
$aReturn = array(0, 0);
|
||||||
foreach ($oResponseCollection as $oResponse) {
|
foreach ($oResponseCollection as $oResponse) {
|
||||||
if (Enumerations\ResponseType::UNTAGGED === $oResponse->ResponseType
|
if (Enumerations\ResponseType::UNTAGGED === $oResponse->ResponseType
|
||||||
&& 'QUOTA' === $oResponse->StatusOrIndex
|
&& 'QUOTA' === $oResponse->StatusOrIndex
|
||||||
&& \is_array($oResponse->ResponseList)
|
|
||||||
&& isset($oResponse->ResponseList[3])
|
&& isset($oResponse->ResponseList[3])
|
||||||
&& \is_array($oResponse->ResponseList[3])
|
&& \is_array($oResponse->ResponseList[3])
|
||||||
&& 2 < \count($oResponse->ResponseList[3])
|
&& 2 < \count($oResponse->ResponseList[3])
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,6 @@ trait User
|
||||||
{
|
{
|
||||||
$sEmail = \MailSo\Base\Utils::Trim($this->GetActionParam('Email', ''));
|
$sEmail = \MailSo\Base\Utils::Trim($this->GetActionParam('Email', ''));
|
||||||
$sPassword = $this->GetActionParam('Password', '');
|
$sPassword = $this->GetActionParam('Password', '');
|
||||||
$sLanguage = $this->GetActionParam('Language', '');
|
|
||||||
$bSignMe = !empty($this->GetActionParam('SignMe', 0));
|
$bSignMe = !empty($this->GetActionParam('SignMe', 0));
|
||||||
|
|
||||||
$oAccount = null;
|
$oAccount = null;
|
||||||
|
|
@ -63,7 +62,8 @@ trait User
|
||||||
|
|
||||||
$this->SetAuthToken($oAccount);
|
$this->SetAuthToken($oAccount);
|
||||||
|
|
||||||
if ($oAccount && \strlen($sLanguage))
|
$sLanguage = $this->GetActionParam('Language', '');
|
||||||
|
if ($oAccount && $sLanguage)
|
||||||
{
|
{
|
||||||
$oSettings = $this->SettingsProvider()->Load($oAccount);
|
$oSettings = $this->SettingsProvider()->Load($oAccount);
|
||||||
if ($oSettings)
|
if ($oSettings)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue