Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document getQuotaRoot() #556

Open
ThomasLandauer opened this issue Feb 25, 2025 · 1 comment
Open

Document getQuotaRoot() #556

ThomasLandauer opened this issue Feb 25, 2025 · 1 comment

Comments

@ThomasLandauer
Copy link

$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

@Pascal76
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants