We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b909d4f commit 74b5921Copy full SHA for 74b5921
src/Folder.php
@@ -160,6 +160,10 @@ public function select(bool $force = false): void
160
*/
161
public function quota(): array
162
{
163
+ if (! in_array('QUOTA', $this->mailbox->capabilities())) {
164
+ throw new ImapCapabilityException('Unable to fetch mailbox quotas. IMAP server does not support QUOTA capability.');
165
+ }
166
+
167
$responses = $this->mailbox->connection()->quotaRoot($this->path);
168
169
$values = [];
0 commit comments