Re: [Jmap] Feedback on the quota draft

"Bron Gondwana" <brong@fastmailteam.com> Wed, 20 November 2019 11:24 UTC

Return-Path: <brong@fastmailteam.com>
X-Original-To: jmap@ietfa.amsl.com
Delivered-To: jmap@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 743F31208B1 for <jmap@ietfa.amsl.com>; Wed, 20 Nov 2019 03:24:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fastmailteam.com header.b=cVNnGKEw; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=hHosUxr8
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3pKnWUKB-X59 for <jmap@ietfa.amsl.com>; Wed, 20 Nov 2019 03:24:39 -0800 (PST)
Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 525471208A7 for <jmap@ietf.org>; Wed, 20 Nov 2019 03:24:39 -0800 (PST)
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 37539495 for <jmap@ietf.org>; Wed, 20 Nov 2019 06:24:37 -0500 (EST)
Received: from imap99 ([10.202.2.99]) by compute6.internal (MEProxy); Wed, 20 Nov 2019 06:24:37 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= fastmailteam.com; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type; s=fm1; bh=XbF7Glb I9f8m9DjgQPMql/J/r9Gp3jGlBJElqMdfKLw=; b=cVNnGKEwD+aAXZgnTyGtQ7w 1U3tSQUc7B3CUiOhqJPqvvOZc7+omuzbaxzylARTJvkXU90GOtFchcBF15RVUOOL NYu9NwdQSYVUT0skNpL+viiLBW8ts5SOzuDCCaaWYq40uMcXRJpzb5GKRwAibfeB iv/TtKocU09MHaOphvf9+u4y0F7UR1nkKeY+koc04XAI/3djUKfttc4OPomj3fNv taK05hR7jG/h1apJP7Xwq1qFluVPZs+rqlpOynj0NhuSN5Zpfru3H4zqA9qyYGTg wCA9EqAUmoSZw3zXk+qvhbiKKgtMNkU1CBuCXx64x3qkCjpafQBZEvNcLfm10Ww= =
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=XbF7Gl bI9f8m9DjgQPMql/J/r9Gp3jGlBJElqMdfKLw=; b=hHosUxr8iIVJ+RwWTYmYna Q8YvnH8Y99DDhFNuu3RerPft3jtZ9e+AZ0JV1CZepJs1mmYjl2eVTDTq5MXuF7hU UOegrbyvqLqNoZxwMa/AnGLFaIhc+2SEzwu5fHRMwG8CVDH++R6vkjLPdhUUQhbc 9E9+GO95qyw7t29/B3tGC8A0m3L+lJNKzVpLbCHAV8suNsQcYERE43TkyILljS9y ZvXrBH0EVT8lzcK6BdGpZ+XJpHxrY5oadEDCrR//MSCYMvGtEMrkFallq76T2kc2 hPfSvMOg56yg/mj6SwfCBvlt/l3hMFSSm4RQGSnugmy5KgwEZkvYh20tr/nsEGdw ==
X-ME-Sender: <xms:dCLVXc6qY17VJxpdFve2JdHXsO8aa7Fe7xjbRtoS0K4v1WvSqxEjWA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudehtddgvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerredtnecuhfhrohhmpedfuehrohhnucfiohhnugifrghnrgdfuceosghrohhnghes fhgrshhtmhgrihhlthgvrghmrdgtohhmqeenucfrrghrrghmpehmrghilhhfrhhomhepsg hrohhnghesfhgrshhtmhgrihhlthgvrghmrdgtohhmnecuvehluhhsthgvrhfuihiivgep td
X-ME-Proxy: <xmx:dCLVXUy0-fDwNTnds07HNBrHlHTcrYupHlDLx0aSzdAGjQtjbKAH5A> <xmx:dCLVXTyfcLOu-S-U3JJ0jalR3N-L-hYmh6acd9KETrNkyU_kQkCVoA> <xmx:dCLVXcze9O53GKrlZyJw-G3C92JC7XyM7DQMpb7fdVR5Cf7sLB-mPQ> <xmx:dCLVXbusc2g8UXhI28rlABU6Ja1iBPego1uO583ww8hfzxkafsao5w>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8956930006F; Wed, 20 Nov 2019 06:24:36 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.1.7-578-g826f590-fmstable-20191119v1
Mime-Version: 1.0
Message-Id: <88e8980b-bd85-4056-88d6-50ee9683e730@dogfood.fastmail.com>
In-Reply-To: <cb566662-c4cd-46b8-83db-170c9c91f19f@dogfood.fastmail.com>
References: <cb566662-c4cd-46b8-83db-170c9c91f19f@dogfood.fastmail.com>
Date: Wed, 20 Nov 2019 22:24:33 +1100
From: Bron Gondwana <brong@fastmailteam.com>
To: jmap@ietf.org
Content-Type: multipart/alternative; boundary="14d8a0c48d70405c8b5af1680f2c2b90"
Archived-At: <https://mailarchive.ietf.org/arch/msg/jmap/DMXi2qZIc5-wtL8fRkHKr8ETGmw>
Subject: Re: [Jmap] Feedback on the quota draft
X-BeenThere: jmap@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: JSON Message Access Protocol <jmap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jmap>, <mailto:jmap-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jmap/>
List-Post: <mailto:jmap@ietf.org>
List-Help: <mailto:jmap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jmap>, <mailto:jmap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Nov 2019 11:24:40 -0000

On Wed, Nov 20, 2019, at 22:20, Bron Gondwana wrote:
> With that said, here's the suggestions :)

I should add - as promised in an earlier missive - here's the entire tiny Quota spec for Fastmail. We would clearly convert over to the published spec, probably using the "mail" and "files" as the short "name" field for each of our Quota types. The "mail" would have datatype [ "Mail", "Mailbox", "Calendar", "Contacts"] or so.

Cheers,

Bron.

# Quotas

A **Quota** object has the following properties:

- **used**: `Number`
 Storage used in MB, rounded to the nearest MB
- **total**: `Number`
 Total storage available in MB, rounded to the nearest MB

## Quota/get

Standard */get* method. The *ids* argument may be `null` to fetch all at once.

Objects with the following ids exist in FastMail:

-`mail`: Mailbox quota (used for mail, calendars and contacts)
-`files`: Files quota

**Note**: The server may at any time add an unrequested *Quota/get* response to the list of responses it sends to the client, if it thinks the usage may have changed.