Re: [Jmap] Draft messages - mutability

Ted Lemon <mellon@fugue.com> Tue, 25 April 2017 02:00 UTC

Return-Path: <mellon@fugue.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 B581F1319A7 for <jmap@ietfa.amsl.com>; Mon, 24 Apr 2017 19:00:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=fugue-com.20150623.gappssmtp.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 YRCGsYvEvqZP for <jmap@ietfa.amsl.com>; Mon, 24 Apr 2017 19:00:06 -0700 (PDT)
Received: from mail-pg0-x22b.google.com (mail-pg0-x22b.google.com [IPv6:2607:f8b0:400e:c05::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 7C949127977 for <jmap@ietf.org>; Mon, 24 Apr 2017 19:00:06 -0700 (PDT)
Received: by mail-pg0-x22b.google.com with SMTP id v1so9238643pgv.1 for <jmap@ietf.org>; Mon, 24 Apr 2017 19:00:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fugue-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=yX13gmjDBb3X9xbv3rBRZSeSrnaV7ELbokPpPnnBcwE=; b=HNCwOjRdxR6qCc7N5BiQxFwkiDkiFPrS8r/uDGmM62ZabKZHnCPbJHoKmKZIH09PzM qfFi7ltKAKPX4dI/tZ7RJnSLVZyB5i8e0Tly9O7C3LVV8ezExzhJSujROaWl0l+92t2m RKooqT6R1hx/lMh9H0NcKJj/Q6LEl/HyLqKiTEwBZRZHt6aRXYEmc+h+e4TOh0y4htAT qwLx64bjdPB+lc+JeWSa3yDdMD8Z3pKoI9yBmDCdT3KJTEN4Fjw+gsOeEuiks1I6mF5B XQ+tlEd2Rziyy2OILhK1nwc53ZDCoK5pI9ikrd6D1FviAAYCpFUVkGhRkXGivRgsKrv3 Knzw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=yX13gmjDBb3X9xbv3rBRZSeSrnaV7ELbokPpPnnBcwE=; b=Mgeeapw47+vRP7jjB1iTZd9dQvUQgoRw+1HjIJFvUFiLm4PTXQGbweQFZqabg3/3+N +/fNN/mjPOxdcEYRhPPeaDzonSM/g0tPYO/ROx1gKkexM6Ij5CIfDZPdv9OZcuXhTeTf OatVQzKX3/Ed4GW9fFTAFSUqMcmx/KXNI3cCa3iOZr7s2rnNld6SC9F9ROmRlslVN7Ob sX9zL8RYyiB4TQ5dwPXLRmv+uiueQoKNQv0iYwS7t7vVsigHtuxLEcXwM5/nL5uueMCe cwcoYBGx+q+7MzvPwv2ADenqH8F/gpgNnDSFXUotocQc142+YhEgJNFD6MemM3Eh5vq7 aI+w==
X-Gm-Message-State: AN3rC/4kwqqnpyn4D8KeAoiikQXWcYbQt8ueTv38P7YCaUg3wWsy0dRt 4LW92okBL5LI7NmSS3AQCoHHL/JtFw==
X-Received: by 10.98.210.2 with SMTP id c2mr27692470pfg.83.1493085606119; Mon, 24 Apr 2017 19:00:06 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.100.187.66 with HTTP; Mon, 24 Apr 2017 19:00:05 -0700 (PDT)
Received: by 10.100.187.66 with HTTP; Mon, 24 Apr 2017 19:00:05 -0700 (PDT)
In-Reply-To: <1493084134.2830550.955039432.5403CAFB@webmail.messagingengine.com>
References: <1492998899.3316920.953769616.254C9CBD@webmail.messagingengine.com> <EDDD6045-ECAD-4EAB-AC11-842A9CB2E1CA@oracle.com> <1493084134.2830550.955039432.5403CAFB@webmail.messagingengine.com>
From: Ted Lemon <mellon@fugue.com>
Date: Mon, 24 Apr 2017 22:00:05 -0400
Message-ID: <CAPt1N1m47nEY6TJr6Vx_oR1ZvYbjgkTSsyJ3URoX5+5m4Nt-rg@mail.gmail.com>
To: Neil Jenkins <neilj@fastmail.com>
Cc: jmap@ietf.org, Bron Gondwana <brong@fastmail.fm>, Chris Newman <chris.newman@oracle.com>
Content-Type: multipart/alternative; boundary="001a114676b22c1aa9054df415e5"
Archived-At: <https://mailarchive.ietf.org/arch/msg/jmap/LboUQ6XAyMTDZT-Dvlw12bPV9X4>
Subject: Re: [Jmap] Draft messages - mutability
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: Tue, 25 Apr 2017 02:00:09 -0000

If drafts are mutable, the implication is that synchronization based on
message ID can't happen without something like a version modifier. At which
point why not make every message versioned?

On Apr 24, 2017 9:35 PM, "Neil Jenkins" <neilj@fastmail.com> wrote:

> On Tue, 25 Apr 2017, at 11:02 AM, Chris Newman wrote:
>
> I see a lot of cost and no benefit to making a draft a different
> datatype from a message.
>
>
> I don't see any benefit to making it a different data type. However, what
> we currently have is that, like IMAP, a message is immutable except for
> flags/mailboxes. This is a pain for client authors trying to keep track of
> a single draft as it is saved through multiple revisions (especially when
> the user has multiple clients). One possible solution to this is to simply
> say any message with the \Draft flag set is fully mutable (while keeping
> the same id). I think we would also want the server to enforce that a
> message cannot be changed from/to draft state after creation. If it starts
> a draft it stays a draft, or vice versa.
>
> From a protocol perspective, since most messages won't be drafts (with a
> normal user) you still get the efficiency of immutable messages (you only
> have to refetch flags/mailboxes, not the whole message) for most of the
> messages in the mail store. But it will be easier for MUAs to handle
> drafts, and particularly allow for a much better experience when editing
> the same draft message across multiple devices.
>
> Neil.
>
> _______________________________________________
> Jmap mailing list
> Jmap@ietf.org
> https://www.ietf.org/mailman/listinfo/jmap
>
>