Parse all quotas from GETQUOTAROOT (#6280)

pull/6274/merge
Edgaras L 7 years ago committed by Aleksander Machniak
parent e04d5313bd
commit c236c22c41

@ -3130,8 +3130,9 @@ class rcube_imap_generic
if (preg_match('/^\* QUOTA /', $line)) {
list(, , $quota_root) = $this->tokenizeResponse($line, 3);
while ($line) {
list($type, $used, $total) = $this->tokenizeResponse($line, 1);
$quotas = $this->tokenizeResponse($line, 1);
foreach (array_chunk($quotas, 3) as $quota) {
list($type, $used, $total) = $quota;
$type = strtolower($type);
if ($type && $total) {

Loading…
Cancel
Save