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

"Bron Gondwana" <> Wed, 20 November 2019 09:38 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 7E68512026E for <>; Wed, 20 Nov 2019 01:38:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.699
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: (amavisd-new); dkim=pass (2048-bit key) header.b=YxjVXiII; dkim=pass (2048-bit key) header.b=ZoZ/smI4
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id ndhK_yGLj5Hk for <>; Wed, 20 Nov 2019 01:38:11 -0800 (PST)
Received: from ( []) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 0B1D812088B for <>; Wed, 20 Nov 2019 01:38:11 -0800 (PST)
Received: from compute6.internal (compute6.nyi.internal []) by mailout.west.internal (Postfix) with ESMTP id 7793E597; Wed, 20 Nov 2019 04:38:10 -0500 (EST)
Received: from imap99 ([]) by compute6.internal (MEProxy); Wed, 20 Nov 2019 04:38:10 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=; h=mime-version:message-id:in-reply-to :references:date:from:to:cc:subject:content-type; s=fm1; bh=wGkg kHR5NwCdZTz7mKiKtFC+WBcpWZZrmaZkloR6/ZQ=; b=YxjVXiIItjiA4n+Vu6jQ p4Mcil2Ox9qm0RcolppBUzjDMAp9qtKByR7xuaU7r/jnH9I+DLDtpB/IU/236BQU 7+MWDEJdLgoiE2nCvdi9P/2bu8jzoukwQcFbPdh9L4AhDp3FGR7LyZvDizZx3UhM RDMQTWs877Txmj+qbsG7lfQ59y9xX6s0A7CZ1xncmyF2wdTGYeJTbZPUKuZFM4X4 L70Uo9V1K4glBU6rieMtMerYtRmMpDLzN5AgDEoJcsXpGzmUlnRV88gDqImLSbaH wDa67FA9ugASbz9VAIM0k07l09UxvQz3Ovpu8qhHMYNnvR/NsbJRGhc+ilu3pidY XQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=; h=cc: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=wGkgkH R5NwCdZTz7mKiKtFC+WBcpWZZrmaZkloR6/ZQ=; b=ZoZ/smI46VX8uLYPJIjTDc 7/UtwIkCOiPv/OHx1qgwtM+szVzCkQ0Yu3daV7KAPtwdciI/3jlm3nFyl9SQ7nxa QLRM3WEsm7hutLiIV3RS46wxbwkCB/dUEeRlOdeUhX+IqYhk/7qJBTKFAK+Wiu1L RsDjjYjbpToZXGkhDOVYbyKdbLuyWIHu9C4X5J6JD82TZgoaogE0cJQALnMn78qv c5XLOaLmTxV5KX1Nm4zeqzaB9uj7BUuwXxj4JvdTKt6Ovr1JDqn8jrUiJFR8f4BA GUBXTPPXSMokk7W5nRGEMQE0q5dCNa6zG3JyyhxzOI2twhDHwMXv/StUfAuw+ZDQ ==
X-ME-Sender: <xms:gQnVXejT-dud-ETzV5oCnV1oj1uw0AyWlFpCLb_N3q9-v7juRdm7Ew>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudehtddgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesrgdtreerreertdenucfhrhhomhepfdeurhho nhcuifhonhgufigrnhgrfdcuoegsrhhonhhgsehfrghsthhmrghilhhtvggrmhdrtghomh eqnecurfgrrhgrmhepmhgrihhlfhhrohhmpegsrhhonhhgsehfrghsthhmrghilhhtvggr mhdrtghomhenucevlhhushhtvghrufhiiigvpedt
X-ME-Proxy: <xmx:gQnVXYrhg23z2jt6TTOCTsnEswDCXOcTVs314D0vZYJOmvHuq3YSOA> <xmx:gQnVXSzXxETcoFL6tyvxI2Mj6Z97k-tNtL-pJ1sCp9cNRYVcuoShEg> <xmx:gQnVXYzl4eibMFJeUsOxlC1KY0JlO_nWOSRh3os03G5GTBPfkwr1aQ> <xmx:ggnVXafCvto2LYAIUHzXEIEuaPZPbvUKsEbeHRlFkDDJzBUw5OsB-g>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9654230006F; Wed, 20 Nov 2019 04:38:09 -0500 (EST)
X-Mailer: Webmail Interface
User-Agent: Cyrus-JMAP/3.1.7-578-g826f590-fmstable-20191119v1
Mime-Version: 1.0
Message-Id: <>
In-Reply-To: <>
References: <> <>
Date: Wed, 20 Nov 2019 20:38:07 +1100
From: "Bron Gondwana" <>
To: "Timo Sirainen" <>
Content-Type: multipart/alternative; boundary=67fe222ee7c446c5b9ed99e74ca3834c
Archived-At: <>
Subject: Re: [Extra] QUOTA: representing "no limit" while still giving counts
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email mailstore and eXtensions To Revise or Amend <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Wed, 20 Nov 2019 09:38:13 -0000

On Wed, Nov 20, 2019, at 20:36, Timo Sirainen wrote:
> On 20. Nov 2019, at 10.06, Bron Gondwana <> wrote:
>> 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.
> What's wrong with just not sending the MESSAGE reply when it's unlimited?

Sometimes it's nice to know how much of something you have even when you don't have a limited bucket.


 Bron Gondwana, CEO, Fastmail Pty Ltd