Raphaël Ouazana created JAMES-2345:
--------------------------------------

             Summary: Enhance JMAP getMailboxes to exoise quota
                 Key: JAMES-2345
                 URL: https://issues.apache.org/jira/browse/JAMES-2345
             Project: James Server
          Issue Type: Improvement
          Components: JMAP
            Reporter: Raphaël Ouazana
            Assignee: Antoine Duprat


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 }}}
{{  }}}
{{}}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to