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

Timo Sirainen <timo@sirainen.com> Wed, 20 November 2019 09:36 UTC

Return-Path: <timo@sirainen.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 BFAF4120AC6 for <extra@ietfa.amsl.com>; Wed, 20 Nov 2019 01:36:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 FyCXqCaMRX_9 for <extra@ietfa.amsl.com>; Wed, 20 Nov 2019 01:36:24 -0800 (PST)
Received: from sirainen.com (mail.sirainen.com [94.237.26.55]) by ietfa.amsl.com (Postfix) with ESMTP id DDD231208E6 for <extra@ietf.org>; Wed, 20 Nov 2019 01:36:23 -0800 (PST)
Received: from [192.168.10.100] (unknown [91.155.205.240]) by sirainen.com (Postfix) with ESMTPSA id 664222B3C7E; Wed, 20 Nov 2019 09:36:22 +0000 (UTC)
From: Timo Sirainen <timo@sirainen.com>
Message-Id: <77D3433C-4CF4-485A-A2FB-42D80E94889D@sirainen.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_8B6FFA40-5FD8-4D92-A318-FA9FF6483E14"
Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3601.0.10\))
Date: Wed, 20 Nov 2019 11:36:21 +0200
In-Reply-To: <43c6b1ea-8d63-4bcf-9aed-36154481b4f6@dogfood.fastmail.com>
Cc: extra@ietf.org
To: Bron Gondwana <brong@fastmailteam.com>
References: <43c6b1ea-8d63-4bcf-9aed-36154481b4f6@dogfood.fastmail.com>
X-Mailer: Apple Mail (2.3601.0.10)
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/bBm51Nozr-Xq9xXA56IUKyCjfE8>
X-Mailman-Approved-At: Wed, 20 Nov 2019 01:40:38 -0800
Subject: Re: [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 09:37:58 -0000

On 20. Nov 2019, at 10.06, Bron Gondwana <brong@fastmailteam.com> 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?