Re: [Jmap] Hacker News Discussion - getMailboxes single data set vs tree primitives or paging

Arnt Gulbrandsen <arnt@gulbrandsen.priv.no> Mon, 08 May 2017 14:14 UTC

Return-Path: <arnt@gulbrandsen.priv.no>
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 C1BC412948A for <jmap@ietfa.amsl.com>; Mon, 8 May 2017 07:14:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.7
X-Spam-Level:
X-Spam-Status: No, score=0.7 tagged_above=-999 required=5 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gulbrandsen.priv.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 plwU386xXWBn for <jmap@ietfa.amsl.com>; Mon, 8 May 2017 07:14:26 -0700 (PDT)
Received: from strange.aox.org (strange.aox.org [80.244.248.170]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 934E2128961 for <jmap@ietf.org>; Mon, 8 May 2017 07:14:26 -0700 (PDT)
Received: from fri.gulbrandsen.priv.no (localhost [127.0.0.1]) by strange.aox.org (Postfix) with ESMTP id 493B2FA0018; Mon, 8 May 2017 14:14:24 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gulbrandsen.priv.no; s=mail; t=1494252864; bh=18EEEtVGXv8s6gQf8S2nhIFr0e57oY/gxkOLCNAecTE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=I4WowCSrOzKD2S444ffP8K68yyKEg8m6nSXq2dooA7qFCxa5kJR2koJ+KsJhclDBK EYlw+JouUsSxCYoJx2lJM7jRXz/chCo8t1fFvklslJBmivtM4dVPoUgxLp9i7HmLCI 4SA52wXOKeKH9pAQa5CmdEXlqrmWvWJFTMdegOv4=
Received: from arnt@gulbrandsen.priv.no by fri.gulbrandsen.priv.no (Archiveopteryx 3.2.0) with esmtpsa id 1494252863-18908-21192/11/1; Mon, 8 May 2017 14:14:23 +0000
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: jmap@ietf.org
Date: Mon, 08 May 2017 15:14:23 +0100
User-Agent: Trojita/v0.5-9-g8961725; Qt/4.8.6; X11; Linux; Devuan GNU/Linux 1.0 (jessie)
Mime-Version: 1.0
Message-Id: <f43499ea-cc8d-4104-b820-d3144affb685@gulbrandsen.priv.no>
In-Reply-To: <1494249269.88461.969397104.25D88F0A@webmail.messagingengine.com>
References: <20170507123912.GA22520@snake.grepular.com> <FF749B75-173D-4086-BAE6-AFB897D5F676@fugue.com> <1494224344.1447245.969038872.78D5E02D@webmail.messagingengine.com> <1494249269.88461.969397104.25D88F0A@webmail.messagingengine.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Archived-At: <https://mailarchive.ietf.org/arch/msg/jmap/PuSEYcpxWD7wNj_Ahuml0MbRSoc>
Subject: Re: [Jmap] Hacker News Discussion - getMailboxes single data set vs tree primitives or paging
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: Mon, 08 May 2017 14:14:29 -0000

It's not clear that mailboxes really need to be hierarchical, and we've 
seen that the hierarchy stuff wasn't really well implemented by IMAP 
clients.

It seems plausible that polling the complete list oftenish is unacceptable 
for at least some users, but an IMAP-like hierarchy is not the only way to 
cut bandwidth usage. Retrieving it once and then asking for updates would 
work too, like JMAP's in-mailbox updates.

Servers that don't have a global modseq or some other generation counter 
would have to fall back to sending all/many mailboxes.

Arnt