Re: [Jmap] Adding the Message::isForwarded property

Neil Jenkins <neilj@fastmail.com> Fri, 28 April 2017 06:24 UTC

Return-Path: <neilj@fastmail.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 201A1129434 for <jmap@ietfa.amsl.com>; Thu, 27 Apr 2017 23:24:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.719
X-Spam-Level:
X-Spam-Status: No, score=-2.719 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-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=xL9c9b0V; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=CdNMV/ot
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 NnY4QxKueY06 for <jmap@ietfa.amsl.com>; Thu, 27 Apr 2017 23:24:39 -0700 (PDT)
Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C67E9128CD5 for <jmap@ietf.org>; Thu, 27 Apr 2017 23:22:03 -0700 (PDT)
Received: from betaweb1.internal (betaweb1.nyi.internal [10.202.2.10]) by mailout.nyi.internal (Postfix) with ESMTP id 201092090E; Fri, 28 Apr 2017 02:22:03 -0400 (EDT)
Received: from betaweb1 ([::ffff:10.202.2.10]) by betaweb1.internal (MEProxy); Fri, 28 Apr 2017 02:22:03 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=GOc5BiXMCz5A5OtuosJK96luwxbeA FuWc482LZWkYiU=; b=xL9c9b0V5HPNcpBaOF6QwRg7367ISdaAXj3fdxFgzSS9R /wmr5uhHJJl9mdANtC06ygVdU+IAbGZE4anYhPGsA8If/f0slVtMaPHkiJPAnfT+ UmXoKzvJ1rp3wmMZu/52/nJU2iQBuvuin02SizXATRJjCgOOSt7JVnA6GXVI4lx3 67Q5uMNmTn10/mtaJh6Yq7QeAn+mr8NbrpSE8wn4dBtDfBBh0TPXRn9Uv1J5/vqc mw9pgJ7qMGw4glc12H9qAx2zI2FxYMfgKMrUAQOgGfDe8OXUCeX9dviVWaATsqkF 21wXd2ZL48Wfhg50trHLXpfNyBt8/8e/CtCfZBVmg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=GOc5Bi XMCz5A5OtuosJK96luwxbeAFuWc482LZWkYiU=; b=CdNMV/otCfxFB79sEmjRNO uJ/uzScxQz7s85ILrqkt1FfytjoSQ31DnCJxAeCPDGi20UY56FXE0kdos4GFdqy6 eRY7JY08a/bSAPA3fgJE7epAhG7yE4z9BYSOHT5FZnSbs7fHxES+MMuLv0uPKND1 D5kUHjPwYuffmrtNk4xpHNR6OZQio1nVkSs1Bz+oCttsAWvxQPafHKG33sNDijDf gvR2obLymDrE4tYTCY5AoaYHh/5yj12X/nHjiE8HmRUSxB+RD/26h84Em7/Zh+hk 1o5syHA58djF+1XLiv5AsaCnPE5j/YDb27kFnJymVLDJhC1rETtxoFx8Neq9IUrQ ==
X-ME-Sender: <xms:it8CWXasL8NKEZh1j0xeay5xrGSFJK06oT8agM47e0xE_cVKKxJu-w>
Received: by mailuser.nyi.internal (Postfix, from userid 99) id D3EFDE266D; Fri, 28 Apr 2017 02:22:02 -0400 (EDT)
Message-Id: <1493360522.1171603.959013464.217C003E@webmail.messagingengine.com>
From: Neil Jenkins <neilj@fastmail.com>
To: Neil Jhaveri <njhaveri@apple.com>
Cc: jmap@ietf.org
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: multipart/alternative; boundary="_----------=_149336052211716031"
X-Mailer: MessagingEngine.com Webmail Interface - ajax-843b6574
References: <148716911729.17277.15371202023742081890.idtracker@ietfa.amsl.com> <b7ec34d3-3aaf-82af-3663-5b0966c83ff0@dcrocker.net> <b5753f7f-92f9-50dd-42f0-ce0de7360e08@linagora.com> <A9EDBE7D-4E3D-45C2-BB97-F74AC9DB9486@oracle.com> <9eb1fd3c-8868-9d24-6c30-46d333b69fef@isode.com> <3c1711a2-46dd-db1c-506e-5e1ad89ce56d@linagora.com> <92769755-62c6-7257-ce3d-7d0b5699735d@isode.com> <27c62cc8-68e0-49b5-4900-34c26d7b4c6a@linagora.com> <C88A669A-2143-4FC2-81EF-3C9A2CD5963B@apple.com> <D0072AC9-71DC-4831-A3DA-FEA4A7B85BBA@oracle.com> <AB5279CE-4F9A-4DE8-AEEA-E1425D04FA89@att.com> <1492581452.3025596.948906456.71780673@webmail.messagingengine.com> <1A7624AF-2FD9-4FE8-A29D-23BFADEED04B@apple.com>
In-Reply-To: <1A7624AF-2FD9-4FE8-A29D-23BFADEED04B@apple.com>
Date: Fri, 28 Apr 2017 06:22:02 +0000
Archived-At: <https://mailarchive.ietf.org/arch/msg/jmap/CogT0rS4-Mm8aRC2wTfuO-4fOa8>
Subject: Re: [Jmap] Adding the Message::isForwarded property
X-BeenThere: jmap@ietf.org
X-Mailman-Version: 2.1.22
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: Fri, 28 Apr 2017 06:24:41 -0000

On Thu, 27 Apr 2017, at 10:07 PM, Neil Jhaveri wrote:
> Given the discussion above, this makes sense to me, too. My original
> motivation for supporting an isForwarded property was to eliminate the
> incongruence between answered and forwarded. Going back to a keywords
> list achieves that.
OK, I think we have consensus on this. I've made a pull request on
GitHub with the changes[1] for people to review. Two interesting points:
Firstly, I think we should map the 4 \System flags to $System in JMAP.
Using backslash is a real pain because it is an escape character in
JSON, so examples in the spec are confusing if nothing else! Changing it
to $ would make the system keywords consistent with the IANA registered
keywords, which I believe will be less confusing for developers coming
in without an IMAP background. The only issue would be what to do if
someone has added "$Flagged" etc. user keywords on an IMAP server. This
seems unlikely to be much of a real-world occurrence to me, on the basis
it would have been very confusing, but I think we can just specify that
these keywords are not visible over JMAP.
Secondly, matching the setting of the \Answered keyword, I've added a
section that the server SHOULD automatically set the $Forwarded keyword
if appropriate on send (the request that started this whole thread!).
This is looking at the X-Forwarded-Message-Id header though, which as
mentioned earlier in the thread is not a standard (it seems it was first
introduced by Thunderbird).
Any thoughts on either of these, or the change as a whole?

Neil.

Links:

  1. https://github.com/jmapio/jmap/pull/61/files