Re: [Jmap] I-D Action: draft-ietf-jmap-mdn-01.txt

"Neil Jenkins" <neilj@fastmailteam.com> Thu, 21 March 2019 15:05 UTC

Return-Path: <neilj@fastmailteam.com>
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 9580813122A for <jmap@ietfa.amsl.com>; Thu, 21 Mar 2019 08:05:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 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_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=k8v3t/Tu; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=GWv/rczP
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 XEe9DC0QW2aq for <jmap@ietfa.amsl.com>; Thu, 21 Mar 2019 08:05:12 -0700 (PDT)
Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4BDB013123E for <jmap@ietf.org>; Thu, 21 Mar 2019 08:05:07 -0700 (PDT)
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 6219D245D0 for <jmap@ietf.org>; Thu, 21 Mar 2019 11:05:06 -0400 (EDT)
Received: from imap7 ([10.202.2.57]) by compute6.internal (MEProxy); Thu, 21 Mar 2019 11:05:06 -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=fm2; bh=Oa5Sc4C X4RJ8w9MvuLbfpV+HfRpR+KNgJt8VdIzHGK4=; b=k8v3t/Tu6MQSMWq20ipvOWb q/XOc6+Feem9gcX9Ej0nZ0bRufAllk00KqGupg4PVQYxd8DPfQtdWojEAuhQyNBX M57bW0sduFGLLOUQwAhVx+Z9zC5Ou98ggGkEuCoyJLSjnWSpgEZIK/Lw3ewThGzr fXaQyvS4/vRa4eBt04aiz3B/elkGzR6XbmtOPs+MMUjaXK66U7B+V+o71nUZo+do FLuFamcyM5wo2v98Av3ZKb1tFa2U0D49hk0sif1McRGhuWaXIAhUdfWDYl0Eb/yL Nk1hof4Ab76SeHPeNH6S0Bc2Rz3ZbwFFepHb+8rkrFJjRUmjQHe+KQUmhBieXkA= =
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=fm2; bh=Oa5Sc4 CX4RJ8w9MvuLbfpV+HfRpR+KNgJt8VdIzHGK4=; b=GWv/rczPgrlD2ZiyHrwoAe WyXifXk2i1oYIKBkdM3Y4y2DysneZ+EcUd0u3TgdLe45eR/vLjYv1+zO2jnsf9M/ Tu0+15U2+fYL/mhF3KkAa2pIZoZOZwN0c3yMMGlWilxjQClkQWA3+auLsAAhXgEy COWCUi0NdNX8JfvGZXDPSayDo1uuqQmCHfpXyWGtHw3gyIYqsQSd9RVFrPKBO5Xu j3TycgEctZQl0Ik+d8jBKGNn73uP/xqMlY+UD3hnCYq8mG+VtG2wtAwxVGcd0Kfz itvazWVVk8dx5LSGCT5V56ave9YGoBc0DZC4Cp7N9TWI6Rd/XmfMrCUVYDvPqwUg ==
X-ME-Sender: <xms:IaiTXMKC3d5pIsvA-QgUrXbhtf2gItVXkijUGXf1fDQoBIrxffqeMA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrieelgdehjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsegrtderreerredtnecuhfhrohhmpedfpfgvihhl ucflvghnkhhinhhsfdcuoehnvghilhhjsehfrghsthhmrghilhhtvggrmhdrtghomheqne cuffhomhgrihhnpehivghtfhdrohhrghdpihgrnhgrrdhorhhgpdhjmhgrphdrihhonecu rfgrrhgrmhepmhgrihhlfhhrohhmpehnvghilhhjsehfrghsthhmrghilhhtvggrmhdrtg homhenucevlhhushhtvghrufhiiigvpedt
X-ME-Proxy: <xmx:IaiTXM5WeanaTwmtfSTi9qeXf67TnCa7NJ6M5WJbw85h_5Xycul4wA> <xmx:IaiTXAhJhGpd4bQ_LZYsdSwvxgGAHpEb3u0F4U62391I4ab59SB1Eg> <xmx:IaiTXK_2adH3CfeZ7P4phGexaEYfqCV5UwqEHNLGIGiSADrgG5nXqQ> <xmx:IqiTXDHq2XrRVw7PVbSj-bjEm7iquPV3jU-J_hDICQpdOtxUQU94uA>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id BCF2920618; Thu, 21 Mar 2019 11:05:05 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.1.5-976-g376b1f3-fmstable-20190314v3
Mime-Version: 1.0
X-Me-Personality: 64588216
Message-Id: <879444dd-28a7-4661-a057-e2f4d142eda3@beta.fastmail.com>
In-Reply-To: <155197652116.24727.17736633253141543762@ietfa.amsl.com>
References: <155197652116.24727.17736633253141543762@ietfa.amsl.com>
Date: Thu, 21 Mar 2019 11:05:05 -0400
From: Neil Jenkins <neilj@fastmailteam.com>
To: IETF JMAP Mailing List <jmap@ietf.org>
Content-Type: multipart/alternative; boundary="790e9b2f930544c2918c9ce7e0fbc40a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/jmap/jdVGSl7z0NQ4eC4KqLelXugfcZA>
Subject: Re: [Jmap] I-D Action: draft-ietf-jmap-mdn-01.txt
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: Thu, 21 Mar 2019 15:05:15 -0000

A few comments on the new draft:

>   The client SHOULD NOT issue a sendMDN request if the message has the
   "$MDNSent" keyword set.  In this case, the server MUST reject the
   submission with a standard "forbiddenToSend" SetError.

I don't think this should be a `forbiddenToSend` error; that implies the user does not have permission to send. An `alreadyExists` error might be appropriate, or some kind of new "precondition-failed" type error.

>  o  *created*: "String[EmailSubmission]" A map of creation id (client-
      specified) to an email sent from the referenced properties.

The type says this is a map to EmailSubmission objects, but the description says it is a map to an Email. Which is it?

> *
> EmailSubmission/parseMDN

*

This method is nothing to do with EmailSubmission really. Probably should be called *MDN/parse*.

> *
> 4.2 <https://tools.ietf.org/html/draft-ietf-jmap-mdn-01#section-4.2>.  Asking for MDN when sending an email

*

This example is wrong. You can't set a "headers" property <https://jmap.io/spec-mail.html#email/set> in Email/set. You need to set it as a specific header, e.g.

"header:Disposition-Notification-To": "joe@example.com"

>  The client issues a parse request:

            [[ "EmailSubmission/parseMDN", {
              "accountId": "ue150411c",
              "blobIds: "0f9f65ab-dc7b-4146-850f-6e4881093965"
            }, "0" ]]

This blobIds argument should be an array, but the example is just passing a string.

> *
> 5.2 <https://tools.ietf.org/html/draft-ietf-jmap-mdn-01#section-5.2>.  Registration of JMAP keyword '$MDNSent'

*

This keyword is already registered <https://www.iana.org/assignments/imap-jmap-keywords/imap-jmap-keywords.xhtml>. There is no need to register it again (indeed, this is not allowed).

Cheers,
Neil.