You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Raphaël Ouazana (JIRA)" <se...@james.apache.org> on 2018/03/08 10:55:00 UTC

[jira] [Closed] (JAMES-2345) Enhance JMAP getMailboxes to expose quota

     [ https://issues.apache.org/jira/browse/JAMES-2345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raphaël Ouazana closed JAMES-2345.
----------------------------------
    Resolution: Fixed

Merged https://github.com/linagora/james-project/pull/1308

> Enhance JMAP getMailboxes to expose 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
>            Priority: Major
>
> 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:}}
> {code:java}
> ...
> quotas: { 
>      '#private&user': {
>          'STORAGE': { 'used': 10, 'max': 512 },
>          'MESSAGE': { 'used': 42, 'max': null }
>      }
> }, ...
> {code}



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

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