Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2345

Enhance JMAP getMailboxes to expose quota

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JMAP
    • Labels:
      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 }
           }
      }, ...
      

        Attachments

          Activity

            People

            • Assignee:
              aduprat Antoine Duprat
              Reporter:
              rouazana Raphael Ouazana
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: