Re: [Extra] Protocol Action: 'The JMAPACCESS Extension for IMAP' to Proposed Standard (draft-ietf-extra-jmapaccess-08.txt)

Ken Murchison <murch@fastmail.com> Wed, 06 March 2024 11:55 UTC

Return-Path: <murch@fastmail.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 69A3AC14F5F2 for <extra@ietfa.amsl.com>; Wed, 6 Mar 2024 03:55:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.895
X-Spam-Level:
X-Spam-Status: No, score=-2.895 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.091, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fastmail.com header.b="vSHdV+OV"; dkim=pass (2048-bit key) header.d=messagingengine.com header.b="PrHZ9gw8"
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NVVqV2TtRZfT for <extra@ietfa.amsl.com>; Wed, 6 Mar 2024 03:55:02 -0800 (PST)
Received: from wfout7-smtp.messagingengine.com (wfout7-smtp.messagingengine.com [64.147.123.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A8AE5C14F5EF for <extra@ietf.org>; Wed, 6 Mar 2024 03:55:02 -0800 (PST)
Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.west.internal (Postfix) with ESMTP id 03E901C000A4 for <extra@ietf.org>; Wed, 6 Mar 2024 06:54:59 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 06 Mar 2024 06:55:00 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1709726099; x=1709812499; bh=qPuHfni6b3 8UKH9+NBwjUw56Hy98tLQFvW6RmyLwI8Y=; b=vSHdV+OV/Qq3PdzOb5gXUis3f+ EZqGTCjXdc8Yh0IsXzgWlD9mOHXCw9RZDTWLTp9Yh2DYP2RhEtZiym15fX6yVCeP fC2C4O88ZldE7buACfc+y0jPI25fW0me3iT0SnNAUmYEd2dMQTq6MTI3nz2BURDb lOOZpLas1FcU0PeGgEF8PuBrL/liz52KgzNzjYkaVGN1jLU/L9vf4j3BN3/5mU4S Pyb5fpajrVeQNmpIgrGD0eNP6cd2BvQsZRg8MRfdEo24YXO0GKmNZ31AuDfSDzKr lp1eJ4ZqqcqmzLUndDRR88KEv2WfzNnXoGTybRAGE3TiI5THCoQZYp8wMA3Q==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1709726099; x=1709812499; bh=qPuHfni6b38UKH9+NBwjUw56Hy98 tLQFvW6RmyLwI8Y=; b=PrHZ9gw8rPQln7Jy0LYdx1ZXrnV5TN+i3YwBsbUuDoIq RZjQfGu6+I9cihX2ANY51Z9sZUyxEiadTyp7aYOC0/DT4Zhix1Q/ylGZAGGjjUaG LQiLWGVP1pYftzhCoeyOPGFCRIjX8hmiy5/vGowWOkUmbQe74Z6MuOg8zHLCoNot AvAIeEgTphzRUYjrOenuLWNsmlyk/fNjefN2SFys5tB4niJ3lf5mjg7nSH5DYBQk Pz3KW0SIuW8ZjFO28YW3y/jAkHXLyCEHiN1LS7IhqsHWysUFIuviMtbfhOG6CMYd 7l6HfL4zdLyd8RM6xiVADzdC4xnDHaGF2/GDUlICTA==
X-ME-Sender: <xms:k1noZSLtbnmV_erxwLYm3JiddBdyxCSsBdz1PWqQl2a82amG1JJTRw> <xme:k1noZaKflbwQTC_tQyVX95GB8zRf3gnr5sr6n8cBZqRSlI28QoLuWcLH_yJjTqZ3W hTDS4tSYL5UZA>
X-ME-Received: <xmr:k1noZSvc2FXKD2Fw7Evkgep0H7-lm4zibH1tJmYcNjPZN-SCH6sya1Zn9yQrhNZnjSKxE3vuIzOw8sbSKgKVKjYnXITzkILPLA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledriedugdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurheptgfkffggfgfuvfhfhfgjsegrtderre dtfeejnecuhfhrohhmpefmvghnucfouhhrtghhihhsohhnuceomhhurhgthhesfhgrshht mhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeffteekteeguedvveetjedtudfgff ekteduteduheeiheegveffgfelfeejffetudenucffohhmrghinhepihgvthhfrdhorhhg necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhurh gthhesfhgrshhtmhgrihhlrdgtohhm
X-ME-Proxy: <xmx:k1noZXbMq-lLRk23AOW_VCNho0z49mVCreAw2mawt5p9vybqeROqLg> <xmx:k1noZZbW4-SinAeSXd7HfHvVJXapfp0rOHZjJRcXlLlp7O21tEgLMg> <xmx:k1noZTC--45HwDzqX3IRN9sbpS2hzHp8eCETth4cj_0igjEeIqWrzw> <xmx:k1noZaAzN3F8U9v1rkVEB-qQFseFwcLxF_e_iT9Zg0wzdfmv246JyL9uY84>
Feedback-ID: ibf914243:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for <extra@ietf.org>; Wed, 6 Mar 2024 06:54:59 -0500 (EST)
Content-Type: multipart/alternative; boundary="------------NaSVd4WqHcWWtBTJWQNUL20P"
Message-ID: <243d773f-9eb4-c7e0-608e-687387c86b71@fastmail.com>
Date: Wed, 06 Mar 2024 06:54:57 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1
Content-Language: en-US
To: extra@ietf.org
References: <170933386873.22107.4252444886939473126@ietfa.amsl.com> <5e429fb1-13e3-b169-9c2e-c0b6f4c6ea10@fastmail.com> <954d0011-23d4-da68-151a-1f916def1aab@fastmail.com> <b365ba35-1f51-1947-5d14-caae0a4c46ad@fastmail.com> <555fd26d-9b51-07d2-7cf8-fdad30bebda1@fastmail.com>
From: Ken Murchison <murch@fastmail.com>
In-Reply-To: <555fd26d-9b51-07d2-7cf8-fdad30bebda1@fastmail.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/8_hvg326ngPs_fawH6EA8TP5JjE>
Subject: Re: [Extra] Protocol Action: 'The JMAPACCESS Extension for IMAP' to Proposed Standard (draft-ietf-extra-jmapaccess-08.txt)
X-BeenThere: extra@ietf.org
X-Mailman-Version: 2.1.39
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, 06 Mar 2024 11:55:07 -0000

On 3/4/24 5:25 PM, Ken Murchison wrote:
>
> Hmm.  There is an issue with returning the JMAPACCESS response code if 
> a server also wants to use the CAPABILITY response code for telling 
> the client which capabilities are available post-authentication.  The 
> IMAP grammer only allows one repsonse code in a tagged response, correct?
>
> Perhaps rather than JMAPACCESS being a response code, its just a 
> post-auth capability?
>
Actually, I just noticed that Example 2 shows the JMAPACCESS response 
code being returned in an untagged OK response.  I missed it because in 
the HTML rendering of the doc, the tagged response is on the same line 
as the untagged one.

If JMAPACCESS can be returned in either tagged or untagged responses, 
then this solves the issue with the CAPABILITY response code, and the 
work-in-progress Cyrus implementation now does this:

S: * OK [CAPABILITY IMAP4rev1 IMAP4rev2 AUTH=LOGIN AUTH=PLAIN ENABLE ID JMAPACCESS LITERAL+ SASL_IR STARTTLS] localhost Cyrus IMAP 3.11.0-alpha0-197-g65bfbefdd server ready
C: L01 LOGIN ken {7}
S: + go ahead
C: <omitted>
S: * OK [JMAPACCESS "https://localhost/jmap  <https://localhost/jmap>"] This server is also accessible via JMAP, see RFC8620
S: L01 OK [CAPABILITY IMAP4rev1 IMAP4rev2 ACL ANNOTATE-EXPERIMENT-1 APPENDLIMIT=2147483647 BINARY CATENATE CHILDREN COMPRESS=DEFLATE CONDSTORE CREATE-SPECIAL-USE ENABLE ESEARCH ESORT ID IDLE INPROGRESS LIST-EXTENDED LIST-METADATA LIST-MYRIGHTS LIST-STATUS LITERAL+ LOGINDISABLED MAILBOX-REFERRALS METADATA MOVE MULTIAPPEND MULTISEARCH NAMESPACE NOTIFY OBJECTID PARTIAL PREVIEW QRESYNC QUOTA QUOTA=RES-STORAGE QUOTA=RES-MESSAGE QUOTA=RES-ANNOTATION-STORAGE QUOTA=RES-MAILBOX QUOTASET REPLACE RIGHTS=kxten SAVEDATE SEARCH=FUZZY SEARCHRES SORT SORT=DISPLAY SPECIAL-USE STATUS=SIZE THREAD=ORDEREDSUBJECT THREAD=REFERENCES UIDONLY UIDPLUS UNSELECT URL-PARTIAL URLAUTH URLAUTH=BINARY WITHIN DIGEST=SHA1 NO_ATOMIC_RENAME SCAN SORT=MODSEQ SORT=UID THREAD=REFS X-CREATEDMODSEQ X-REPLICATION X-REPLICATION-ARCHIVE X-SIEVE-MAILBOX XCONVERSATIONS XLIST XMOVE] User logged in SESSIONID=<localhost-1709666786-3160805-1-5696077241981360779>


If we choose to stick with JMAPACCESS being a response code and not just 
a capability, perhaps the doc should explicitly call out that it can be 
used in tagged OR untagged responses.


> On 3/4/24 5:07 PM, Ken Murchison wrote:
>>
>> Sorry to keep replying to myself.
>>
>> It appears to me that the JMAPACCESS capability is useless unless its 
>> advertised pre-authentication, correct?  Otherwise, the client could 
>> receive a JMAPACCESS response code prior to knowing that it should 
>> expect one.
>>
>>
>> On 3/4/24 5:00 PM, Ken Murchison wrote:
>>>
>>> Oh, and a third point:
>>>
>>>   * The IANA section needs to register the JMAPACCESS capability.
>>>
>>>
>>> On 3/4/24 4:46 PM, Ken Murchison wrote:
>>>>
>>>> I gave this another read as I get ready to add support to Cyrus.  
>>>> Two comments:
>>>>
>>>>   * The DEBUGGING response code was removed from this spec, so I
>>>>     think the second paragraph of the introduction should also be
>>>>     removed.
>>>>   * The ABNF for the JMAPACCESS response code simply uses the
>>>>     'quoted' token where the JMAP Session URL is located.  I wonder
>>>>     if we need at least a comment that states that this should be
>>>>     the URL for JMAP Session resource, or maybe even go one step
>>>>     further and define it something like:
>>>>
>>>>     resp-code-jmapaccess    = "JMAPACCESS" SP jmap-session-url
>>>>
>>>>     jmap-session-url        = QUOTE https-URI DQUOTE
>>>>                                   ; https-URI defined in RFC 9110, 
>>>> Section 2.7.2
>>>>
>>>>
>>>> On 3/1/24 5:57 PM, The IESG wrote:
>>>>> The IESG has approved the following document:
>>>>> - 'The JMAPACCESS Extension for IMAP'
>>>>>    (draft-ietf-extra-jmapaccess-08.txt) as Proposed Standard
>>>>>
>>>>> This document is the product of the Email mailstore and eXtensions To Revise
>>>>> or Amend Working Group.
>>>>>
>>>>> The IESG contact persons are Murray Kucherawy and Francesca Palombini.
>>>>>
>>>>> A URL of this Internet-Draft is:
>>>>> https://datatracker.ietf.org/doc/draft-ietf-extra-jmapaccess/
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Technical Summary
>>>>>
>>>>>     This document defines an IMAP extension to let clients know that the
>>>>>     messages in this IMAP server are also available via JMAP, and how.
>>>>>     It is intended for clients that want to migrate gradually to JMAP.
>>>>>
>>>>> Working Group Summary
>>>>>
>>>>>     This is a short document with WG consensus to proceed.
>>>>>     Nothing was weird or controversial.
>>>>>
>>>>> Document Quality
>>>>>
>>>>>     There are no known implementations but multiple participants
>>>>>     have expressed intent to implement.
>>>>>
>>>>>     No special reviews were received or were required as a result
>>>>>     of Last Call.
>>>>>
>>>>> Personnel
>>>>>
>>>>>     The Document Shepherd for this document is Jiankang Yao. The Responsible
>>>>>     Area Director is Murray Kucherawy.
>>>>>
>>> -- 
>>> Kenneth Murchison
>>> Senior Software Developer
>>> Fastmail US LLC
>> -- 
>> Kenneth Murchison
>> Senior Software Developer
>> Fastmail US LLC
>>
>> _______________________________________________
>> Extra mailing list
>> Extra@ietf.org
>> https://www.ietf.org/mailman/listinfo/extra
> -- 
> Kenneth Murchison
> Senior Software Developer
> Fastmail US LLC