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

Alexey Melnikov <alexey.melnikov@isode.com> Wed, 17 June 2020 12:32 UTC

Return-Path: <alexey.melnikov@isode.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 DCA5A3A040F for <extra@ietfa.amsl.com>; Wed, 17 Jun 2020 05:32:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=isode.com
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 2YD7DIPObtnD for <extra@ietfa.amsl.com>; Wed, 17 Jun 2020 05:32:43 -0700 (PDT)
Received: from waldorf.isode.com (waldorf.isode.com [62.232.206.188]) by ietfa.amsl.com (Postfix) with ESMTP id 73FB23A0366 for <extra@ietf.org>; Wed, 17 Jun 2020 05:32:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1592397162; d=isode.com; s=june2016; i=@isode.com; bh=X11+h+FttKS1fSKC5qxZIxKEz1UYyF7i7QDLJK2u6v4=; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description; b=j3Mv65Gq7DPlCfEi478jPWQ79TihYONjw0u+q3kJFfAT5a8tBk60Q8lhMUufT3hyGSZzyy Kls4nHmo4QdF+pQG7PRbjtXY6HRs3CbHKBh6DP/y51WUs7ynNbh4e2V7eUj0sMd1QuX1Yw nBFHGXsiuaYKuG6O5qo2E5oL5q4I+wc=;
Received: from [192.168.1.222] (host31-49-142-105.range31-49.btcentralplus.com [31.49.142.105]) by waldorf.isode.com (submission channel) via TCP with ESMTPSA id <XuoNaQA2n8bB@waldorf.isode.com>; Wed, 17 Jun 2020 13:32:42 +0100
To: Timo Sirainen <timo@sirainen.com>
Cc: Bron Gondwana <brong@fastmailteam.com>, extra@ietf.org
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>
From: Alexey Melnikov <alexey.melnikov@isode.com>
Message-ID: <0e65342e-abc4-cb65-b600-7f195f0bd2c2@isode.com>
Date: Wed, 17 Jun 2020 13:32:23 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0
In-Reply-To: <1BC59434-C16C-4A32-AB3C-D2783092CF9B@sirainen.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="------------F6D6EB6A8C63E51FAE1CC618"
Content-Language: en-GB
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/IfMnG9NYgf6yuM4nJQIXzMQiLpM>
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: Wed, 17 Jun 2020 12:32:45 -0000

On 17/06/2020 13:15, Timo Sirainen wrote:

> On 17. Jun 2020, at 14.51, Alexey Melnikov <alexey.melnikov@isode.com 
> <mailto:alexey.melnikov@isode.com>> wrote:
>>
>> On 17/06/2020 12:07, Bron Gondwana wrote:
>>
>>> On Wed, Jun 17, 2020, at 21:00, Alexey Melnikov wrote:
>>>>
>>>> To elaborate on why I excluded "literal" string is because response 
>>>> codes are defines as:
>>>>
>>>> atom [SP 1<any TEXT-CHAR except "]">]
>>>>
>>>> and TEXT-CHAR excludes CR and LF.
>>>>
>>>
>>> Here's another problem:
>>>
>>> . CREATE INBOX.HELLO[]
>>> . OK [MAILBOXID (f3633f0c-3a4d-4df2-9b2f-618464b97504)] Completed
>>>
>>> * LIST (\HasNoChildren) "." INBOX.HELLO[]
>>
>> Right, I was just about to mention that. I think we have a choice:
>>
>> 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.
Yes, I have some discomfort about this as well.
> We could of course send it only when client has used ENABLE IMAP4REV2 
> and then there wouldn't be any problems.
Right, this seems to be sufficient.
>>
>> 2) just describe limitations (e.g. no mailbox with "]" in it can have 
>> this response code) and make them a special case.
>>
>> Hopefully will discuss this later today at the interim meeting.
>>
>
> I'd rather avoid these kind of ugly special cases. It's just going to 
> cause bugs in both clients and servers.

I would rather avoid special cases as well.

I also noticed that tags also allow for "]".