php-imap icon indicating copy to clipboard operation
php-imap copied to clipboard

Document `getQuotaRoot()`

Open ThomasLandauer opened this issue 9 months ago • 1 comments

$quota = $client->getQuotaRoot(); is returning a somewhat obscure array:

array:3 [▼
  0 => array:3 [▶]
  1 => array:3 [▼
    0 => "QUOTA"
    1 => "storage=1024000.0000"
    2 => array:3 [▼
      0 => "STORAGE"
      1 => "538567"
      2 => "1024000"
    ]
  ]
  2 => array:4 [▼
    0 => "OK"
    1 => "Getquotaroot"
    2 => "completed"
    3 => array:4 [▼
      0 => "0.000"
      1 => "+"
      2 => "0.000"
      3 => "secs)."
    ]
  ]
]

So the syntax to get the used storage space would be $quota[1][2][1]

Please document all this at https://www.php-imap.com/api/client

ThomasLandauer avatar Feb 25 '25 19:02 ThomasLandauer

would be great if php-imap could present the data in a "pretty" formated format and not just in the raw format

Pascal76 avatar Feb 25 '25 19:02 Pascal76