[Extra] QUOTA: representing "no limit" while still giving counts

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

Return-Path: <brong@fastmailteam.com>
X-Original-To: extra@ietfa.amsl.com
Delivered-To: extra@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B0F9D12083E for <extra@ietfa.amsl.com>; Wed, 20 Nov 2019 00:06:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 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, URIBL_BLOCKED=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=Mnox1fPV; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=ODcZg12B
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 1cAZ5xN8vSFv for <extra@ietfa.amsl.com>; Wed, 20 Nov 2019 00:06:16 -0800 (PST)
Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D11A11201AA for <extra@ietf.org>; Wed, 20 Nov 2019 00:06:16 -0800 (PST)
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 3244E590 for <extra@ietf.org>; Wed, 20 Nov 2019 03:06:16 -0500 (EST)
Received: from imap99 ([10.202.2.99]) by compute6.internal (MEProxy); Wed, 20 Nov 2019 03:06:16 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= fastmailteam.com; h=mime-version:message-id:date:from:to:subject :content-type; s=fm1; bh=eWkyRlJHNUstbiL5IJkz8QD/lD4EI4PCi1Mdkkz 2JL8=; b=Mnox1fPVW3VcxVI9FwvY6pJ83CFYAEhVOS6b+tgmRsI9+I2qQYVogvj 6LykwXU+reu7O2pTrd/uGef8UUVeR71JZqrGqC/1Mwyau46x9aCBATd7j6iBHuwu iHkYFpQg48L5TGwcqeLjLSjQWQhb7QHuAIRivA4SYic1cexCJAA7obQuniashA2j XVoDdgOpr49IgkDUF+Jza839vArFMmaHTbzPT7eVDDXBXkAGIIoTPPwY0kVYnZJm VjStbLSmm/0evQ49jLnyRARyUYl3Q3N2Uz54E74Rb6XNyx+4Em5MDRvzqgDVyoYx GWjoOMUb3GebjO9yeNKNHOmk+k8Dlmg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=eWkyRlJHNUstbiL5IJkz8QD/lD4EI 4PCi1Mdkkz2JL8=; b=ODcZg12BSakriNKiUSyCiiJefwXteWhB4LZlq4Mk+eAZ4 RG7X5LEHeXxEYeyon+uYYhRL6TLdutcqmYNOYGWj9xXGMoonLYd2cgPmweecAxYV bFeiM2N1t7H1GK89J6FsrPk1JJ6QudX1ja2jwwvH5zkjwPNTEkKGtYtNuvlAX1YL s01ksdfgVVVnVBNpyO1mwgJuVGpoqZ+6NrQJcHxd8lENGlb/R/ST3zbtSQsqYyEq MXVcPR8+slmqkklQk6eXAcN3J83MqhFgjZPK9kz1Lo20B08i+PmGFePoHhERBj+R 8K6i0K4uhhvMo3IbI/VjYnJzCg5ZAAfW0MA8Ll2KQ==
X-ME-Sender: <xms:9_PUXR2S0X7KhJVvKjasUyqzrG0afcyDDgG-IJA2t-6Cfv9W8tjEDw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudegledgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesrgdtre erreertdenucfhrhhomhepfdeurhhonhcuifhonhgufigrnhgrfdcuoegsrhhonhhgsehf rghsthhmrghilhhtvggrmhdrtghomheqnecurfgrrhgrmhepmhgrihhlfhhrohhmpegsrh honhhgsehfrghsthhmrghilhhtvggrmhdrtghomhenucevlhhushhtvghrufhiiigvpedt
X-ME-Proxy: <xmx:9_PUXWcusHRxao3Tc_ZaD6n-i1NfOoEtFy90hcymTMq175RwazG_Zw> <xmx:9_PUXd4EFI1wzwg7cq_cODJPbWsRvCJEsdCWCoCPVejVIRmz52KCSg> <xmx:9_PUXR8d6c7IHQ5Yqg5MwWXa87qYhAMvtlgTZJDEqDQuZpTYvJ-TlA> <xmx:9_PUXVZ-VuoHSocV0UqW2MT-4JE6F6eSYE4CJ3aeuTdrsPjDRIDqag>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 65C1B30006F; Wed, 20 Nov 2019 03:06:15 -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: <43c6b1ea-8d63-4bcf-9aed-36154481b4f6@dogfood.fastmail.com>
Date: Wed, 20 Nov 2019 19:06:12 +1100
From: "Bron Gondwana" <brong@fastmailteam.com>
To: extra@ietf.org
Content-Type: multipart/alternative; boundary=8d42bdd77b2a4bc78b19d7650d93a3fe
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/Oygs7TJup0PQkhaBF54_eNY8Ao8>
Subject: [Extra] QUOTA: representing "no limit" while still giving counts
X-BeenThere: extra@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email mailstore and eXtensions To Revise or Amend <extra.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/extra>, <mailto:extra-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/extra/>
List-Post: <mailto:extra@ietf.org>
List-Help: <mailto:extra-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/extra>, <mailto:extra-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Nov 2019 08:06:19 -0000

An issue I've had with QUOTA in the past is that I've set a limit on storage but not on "number of messages". Internally, our server is storing all the counts, but it has "-1" (aka: unlimited) as the limit.

There's no way in the wire protocol to indicate this. I'm not sure if it's possible to do it in a backwards compatible way other than just say "use UINT32_MAX for unlimited", but it would be nice to define that in the spec and tell clients to treat UINT32_MAX in that field as "unlimited" for display purposes.

Cheers,

Bron.

--
 Bron Gondwana, CEO, Fastmail Pty Ltd
 brong@fastmailteam.com