Skip to content

Document getQuotaRoot() #556

Open
Open
@ThomasLandauer

Description

@ThomasLandauer

$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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions