Re: [Jmap] Email/get after an Email/set with create

mildred-ml@mildred.fr Wed, 10 November 2021 21:57 UTC

Return-Path: <mildred-ml@mildred.fr>
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 3AA403A1417 for <jmap@ietfa.amsl.com>; Wed, 10 Nov 2021 13:57:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.087
X-Spam-Level:
X-Spam-Status: No, score=-2.087 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, T_SPF_PERMERROR=0.01, UNPARSEABLE_RELAY=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=mildred.fr
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 HbaOJ6qtMosq for <jmap@ietfa.amsl.com>; Wed, 10 Nov 2021 13:57:23 -0800 (PST)
Received: from ellomb.netlib.re (elyas.mildred.fr [193.33.56.74]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A3FDD3A1415 for <jmap@ietf.org>; Wed, 10 Nov 2021 13:57:21 -0800 (PST)
Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by ellomb.netlib.re (Postfix) with ESMTPA id 4F3646AD4D88 for <jmap@ietf.org>; Wed, 10 Nov 2021 21:57:15 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mildred.fr; s=dkim; t=1636581435; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=sdVX9wrFtaUxIud9ySbV8eDXwafXr3LBU3llzOrYGds=; b=h1JG3vMEqfebjzvnCk741M5mNIXWpo4g+OYC6gdxnStOgmhuESPk8PEAMLwO834fwAHqjc qd33oFZmQ80E/xS3Ep8Y2Pp/dxPL0leNzPPa3lh7tz6gSZ/ekxU1U0iOgHmrUtgGDIztS+ mIUCoNI/w6ERP48ecPsPs2v1GKEvQ0Q=
Content-Type: multipart/alternative; boundary="------------3g9cmtUpPS0ZRtCyq2Z0mP0I"
Message-ID: <bb15bffb-3aa9-79b3-7751-3cc97853103d@mildred.fr>
Date: Wed, 10 Nov 2021 22:57:14 +0100
MIME-Version: 1.0
Content-Language: fr
To: jmap@ietf.org
References: <0f29c977-e1f3-2275-7628-5f61e3eb4f33@mildred.fr> <0bc38380-7d5f-4de6-8cbb-6a4a09c60f7d@dogfood.fastmail.com>
From: mildred-ml@mildred.fr
In-Reply-To: <0bc38380-7d5f-4de6-8cbb-6a4a09c60f7d@dogfood.fastmail.com>
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mildred.fr; s=dkim; t=1636581435; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=sdVX9wrFtaUxIud9ySbV8eDXwafXr3LBU3llzOrYGds=; b=kKTusIM+iBNxnPUCL+oydc+oNSvVo/anDTN5Fxc+3GFHwSTnJcw4wCT7mybWvQcwqURr4i R4rxwtpPiTMMK+GLIBM+idpz7/q8B/LNqlb2lg8X22tAjlAQvS5MsDN40yU3Waaj3cY0HZ /znf7mh/nOK9arzcopUO4p5hh91wRis=
ARC-Seal: i=1; s=dkim; d=mildred.fr; t=1636581435; a=rsa-sha256; cv=none; b=WeF3LJWjjzBAYY9GDaXAisJ3nlcuewxoa2JH4gsRwbEEqitR3i7suwoLgCXHAFGeyhFkOI zAms5hy/08y2FnU1OmFGaB1FtEnRidhe7Icz2I4Ea2K7QLm39eu4ntx+BFuQzCSha8Dhfx XGruNlkf8r8/4xhrcgBl4PWUkpehHFs=
ARC-Authentication-Results: i=1; ellomb.netlib.re; auth=pass smtp.auth=mildred@mildred.fr smtp.mailfrom=mildred-ml@mildred.fr
Authentication-Results: ellomb.netlib.re; auth=pass smtp.auth=mildred@mildred.fr smtp.mailfrom=mildred-ml@mildred.fr
X-Spamd-Bar: /
Archived-At: <https://mailarchive.ietf.org/arch/msg/jmap/L93wF2uDlqgtCz-OQKFUcJ88IMI>
Subject: Re: [Jmap] Email/get after an Email/set with create
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: Wed, 10 Nov 2021 21:57:28 -0000

Le 10/11/2021 à 03:37, Neil Jenkins a écrit :
>
> No, you didn't miss anything. This currently requires two round trips. 
> We tried to balance expressivity with simplicity and easy of 
> implementation, and this is one of the things you can't currently 
> express with the standard JMAP result ref syntax. If there were 
> interest, it's something that could be added as an extension of course.

Thank you for the details, I understand the need to keep the 
implementation simple but I would have imagined that a returned 
`createdIds` could have been returned for the sole purpose of chaining 
commands without needing to complexify the JSON path implementation. In 
any case, a round-trip is not really a problem (that's not there that I 
need the maximum performance), I just wanted to be sure that I did not 
miss something.

Mildred