Re: [imapext] [ietf-smtp] Fwd: Request to form a new WG: JMAP

Bron Gondwana <brong@fastmail.fm> Wed, 16 November 2016 01:03 UTC

Return-Path: <brong@fastmail.fm>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4AAC31293F9 for <imapext@ietfa.amsl.com>; Tue, 15 Nov 2016 17:03:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=fastmail.fm header.b=Fx7tbglT; dkim=pass (1024-bit key) header.d=messagingengine.com header.b=sh5SJORd
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 xwaFwBHvObWb for <imapext@ietfa.amsl.com>; Tue, 15 Nov 2016 17:03:02 -0800 (PST)
Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D760C129412 for <imapext@ietf.org>; Tue, 15 Nov 2016 17:03:01 -0800 (PST)
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 554EB20B66 for <imapext@ietf.org>; Tue, 15 Nov 2016 20:03:01 -0500 (EST)
Received: from web4 ([10.202.2.214]) by compute6.internal (MEProxy); Tue, 15 Nov 2016 20:03:01 -0500
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= 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=mesmtp; bh=GBorE2tE+35LHyw8afDvXXNQE0 c=; b=Fx7tbglTHEOZqKE4FhASfLWOUI50uFmd6x/450krLKxAJhfBAF9Wq1vStW QF0h5p3rX1f4D1OrnnD5tKTBWsxKCVD086GK2ZHBjdk7y8NDxvoMLyrJ5kfDt4gH rHDZXssSO6DGPiKn8qkRM4dNCDCHc477u2qWSGwX+BPm2dFcc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=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=smtpout; bh=GB orE2tE+35LHyw8afDvXXNQE0c=; b=sh5SJORdn2UZA8iyFUL8KqmrQgadCQwjQ7 S5YKVJuFYx7WVkVeh/bns7yY8eAjyr51/A1zN9hn1EdlnSCs/i4JONVW65IaUtQo cSocarjIdQ8DKUI5kk5arBhdafnFPpsONRkmGQLCpM1VKxnJLYLQsrES1bxbpsZ8 B+fMwM7E8=
X-ME-Sender: <xms:RbArWCjpSd8KoAY1GwpjFVCKd_SyDZlarpK9F458WHBQ4BuUJElFiQ>
Received: by mailuser.nyi.internal (Postfix, from userid 99) id 2C435BAB82; Tue, 15 Nov 2016 20:03:01 -0500 (EST)
Message-Id: <1479258181.3933800.789105913.780CFDAE@webmail.messagingengine.com>
From: Bron Gondwana <brong@fastmail.fm>
To: imapext@ietf.org
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="utf-8"
X-Mailer: MessagingEngine.com Webmail Interface - ajax-461bce03
In-Reply-To: <01Q7BOQC0GGA011H9Q@mauve.mrochek.com>
Date: Wed, 16 Nov 2016 12:03:01 +1100
References: <1478539079.1706686.780110457.75B1F9CF@webmail.messagingengine.com> <a786d82d-7134-c7bc-24ef-5dfb56e7bbac@isode.com> <56DA516EAC53C07E3F453BA6@JcK-HP8200> <58220833.4000806@gmail.com> <01Q73SYPHLDI011H9Q@mauve.mrochek.com> <5F4EE3F805C40EF25D1E0E57@JcK-HP8200> <01Q7B16YQ1IO011H9Q@mauve.mrochek.com> <CAPt1N1nOOCc-+dzgBOcUMVBZKOFP008h1f9kBmHquxZWcEmgtQ@mail.gmail.com> <01Q7BOQC0GGA011H9Q@mauve.mrochek.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/imapext/t5caNsM6Ncvk6mNUI_BLCcnsOcY>
Subject: Re: [imapext] [ietf-smtp] Fwd: Request to form a new WG: JMAP
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Nov 2016 01:03:03 -0000

On Tue, 15 Nov 2016, at 17:38, Ned Freed wrote:
> > I agree with almost everything you said here, Ned, except for the idea that
> > offline isn't important. For those of us who travel internationally, being
> > able to look up travel info on your phone before you have your
> > international SIM is crucial, and this is just one example of a situation
> > where this is important.
> 
> There's a difference between being able to operate offline and a protocol
> specifically designed to support offline operation.

There are two really nice things in JMAP for offline operation:

1) client-generated IDs and server-generated IDs are different.  offlineimap does some magic with negative values for UIDs because it can't generate server-side IDs.  This is similar, but
2) you can refer to client-side IDs during a batch command, so you can backreference a mailbox you just created when adding messages to it, so you don't need to try to generate IDs locally and either have to use UUIDs for everything or risk clashes.

And of course everything is by unique ID rather than names, so you don't get problems like the a folder being renamed to something else and then recreated with a new UIDVALIDITY while you were offline, which breaks offlineimap completely, and probably causes mail loss in other clients.  With JMAP and a server which retained ID during renames, the added or changed messages would still apply into the new folder when the updates were applied.

JMAP is quite friendly to the idea of just storing JMAP setFoos commands in a log and then playing them against the server on reconnect, as well as the more clever approach of fetching everything from the server first and then resolving your changes into a minimal set of patches.

Bron.
-- 
  Bron Gondwana
  brong@fastmail.fm