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

Bron Gondwana <[email protected]> Wed, 16 Nov 2016 12:03:01 +1100
Newsgroups gmane.ietf.imapext
Message-ID <1479258181.3933800.789105913.780CFDAE@webmail.messagingengine.com>
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
  [email protected]

_______________________________________________
imapext mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/imapext