Re: [Extra] IMAP4rev2: how to signal canonical mailbox name after CREATE

Bron Gondwana <brong@fastmailteam.com> Mon, 13 July 2020 22:24 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 D9E003A0BDD for <extra@ietfa.amsl.com>; Mon, 13 Jul 2020 15:24:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.119
X-Spam-Level:
X-Spam-Status: No, score=-2.119 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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=BdupkFD8; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=fBnQURtu
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 b0UPBmId1lTT for <extra@ietfa.amsl.com>; Mon, 13 Jul 2020 15:24:24 -0700 (PDT)
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 968253A003E for <extra@ietf.org>; Mon, 13 Jul 2020 15:24:24 -0700 (PDT)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id AB7EB9AB for <extra@ietf.org>; Mon, 13 Jul 2020 18:24:23 -0400 (EDT)
Received: from imap7 ([10.202.2.57]) by compute1.internal (MEProxy); Mon, 13 Jul 2020 18:24:23 -0400
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=fm3; bh=qCGRbeQ bb80M5G0DP1OzLTQ2/BLw+XEuB3S9OzG0vDE=; b=BdupkFD8mP/2KkAj1V2Llzm pM6JfMerAXjYKMeoEXmHCtZvrBF1ytNmQhejTTR0D3AY0CS521ywMyLcSbS2vl7P 64rDHvodxl3QzsT5fzmHqNkW0arHUEEQLEG4QfLpg6VvJ4iimVvySSiYx2SYsSSr doNQ5zQt7+rwB8BkhdXXyK4dyMgx8B5BlY16FchpAzpU2FijwqAXoFWMYdLNcu+m 9QEXNEgOUe5Ehbb4HnUKrt3ZIVqIMUiDwdrl/ZQ5IA6CIG6AAgGSHxTWac9Qds+u yRNRiguWay8OBajKbDsKaznVKN7GDsJJRaot0o5yGYxrTQNNOzSwWvPgSt6Vmgw= =
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=fm3; bh=qCGRbe Qbb80M5G0DP1OzLTQ2/BLw+XEuB3S9OzG0vDE=; b=fBnQURtumV2vPHX7hqNakw yfx+8LJtGI9HMVZT5HPnW03Nra2/zSkWRjcBf7F1Wq+GhNEmueXWV0ui6ESyLfX5 OnjgxThG666KhStMHhST4E499KN8WakDCJM4VKmdq/ZuZZspMHNI6Zc3ylwmthm+ RnMid+R+Hj73ei1sDFpops93QOIqFWCfn4ptz6YbjoOfOBBE3LgBG9chYP2k9J/i bAaQVqop89q2+ltODUme9+a4i4up1AuGgLTE9yfs5dp/Q6JzyIKJ7WASfdaYktzX i6lHGA6S5YAkyDCJ1E8vqUM+hQqLpJb5ueWhYa9B2NUdp6RfgDtnpwOFAScD/ZSQ ==
X-ME-Sender: <xms:Ft8MXzYGOEUVwAXp6TfUvyY3YWAaDPU_hCri9Sv32owXAZtnaBJWWQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrvdelgddtiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrgdtre erreerjeenucfhrhhomhepfdeurhhonhcuifhonhgufigrnhgrfdcuoegsrhhonhhgsehf rghsthhmrghilhhtvggrmhdrtghomheqnecuggftrfgrthhtvghrnheptdehteegfeevte duffevteehfffghefhvdevkeeuhfehueetudehgfegieekjeetnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsghrohhnghesfhgrshhtmhgrih hlthgvrghmrdgtohhm
X-ME-Proxy: <xmx:Ft8MXyZFLaQ-Lw-lDvbWKxeuZ4kJcEDp-slZ7_MRtHQRVxSYqBjPaQ> <xmx:Ft8MX1_tzj0anH1rCXcSpezQPJigIYBqxRLn5w_egeSWBGMm8gzmfg> <xmx:Ft8MX5rX1bRXX9KRLyYWhqGEMMJqFqyZZXKPDr2i863UaXEpo4vBxg> <xmx:F98MX_4h2gwjDANkhusj9B3wtG-HlJgcEEb6_O4D3dCgOkv9fujZsA>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id BF91318012D; Mon, 13 Jul 2020 18:24:22 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.3.0-dev0-637-g57f734b-fm-idx2020-20200709.002-g57f734bf
Mime-Version: 1.0
Message-Id: <27b47fbc-c487-45c7-ab7c-e4b96a5f2cfc@dogfood.fastmail.com>
In-Reply-To: <DD5A3CDF-8052-4C09-92F3-BA25A3F3B57D@isode.com>
References: <9fdfa8e8-147d-4248-a0c1-48de171ac675@dogfood.fastmail.com> <872422BE-C8FA-4AA0-8EF1-2ECA79F64926@sirainen.com> <96BAB7A5-420A-49AF-977F-1F722746E5DD@isode.com> <5FAA4D04-F1A8-4E23-B9F2-817EBAFF8021@sirainen.com> <5fe122d9-5313-8be1-199e-075a61d1bb2a@isode.com> <0fd3e8e2-1865-4021-b80c-11c4987b7d64@dogfood.fastmail.com> <9c674fad-dabe-cc9d-649d-30cb40f5c506@isode.com> <1BC59434-C16C-4A32-AB3C-D2783092CF9B@sirainen.com> <2fe5352f-f2c5-4e50-b9c4-6da38fbcc4d0@dogfood.fastmail.com> <93c5effc-bf6c-b36b-282f-c334883c2966@isode.com> <94C68CF3-1B2C-425B-8EE3-D31AEB2AE1C8@sirainen.com> <DD5A3CDF-8052-4C09-92F3-BA25A3F3B57D@isode.com>
Date: Tue, 14 Jul 2020 08:24:02 +1000
From: Bron Gondwana <brong@fastmailteam.com>
To: extra@ietf.org
Content-Type: multipart/alternative; boundary="0c8a18b4bb874690ac272a6246acb308"
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/5RF1fJoEpDn_8QwLWK7btTpE5wY>
Subject: Re: [Extra] IMAP4rev2: how to signal canonical mailbox name after CREATE
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: Mon, 13 Jul 2020 22:24:35 -0000


On Tue, Jul 14, 2020, at 01:23, Alexey Melnikov wrote:
> 
> Hi Timo,
> 
> On 10 Jul 2020, at 07:44, Timo Sirainen <timo@sirainen.com> wrote:
>> On 6.. Jul 2020, at 20.38, Alexey Melnikov <alexey.melnikov@isode.com> wrote:
>>> 
>>> On 17/06/2020 13:27, Bron Gondwana wrote:

>>>> On Wed, Jun 17, 2020, at 22:15, Timo Sirainen wrote:
>>>>>> 1) abandon use of this response code (and use a new response instead), e.g.

>>>>>> * CREATED "a123" "Denormalized name" MAILBOXID "123456"

>>>>>>  This would require clients to ignore an extra response, if they don't recognize it.

>>>>> 
>>>>> Somehow I've a feeling that there are going to be clients that will break if they see these kind of unknown untagged replies. But that's just a guess, so maybe not. We could of course send it only when client has used ENABLE IMAP4REV2 and then there wouldn't be any problems..
>>>> 
>>>> I like this. Only send if IMAP4REV2 is enabled and all[tm] your problems go away.
>>> Following on the suggestion to use LIST extended data items for this


>>>  C: C04 create NonCannonicalName
>>>  S: * LIST () "/" "CannonicalName" ("TAG" ("C04"))
>>>  S: C04 OK done

>>> In the example above imagine that "CannonicalName" is the canonical (normalized) version of "NonCannonicalName"


>>> And the corresponding ABNF:
>>> 
>>> tag-extended-item = "TAG" SP "(" tag-string ")"
>>>  ; Complies with &lt;mbox-list-extended-item&gt;
>>>  ; The value complies with &lt;tagged-ext-val&gt;
>>>  ; The value is the tag of the corresponding
>>>  ; CREATE command.

>>> And a similar extended data item can be used to return MAILBOXID (when supported).

>>> Does this work for people?

>> OK. But should we return this always or only when canonical name changes? With MAILBOXID at least always. I guess it could be nice to do it always in any case so clients don't forget to support it.
> 
> (The same answer applies to both TAG and OLDNAME)
> I think when it changes (or MAILBOXID is returned), but this doesn’t break if the server returns it always.
> 
>> But in SELECT case perhaps only return it on name change?
> Yes, save these extra bytes :-).

I disagree - I'd rather just have it ALWAYS be in the SELECT/EXAMINE response. It will still fit within a single packet, so it's not going to cost any more on the wire.

Bron.

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