mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
MailSo update (quota)
This commit is contained in:
parent
67508db71b
commit
dde42c6190
9 changed files with 221 additions and 209 deletions
|
|
@ -473,7 +473,7 @@ RainLoopApp.prototype.quota = function ()
|
||||||
{
|
{
|
||||||
this.remote().quota(function (sResult, oData) {
|
this.remote().quota(function (sResult, oData) {
|
||||||
if (Enums.StorageResultType.Success === sResult && oData && oData.Result &&
|
if (Enums.StorageResultType.Success === sResult && oData && oData.Result &&
|
||||||
Utils.isArray(oData.Result) && 2 === oData.Result.length &&
|
Utils.isArray(oData.Result) && 1 < oData.Result.length &&
|
||||||
Utils.isPosNumeric(oData.Result[0], true) && Utils.isPosNumeric(oData.Result[1], true))
|
Utils.isPosNumeric(oData.Result[0], true) && Utils.isPosNumeric(oData.Result[1], true))
|
||||||
{
|
{
|
||||||
RL.data().userQuota(Utils.pInt(oData.Result[1]) * 1024);
|
RL.data().userQuota(Utils.pInt(oData.Result[1]) * 1024);
|
||||||
|
|
|
||||||
|
|
@ -948,8 +948,20 @@ class ImapClient extends \MailSo\Net\NetClient
|
||||||
{
|
{
|
||||||
$aReturn = array(
|
$aReturn = array(
|
||||||
(int) $oImapResponse->ResponseList[3][1],
|
(int) $oImapResponse->ResponseList[3][1],
|
||||||
(int) $oImapResponse->ResponseList[3][2]
|
(int) $oImapResponse->ResponseList[3][2],
|
||||||
|
0,
|
||||||
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (5 < count($oImapResponse->ResponseList[3])
|
||||||
|
&& 'MESSAGE' === strtoupper($oImapResponse->ResponseList[3][3])
|
||||||
|
&& is_numeric($oImapResponse->ResponseList[3][4])
|
||||||
|
&& is_numeric($oImapResponse->ResponseList[3][5])
|
||||||
|
)
|
||||||
|
{
|
||||||
|
$aReturn[2] = (int) $oImapResponse->ResponseList[3][4];
|
||||||
|
$aReturn[3] = (int) $oImapResponse->ResponseList[3][5];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ final class Version
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
const APP_VERSION = '1.3.1';
|
const APP_VERSION = '1.3.2';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
|
|
|
||||||
6
rainloop/v/0.0.0/static/js/admin.min.js
vendored
6
rainloop/v/0.0.0/static/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -18883,7 +18883,7 @@ RainLoopApp.prototype.quota = function ()
|
||||||
{
|
{
|
||||||
this.remote().quota(function (sResult, oData) {
|
this.remote().quota(function (sResult, oData) {
|
||||||
if (Enums.StorageResultType.Success === sResult && oData && oData.Result &&
|
if (Enums.StorageResultType.Success === sResult && oData && oData.Result &&
|
||||||
Utils.isArray(oData.Result) && 2 === oData.Result.length &&
|
Utils.isArray(oData.Result) && 1 < oData.Result.length &&
|
||||||
Utils.isPosNumeric(oData.Result[0], true) && Utils.isPosNumeric(oData.Result[1], true))
|
Utils.isPosNumeric(oData.Result[0], true) && Utils.isPosNumeric(oData.Result[1], true))
|
||||||
{
|
{
|
||||||
RL.data().userQuota(Utils.pInt(oData.Result[1]) * 1024);
|
RL.data().userQuota(Utils.pInt(oData.Result[1]) * 1024);
|
||||||
|
|
|
||||||
14
rainloop/v/0.0.0/static/js/app.min.js
vendored
14
rainloop/v/0.0.0/static/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue