Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
It's useful for a user to get it's quota restriction.
The following proposal will be implemented to allow users to retrieve their quota usage and limits.
quotas (String[Quotas]) map of quota root (identifier of a quota for this mailbox) to Quotas.
Quotas are a map of quota type ('STORAGE' for size quota, 'MESSAGE' for count of messages quota) to Quota object. A quota object contains 2 fields, used and max.
used (Number) number of messages, or size in bytes for storage
max (Number|null) maximum number of messages, or maximum size in bytes for storage. Null means unlimited
Example:
... quotas: { '#private&user': { 'STORAGE': { 'used': 10, 'max': 512 }, 'MESSAGE': { 'used': 42, 'max': null } } }, ...