Re: [Jmap] Working group last call: draft-ietf-jmap-mdn-03

cketti <ck@cketti.de> Sat, 23 November 2019 18:44 UTC

Return-Path: <ck@cketti.de>
X-Original-To: jmap@ietfa.amsl.com
Delivered-To: jmap@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C840E12004F for <jmap@ietfa.amsl.com>; Sat, 23 Nov 2019 10:44:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.698
X-Spam-Level:
X-Spam-Status: No, score=-2.698 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_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=cketti.de
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 rCjo67S3qVcu for <jmap@ietfa.amsl.com>; Sat, 23 Nov 2019 10:44:22 -0800 (PST)
Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6295E120047 for <jmap@ietf.org>; Sat, 23 Nov 2019 10:44:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1574534659; s=strato-dkim-0002; d=cketti.de; h=In-Reply-To:Date:Message-ID:To:From:References:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=0IY7yx1hnxuz6JGlpbfpvKPEwxQUltUN27jtX2VtpZQ=; b=OvMrH6gK3tSw1r1phrImqN8U6pta55iQZDymeICf+MOnlkpbdtQ003fU47oaJay1V7 4fNYUNtYg646zx76iZBVPnylJtP8BrYZ+cR9OVgSPTq/++psj+Jg1Ab3pXGJUWZlbXVc DmAXIHaRWtdsxg6vqhsTMZnCxY0p4OYEN+6wDSMnSwyIoWpRGnhWDmhAYg2eQ5SY5ycU HaF0F0R1GaIVaDwcAAbqB6JNG1LFVc6UEbDnM8UjjtgPpLdQJQckSCvPlzR5sGxabxTd HdDVf2X6B4Xv+0XsYiwSZB3RFthaKnMZoGX+Zo2ky6BT1TKNdU22fyUJTc/ukpFw8VdC GO3w==
X-RZG-AUTH: ":L2ckdkutb+sebmQwUUWXIIIYdHNZM+Bv5gC+3oIudZGrZypc/JzmdacuOGa/LyA0M07v/qat/O8ZrBG8CscRINnCHA=="
X-RZG-CLASS-ID: mo00
Received: from [IPv6:2a02:2450:102b:ad9:a5bd:680:4c92:d6b0] by smtp.strato.de (RZmta 44.29.0 AUTH) with ESMTPSA id k0b9a3vANIiIvly (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for <jmap@ietf.org>; Sat, 23 Nov 2019 19:44:18 +0100 (CET)
References: <1776898c-03ee-4d34-b254-a9c638dd3741@dogfood.fastmail.com>
From: cketti <ck@cketti.de>
Openpgp: preference=signencrypt
Autocrypt: addr=ck@cketti.de; prefer-encrypt=mutual; keydata= mQINBE49+OsBEADIu2zVIYllkqLYaCZq2d8r80titzegJiXTaW8fRS0FKGE7KmNttWvWdiyL qvWlP4Py9OZPmEBdz8AaPxqCFmVZfJimf28CW0wz2sRCYmmbQqaHFfpDrK+EJofckOu2j81c oaFVLbvkvUNhWU7/DKyv4+EBFt9fjxptbfpNKttwI0aeUVCa+Z/m18+OLpeE33BXd5POrBb4 edAlMCwKk8m4nDXJ3B+KmR0qfCLB79gqEjsDLl+y65NcRk5uxIk53NRXHkmQujX1bsf5VFLh a4KbUaB7BCtcSi1rY99WXfO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L7Vm+ptEJ/e/ABOd6+5rB8GatOrD1yGSaQpegk3sjK6lP dBviSWNwXz/axbFPTi5A0a7ABC5XiPYlz0BsOiMXs3YvdwqmPmOMHgo7WMZv+byscLLIPwC1 ZDP1X7VoFkUp2Zp2cLm4Ac4MMsAcBh8Tx8+wld5QSmX8PFNy+DHd7tWzFLumPo1vt9tg/u/m Wi3SXo5piXBLy2iLXXOtCB0zPxm7Ve0w4qkGkZsi2OSsZ8Bi7YXGFLBiOx2AzahGtfnEXLQf JRFqYE4xyp8HprweXNXz8WqO8NeTtLb0gl9pA+VDKAG71iSb8XFEz0zwRB02FqwJPjcuwm3T APu9a/eNkV6PV3ZuIao3zHA13UJn437XxQda7AXeULovInXkD+8qZZbFgvHyVJFjet5XluYM rC8fTI+m7ulweK2Etcx9pHhrWXuEKpcbLOyT1bCcw/cUqLYPhv1m+xdxyx86XnqpMM1V
To: jmap@ietf.org
Message-ID: <69301983-f75d-ce20-4b63-b7a3e2b58e11@cketti.de>
Date: Sat, 23 Nov 2019 19:44:18 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <1776898c-03ee-4d34-b254-a9c638dd3741@dogfood.fastmail.com>
Content-Type: multipart/alternative; boundary="------------725CA7DE59E73229B0113CD4"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/jmap/CRnB1pwwOwd9vvDsUfAxYN2rIdc>
Subject: Re: [Jmap] Working group last call: draft-ietf-jmap-mdn-03
X-BeenThere: jmap@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: JSON Message Access Protocol <jmap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jmap>, <mailto:jmap-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jmap/>
List-Post: <mailto:jmap@ietf.org>
List-Help: <mailto:jmap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jmap>, <mailto:jmap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 23 Nov 2019 18:44:26 -0000

          Capability

>
>       1.3. Addition to the capabilities object
>
>
>
>    The capabilities object is returned as part of the standard JMAP
>    Session object; see the JMAP spec.  Servers supporting _this_
>    specification MUST add a property called "urn:ietf:params:jmap:mdn"
>    to the capabilities object.

This could be more explicit and require the value to be an empty object,
like it is for e.g. "urn:ietf:params:jmap:vacationresponse".

But I think the capability should also be added to the
"accountCapabilities" property of all accounts that support "MDN/set". I
assume in most deployment scenarios this will only be the case for
accounts that also have the "urn:ietf:params:jmap:submission" capability.
The availability of "MDN/parse" can then be tied to the capability being
present in "capabilities". The availability of "MDN/set" to the
capability being present in "accountCapabilities" of the specific account.

Text suggestion:

> Capabilities are announced as part of the standard JMAP Session
> resource; see [@!RFC8620], section 2.
>
> Support for the "MDN" data type and the "MDN/parse" method are
> represented by the capability "urn:ietf:params:jmap:mdn" being present
> in the "capabilities" property.
> The capability "urn:ietf:params:jmap:mdn" being present in the
> "accountCapabilities" property of an account represents support for
> creating and sending MDN messages via the "MDN/set" method.
> Servers that include the capability in one or more
> "accountCapabilities" properties MUST also include the property in the
> "capabilities" property.
>
> The value of this "urn:ietf:params:jmap:mdn" property is an empty
> object in both the JMAP session "capabilities" property and an
> account's "accountCapabilities" property.


          MDN/set and Email object modifications

"EmailSubmission/set" can also modify referenced "Email" objects. RFC
8621 requires the method to include an "Email/set" response with the
changes. It seems like a good idea to copy this mechanism for "MDN/set".

Text suggestion (mostly copied from RFC 8621):

> After all items in the "MDN/set" invocation have been processed, a
> single implicit "Email/set" call MUST be made to set the "$MDNSent"
> keyword on "Email" objects referenced by "MDN" objects that have been
> successfully created. The response to this MUST be returned after the
> "MDN/set" response.


          Minor issues

>    o  *forEmailId*: "String" Email Id of the received email this MDN is
>       relative to.

Expanding on the comment from Neil, the type should be "Id|null".


>    The Email/parse method takes the following arguments:
>
>    o  *accountId*: "String" The id of the account to use.

This should be "MDN/parse method" and the type for "accountId" should be
"Id".

Best,
cketti