Re: [Jmap] Draft messages - mutability

Ted Lemon <mellon@fugue.com> Tue, 25 April 2017 02:21 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 531C51319B1 for <jmap@ietfa.amsl.com>; Mon, 24 Apr 2017 19:21:19 -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 WWGWYXI4Aszh for <jmap@ietfa.amsl.com>; Mon, 24 Apr 2017 19:21:17 -0700 (PDT)
Received: from mail-pg0-x236.google.com (mail-pg0-x236.google.com [IPv6:2607:f8b0:400e:c05::236]) (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 C4FC51319B2 for <jmap@ietf.org>; Mon, 24 Apr 2017 19:21:17 -0700 (PDT)
Received: by mail-pg0-x236.google.com with SMTP id 63so21142539pgh.0 for <jmap@ietf.org>; Mon, 24 Apr 2017 19:21:17 -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=a/sDMcEK0ysbX93y9IvJsEX173CL2MHidGB3Wu5/a9c=; b=1TReka2KhYGO180VC30+bImKnk0W4FHJlhx2aEoii/8wjKSiq5m7b+toQYHQW3j9gE PR33mg8XYiq+GgUlHiQdUv33cBYD6IQC+8q8Y9jBi2nCkA/irdWf/iFCtmzpNJZDoTLc aMbOD0Von4Q2KpgIAV8K7tOG77acifMHZ/xMFLwNQ/hBAk8VGXWJttJLIQXGjvmGJOKz 4Z4cdaw+c1ujfjVp8s2FRAVp+PfS5VuVx7pqnesxERJAIQXnck7ezWBgDwn8UeDDK5VI A7/AsjRUeLmfH31aSdPanNjFttq7hIt2PzKtzJ+tzAac4lPjyJxyJYx74mFKDK7ML0rt CJmg==
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=a/sDMcEK0ysbX93y9IvJsEX173CL2MHidGB3Wu5/a9c=; b=L5qjSeYGL59raojndwfm/vx1PtYVVCidQ7VdqZaPbTYSYPAFYmFZPgK1WLkqSp+gK2 bPIRcXdDEPjxhmg2BJKsZJW53Kfv1EnCAEacejVlvNi7U9kshIdxU+UisqdrmE++dzb1 BTfmpdNoDcaRoGzVZOAjg6x7Wg34xQwiCU9KdqLxP2+loA78qh8T92H+W4jzXdKme0cI HOgstU1pniC6i3vMJ+AMx8WlSnWXiavIF2Ta1V7nCCz/9mt5OcuaxmA2m5eBuZ+x9Rmg F9z9mB4S3VyO6jBXPHmKSXGzeSYitu23sGCV1qODx/A3xaJvliDtNAl+sbTw4OpLPKU+ kx6g==
X-Gm-Message-State: AN3rC/5SDw2YzuiN0kR9PkSHiUFEDt+3IbEAmgtzEr+2Qz/b6DS/bZng JiqJz80c5U7M0hIrueGTbRFG4EYLEQ==
X-Received: by 10.98.210.2 with SMTP id c2mr27727732pfg.83.1493086877404; Mon, 24 Apr 2017 19:21:17 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.100.187.66 with HTTP; Mon, 24 Apr 2017 19:21:16 -0700 (PDT)
Received: by 10.100.187.66 with HTTP; Mon, 24 Apr 2017 19:21:16 -0700 (PDT)
In-Reply-To: <1493086704.2870249.955076016.66A059E7@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> <CAPt1N1m47nEY6TJr6Vx_oR1ZvYbjgkTSsyJ3URoX5+5m4Nt-rg@mail.gmail.com> <1493086704.2870249.955076016.66A059E7@webmail.messagingengine.com>
From: Ted Lemon <mellon@fugue.com>
Date: Mon, 24 Apr 2017 22:21:16 -0400
Message-ID: <CAPt1N1nQNiP4D9s7CQUukzyQq_7uLtEa++Jof38v0mQjJtWd3w@mail.gmail.com>
To: Neil Jenkins <neilj@fastmail.com>
Cc: jmap@ietf.org
Content-Type: multipart/alternative; boundary="001a114676b2f25f6b054df46060"
Archived-At: <https://mailarchive.ietf.org/arch/msg/jmap/uBWn0vjRiW75giKdbhi8sNIU_G4>
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:21:19 -0000

That seems okay as long as there isn't a ton of churn in the drafts folder.

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

> On Tue, 25 Apr 2017, at 12:00 PM, Ted Lemon wrote:
>
> 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?
>
>
> I'm not sure I fully understand your question; every message is already
> versioned (like the IMAP CONDSTORE modseq) so that you can efficiently
> synchronise changes.
>
> There is a well-defined model of data synchronisation which is used across
> all data types in JMAP. A client can request the list of ids of a type
> (let's say Messages) which have changed since the client's current state.
> It can then decide which of those messages it wants to fetch, and what
> information it needs to fetch for each one. In the case of non-drafts, it
> only needs to fetch flags/mailboxes. If drafts are mutable, then for any
> draft message it has it would need to redownload the entire message. This
> is the trade-off I was talking about in my previous post.
>
> Neil.
>