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

John C Klensin <john-ietf@jck.com> Wed, 09 November 2016 16:42 UTC

Return-Path: <john-ietf@jck.com>
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 29018129560; Wed, 9 Nov 2016 08:42:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.397
X-Spam-Level:
X-Spam-Status: No, score=-3.397 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-1.497] autolearn=ham autolearn_force=no
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 hB66z1AGCIqb; Wed, 9 Nov 2016 08:42:41 -0800 (PST)
Received: from bsa2.jck.com (ns.jck.com [70.88.254.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DBB68129529; Wed, 9 Nov 2016 08:42:40 -0800 (PST)
Received: from [198.252.137.10] (helo=JcK-HP8200) by bsa2.jck.com with esmtp (Exim 4.82 (FreeBSD)) (envelope-from <john-ietf@jck.com>) id 1c4VxM-0005ZG-TJ; Wed, 09 Nov 2016 11:42:36 -0500
Date: Wed, 09 Nov 2016 11:42:31 -0500
From: John C Klensin <john-ietf@jck.com>
To: Ned Freed <ned.freed@mrochek.com>, Doug Royer <douglasroyer@gmail.com>
Message-ID: <5F4EE3F805C40EF25D1E0E57@JcK-HP8200>
In-Reply-To: <01Q73SYPHLDI011H9Q@mauve.mrochek.com>
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>
X-Mailer: Mulberry/4.0.8 (Win32)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
X-SA-Exim-Connect-IP: 198.252.137.10
X-SA-Exim-Mail-From: john-ietf@jck.com
X-SA-Exim-Scanned: No (on bsa2.jck.com); SAEximRunCond expanded to false
Archived-At: <https://mailarchive.ietf.org/arch/msg/imapext/bBj-HZYf7pMbfv4A5ndpvW8Fhew>
Cc: Alexey Melnikov <alexey.melnikov@isode.com>, ietf-smtp@ietf.org, "'imapext@ietf.org'" <imapext@ietf.org>
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, 09 Nov 2016 16:42:43 -0000

Ned,

A few questions about some of your comments (again, just
questions);

--On Wednesday, November 09, 2016 07:15 -0800 Ned Freed
<ned.freed@mrochek.com> wrote:

>> The complexity of the requests and replies are the issue. If
>> its mostly converting IMAP to JSON, the same problems are
>> going to exist.

> Yes and no. Part of the problem with IMAP is that it was
> designed for a very different sort of client than what we have
> now.

Which design model are you talking about?   It seems to me that
the original specs (through and including RFC 1064 and IIR 1176)
had only what we now call online mode and was optimized for
"kiosk" uses.  With the exception of the "walk up to someone
else's shared machine" part, that seems very similar to what we
have today with the assumption that everything is on the server,
the client keeps messages only on a transient basis, and one
cannot access messages unless one is online.    It seems to me
that is not very different from where we are headed now, whether
via "dumb MUA" or "MUA implemented on a web interface".   It may
be more complex than needed because it contains some
optimizations are what, by today's standards, are low-bandwidth
environments but some of those features also have security
advantages (that we haven't talked about very much recently).

Now, when we added offline (simulated POP3 on steroids) and
disconnected modes with IMAP4, things got more complex.  From my
personal perspective, disconnected mode (more or less the
ancient PCMAIL model) is the only thing that makes sense for
people with poor or intermittent connectivity, especially if
they need to work offline sometimes and use multiple machines.
However, it has never been broadly and well-supported in MUAs
(there are, IMO, a few "good enough" MUA implementations but no
really good ones) so maybe the marketplace has told us there
aren't enough users to count.  

Now, I've never been a fan of the LISP-like command and response
syntax, but that is much more a matter of taste than
functionality.

> (I note that the problem SMTP is intended to solve hasn't
> changed nearly as much.)

I agree with you but have heard claims that the multiple relay
and alternate destination (mail exhannge) models have outlived
their usefulness in today's highly-connected Internet.  I don't
see things as that highly connected (even looking to the future,
SMTP would work much better in the presence of a DTN than, e.g.,
HTTP[S} and for much the same reason it worked well for delivery
servers that were only connected a few hours a week) and I think
the robustness those features enable as important.  However,
there is no disputing that mail transport could be considerably
simplified if we allowed only endpoint-to-endpoint connections
with no alternatives.  Such connections would also permit
straightforward feature negotiation.  That would be a big help
for, e.g., EAI/SMTPUTP8 and similar arrangements and might even
help blur the boundary between transport-level and end0t9-end
encryption.

>  Getting rid of historical baggage will definitely simplify
things.

But that is my question.  I don't see IMAP disconnected mode as
historical baggage.  We've ended up with some redundant ways to
do things as a result of newer and more powerful options and
commands and the old ways could be cleared out.   We could
probably make some different choices about data structures and
maybe even standardize some things that today just add to the
complexity of the options.  But I'm not sure how significant
those actually would be -- what are you thinking of?

> IMAP also uses an unnnecessarily large number of format
> variants.

Yes.  See above.
 
> OTOH, there's absolutely no doubt that there's considerable
> intrinisic complexity in the message access space. Especially
> given the desire to push more and more of the problem to the
> server.

Exactly.
 
>,,,
> My guestimate is that - and here I'm speaking only of the
> message access space - that a HTTPS/JSON approach wins in
> terms of effective implementation complexity, although it is
> far from clear to me by how much.

But, unless we can get rid of IMAP (and some of the
functionality, like disconnected mode, that can't obviously be
supported over a purely HTTPS/JSON interface) entirely, it seems
to me that an HTTPS/JOSN approach is additive, requiring the
mail environment to support both it and IMAP for (at least) a
very long time.  So, while I agree with your guess, I don't see
the need to support an additional as a net gain, especially in
the short to medium term.

   john