Re: WG Review: JSON Mail Access Protocol (jmap)

Phillip Hallam-Baker <phill@hallambaker.com> Mon, 06 February 2017 15:27 UTC

Return-Path: <hallam@gmail.com>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5B3E0129E80 for <ietf@ietfa.amsl.com>; Mon, 6 Feb 2017 07:27:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.597
X-Spam-Level:
X-Spam-Status: No, score=-2.597 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 HcEDNqYjb7wn for <ietf@ietfa.amsl.com>; Mon, 6 Feb 2017 07:27:55 -0800 (PST)
Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1A3CF129E70 for <ietf@ietf.org>; Mon, 6 Feb 2017 07:27:55 -0800 (PST)
Received: by mail-wm0-x22b.google.com with SMTP id r141so118451460wmg.1 for <ietf@ietf.org>; Mon, 06 Feb 2017 07:27:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=a1MhW0AGIeWebi/WbK/5qfLASKOv5stj8XNe3mxPj7E=; b=gMZHWgpILv2YhLKmUVixrnHCKgnhuXKbKbp5pqmVt36FM/liwAhydwJF4EoRcH26t9 qa8IY9c4tJZVwIiejTQwaxA5STGF6QegJ8wC012zFdPj6YOGDRqBz0+6d18eHy5ZeVC/ mDOA404qvUKQXTjW/2KjernBCHy3A6HcbJIU7NdW6hQ+84pHRppLpSOhq4Ba1uHt4WTf mQM1VFk+2/riU7CbUTViMXNUjFiiaooYkZYqSGIANFhSx9kSztuF4HOB2id+TjpISPg4 iKtxHLnTqJzJcqibEBj9rljFVgrB6Oe8kLR9gsjKflxTI05WvCdpRFFUdIa5Bo+pblz1 DCSw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=a1MhW0AGIeWebi/WbK/5qfLASKOv5stj8XNe3mxPj7E=; b=Lh4qkA4Y4hldm/Av2uabjKuoJJQ1rcYXQEeyrjKWlAAVvo2At9M9IDpnixW0jRPDjc EeRqTwgioAQvfJww0JRslfiQYQu8ltLEgxkIGuRyFspINWRMmRO0rPKxZvdUNBJrrN4f AIJgMQJvg/7aMBCW8PBE1RQQjs9sZRG3rRDpaC5V8sW6IpyCn4QjGd5OjVsctP1G0PlS zfvjKn3qMBg5/Y/Ciz93u4OY/6AU9MIlVrwCVeMz+tiahr3r2HEKHGx1X+ouu/0H/fTK O/3V6kFXaoMmZa7z+IiGMKKtHORaYcksyciSFvSt/6eD05Y864jIX0cVw4sUaB1l/cky D0kg==
X-Gm-Message-State: AIkVDXJOl1LS+nRu6aLJmASL0LNNO4g6gEJxOfU6iOzJiplHc9NrL4v0JWo968+RdoT/xF/tj5QdLw9jhr+X9g==
X-Received: by 10.223.150.118 with SMTP id c51mr9300359wra.190.1486394872085; Mon, 06 Feb 2017 07:27:52 -0800 (PST)
MIME-Version: 1.0
Sender: hallam@gmail.com
Received: by 10.194.221.6 with HTTP; Mon, 6 Feb 2017 07:27:51 -0800 (PST)
In-Reply-To: <148616796247.4079.7104562493351135409.idtracker@ietfa.amsl.com>
References: <148616796247.4079.7104562493351135409.idtracker@ietfa.amsl.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
Date: Mon, 06 Feb 2017 10:27:51 -0500
X-Google-Sender-Auth: eqQVdMQOz5jBgxAcGumnL8FUxFo
Message-ID: <CAMm+LwjW=D_6EeVFOYPGhX-0rjs=0YMh2cBzx5AXZ14caS4caA@mail.gmail.com>
Subject: Re: WG Review: JSON Mail Access Protocol (jmap)
To: IETF Discussion Mailing List <ietf@ietf.org>
Content-Type: multipart/alternative; boundary="001a1147d0f258c5910547de4689"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf/HD-9wzeDoyUR-IPmPrLz2FDuiPg>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 06 Feb 2017 15:27:57 -0000

I don't see much point if all that we do is simply re-invent IMAP in JSON.
To add value, a new protocol in this space needs to advance on the old.

Today we have many things that look like mail that are not mail but could
benefit from IMAP type interface. These include:

* Mailing lists
* Newsgroups
* Blog comments
* Git Pull requests

Note that all of these are messages that are frequently transported over
SMTP but handled very poorly as mail.

Mailing lists are not mail. They look like mail but they are not because
they represent a discussion that frequently begins before the user has
joined. They have semantics for subscription and unsubscription. There is
frequently an external archive.


I don't think it unreasonable to ask folk doing an 'X in JSON' project to
extend it. Because if the move to JSON does not make such extensions easier
to introduce, what was the point of varying the syntax in the first place.

Being able to connect to discussion forums via an IMAP like interface would
be very useful and allow a lot of mail volume to be culled.



On Fri, Feb 3, 2017 at 7:26 PM, The IESG <iesg-secretary@ietf.org> wrote:

> A new IETF WG has been proposed in the Applications and Real-Time Area.
> The IESG has not made any determination yet. The following draft charter
> was submitted, and is provided for informational purposes only. Please
> send your comments to the IESG mailing list (iesg@ietf.org) by
> 2017-02-13.
>
> JSON Mail Access Protocol (jmap)
> -----------------------------------------------------------------------
> Current status: Proposed WG
>
> Chairs:
>   TBD
>
> Assigned Area Director:
>   Alexey Melnikov <aamelnikov@fastmail.fm>
>
> Applications and Real-Time Area Directors:
>   Ben Campbell <ben@nostrum.com>
>   Alissa Cooper <alissa@cooperw.in>
>   Alexey Melnikov <aamelnikov@fastmail.fm>
>
> Mailing list:
>   Address: jmap@ietf.org
>   To subscribe: https://www.ietf.org/mailman/listinfo/jmap
>   Archive: https://mailarchive.ietf.org/arch/search/?email_list=jmap
>
> Group page: https://datatracker.ietf.org/group/jmap/
>
> Charter: https://datatracker.ietf.org/doc/charter-ietf-jmap/
>
> A number of JSON-based representations of email have been developed
> that are proprietary, non-standard, and incompatible with each other.
> These protocols are proliferating due
> to existing standards being insufficient or poorly suited to the
> environments they are operating in, particularly mobile and webmail.
>
> The use of multiple protocols
> to perform actions within a single application creates significant
> support challenges, as users may get a variety of partial failure modes
> (for example, can receive email, but can not send new messages).
> This is further exacerbated if the different protocols are
> authenticated separately.
>
> The JMAP working group will specify a mechanism to allow clients to
> both view and send email from a server over a single stateless HTTPS
> channel with minimal round trips. A single protocol for receipt and
> submission will resolve long-standing difficulties users face
> setting up clients to talk to servers.
>
> The protocol will support
> push notification of changes using the mechanism defined in RFC 8030.
> This will give mobile clients benefits in terms of battery life and
> network usage. It will also support push notifications via server-sent
> events (https://www.w3.org/TR/eventsource/) for direct connection to
> clients that can support persistent TCP connections.
>
> The work of this group is limited to developing a protocol for a client
> synchronising data with a server. Any server-to-server issues
> are out of scope for this working group.
> New end-to-end encryption mechanisms are out of scope, but the work
> should
> consider how to integrate with existing standards such as S/MIME and
> OpenPGP.
>
> The working group will coordinate with the Security Area on credential
> management and authentication.
>
> Input to working group discussions shall include:
>
> - CONDSTORE and QRESYNC
> [RFC 7162]
>
> - Collection Synchronisation for WebDav
> [RFC 6578]
>
> - LEMONADE and experiences from adoption of its output
> [https://datatracker.ietf.org/wg/lemonade/charter/]
>
> - SMTP SUBMISSION
> [RFC 6409]
>
> - SMTP BURL
> [RFC 4468]
>
> The working group will deliver the following:
>
> - A problem statement detailing the deployment environment and
>   situations that motivate work on a new protocol for client to
>   server email synchronisation.  The working group may choose
>   not to publish this as an RFC.
>
> - A document describing an extensible protocol and data structures, with
>   support for flood control and batched operations, and operating over
>   a stateless connection such as HTTPS.
>
> - A document describing how to use the extensible protocol over HTTPS
>   with the data structures expressed as JSON.
>
> - A document describing a data model for email viewing, management,
>   searching, and submission on top of the extensible protocol.
>
> - An executable test suite and documented test cases to assist
>   developers of JMAP servers to ensure they conform to the
>   specifications.
>
> Milestones:
>
>
>