Re: [Extra] Barry Leiba's Discuss on draft-ietf-extra-imap-fetch-preview-03: (with DISCUSS and COMMENT)

"Neil Jenkins" <neilj@fastmailteam.com> Tue, 02 July 2019 04:53 UTC

Return-Path: <neilj@fastmailteam.com>
X-Original-To: extra@ietfa.amsl.com
Delivered-To: extra@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8EC0912008D for <extra@ietfa.amsl.com>; Mon, 1 Jul 2019 21:53:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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=fastmailteam.com header.b=e3SxkUED; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=kCtgqqZ7
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 PCjm1RQUY8pB for <extra@ietfa.amsl.com>; Mon, 1 Jul 2019 21:53:27 -0700 (PDT)
Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5199812004D for <extra@ietf.org>; Mon, 1 Jul 2019 21:53:27 -0700 (PDT)
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 77D2D21E44; Tue, 2 Jul 2019 00:53:26 -0400 (EDT)
Received: from imap7 ([10.202.2.57]) by compute6.internal (MEProxy); Tue, 02 Jul 2019 00:53:26 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= fastmailteam.com; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type; s=fm3; bh=Wa5eSig Hpm509xJkEt+yUduWSPo5fzpSH9Wt4gsyulc=; b=e3SxkUED56iVTuhRYrCYPDR HOBq4Es/326rnGrK+URtXpDXTN+yhKHqQqSeXqPr1QNZnBXvbRk0Mz71t78mkTVj /74lU9wqzBefad9AL/Cc5JylzfGzbg+XzHiyA5vAgfKHe9mphcDRCv/Naj5Jgwj6 hVNVC/248x4e5MITzYg/DaFTZKZeYIiSs73sOX26o89JJ/fWSpOm662yKP4JKsbH fUOkFW/OCL/phRrDisrAoG/MM33VU3iomrSk0gWWmmWhQBrQQonNGiADRKYf7AtO mrv3nqaZ20O+PT2Z8cvxDae5jr4UTQo69TPdExsSiaA8yNrBqbsqp4i0OjJ7AUw= =
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=Wa5eSi gHpm509xJkEt+yUduWSPo5fzpSH9Wt4gsyulc=; b=kCtgqqZ7L1biDIhZT+ApCs 2tc59rBPxsUeSOLewaql6vtITcFmhCW6Wd2wrbqiVfMgb0vX9XJa8qIONkOwyUqg qaHwpKrQbHyrdfFhgcjchDyJKdsj7DxiRbff67+YfvJRIAP4YHHE2K9vVsS9EPuv 2uM8eYCINgo5PXYCKlW3yqCp9KszL3J58lkkHC8J0q4d1ZP/95UzeLpx1KQxopsb 7PCXgC/JlERB5Itq3D1frhk+W6qpo6w8u1fVCTG8YJ2estYPucqEZfRnNU1bLIx5 RNwmBgjijrNR8+jzhL0LobC32NVrpShKcqUSOY4WpDHYm5Ke59tVC/FE7qzYyH2g ==
X-ME-Sender: <xms:ReMaXUJgiTxHycfftXQ2gKo177kmulcZbKf7HAE9TKHT3EoI6KzGiw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrvdejgdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsegrtderreerreejnecuhfhrohhmpedfpfgvihhl ucflvghnkhhinhhsfdcuoehnvghilhhjsehfrghsthhmrghilhhtvggrmhdrtghomheqne cuffhomhgrihhnpegtohhiqdguvghvrdhorhhgnecurfgrrhgrmhepmhgrihhlfhhrohhm pehnvghilhhjsehfrghsthhmrghilhhtvggrmhdrtghomhenucevlhhushhtvghrufhiii gvpedt
X-ME-Proxy: <xmx:RuMaXRskFRdtS1lxAvVeNh0cclpm8VCak1w03wIlDl8OwODYIj63QA> <xmx:RuMaXbIPBBSque3bNBsa1BL6kOhuaM-R_k-zNiT6AxG9r-RUUYqIwQ> <xmx:RuMaXS9voUfVLsANhuQiL-PSpEHo67tFASy2578fhH7Sxl0b1AqBeQ> <xmx:RuMaXUpkHzNq_f2PU93HBUDUYWjvbvCCIEGDUHL8_93Zv-1hxCRyYg>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id CB349180091; Tue, 2 Jul 2019 00:53:25 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.1.6-731-g19d3b16-fmstable-20190627v1
Mime-Version: 1.0
Message-Id: <b004cfb5-84a5-45f2-8624-7e4c2a13f3f3@beta.fastmail.com>
In-Reply-To: <855477053.11506.1561966175692@appsuite-gw2.open-xchange.com>
References: <155469393077.18315.15660535375707491655.idtracker@ietfa.amsl.com> <1478535427.18024.1554953503900@appsuite.open-xchange.com> <CALaySJKJxBTw6ptgDNvDjaXKDA4_ZFrb5b2gcUbSqsv1zwZSJw@mail.gmail.com> <1755746109.39421.1559403977713@appsuite-gw1.open-xchange.com> <CALaySJK+vvD-piU53RDRhrzG6Ei0+nZnm6b_=KpqK=DBOA59YA@mail.gmail.com> <70781805-f45f-43aa-b71b-a1862a3610bb@beta.fastmail.com> <855477053.11506.1561966175692@appsuite-gw2.open-xchange.com>
Date: Tue, 02 Jul 2019 14:53:25 +1000
From: Neil Jenkins <neilj@fastmailteam.com>
To: Michael Slusarz <michael.slusarz@open-xchange.com>, extra@ietf.org
Content-Type: multipart/alternative; boundary="c7d44cde9c614c94945526a90beeb650"
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/-_UDmxpCkyu7-JUXXTeF2ftSgSU>
Subject: Re: [Extra] Barry Leiba's Discuss on draft-ietf-extra-imap-fetch-preview-03: (with DISCUSS and COMMENT)
X-BeenThere: extra@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email mailstore and eXtensions To Revise or Amend <extra.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/extra>, <mailto:extra-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/extra/>
List-Post: <mailto:extra@ietf.org>
List-Help: <mailto:extra-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/extra>, <mailto:extra-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Jul 2019 04:53:30 -0000

On Mon, 1 Jul 2019, at 17:29, Michael Slusarz wrote:
> A real world example - we are currently working on an initiative to push email as a chat medium (Shameless plug: https://www.coi-dev.org/). In every chat client I have ever used, sending images and/or video is an important part of conversations. When an image/video appears in a chat stream, the full contents are not generally displayed - it is a small preview of the image (or a small preview of a frame of the video). That small image that is surely a "preview" of that message. Mixed media previews are a very common paradigm in other messaging systems - why should email be any different? 
> 
> We shouldn't have to come back in a year and propose a new "FETCH IMAGEPREVIEW" standard to support this - we should instead be able to propose a simple, optional extension to the base PREVIEW behavior.

I see, thanks for providing your motivation for this, it makes it much easier to discuss. This is certainly *a* solution to this problem, but I do wonder if it's the best one. If we start with the requirement that we must use IMAP for the chat message sync protocol, which admittedly does limit the options somewhat, the other main thing I would try is fetching the body structure with the COI client when getting a message listing. You would be able to see that, for example, a message has only an image/png part and how large it is. If it's small, the client may just fetch it directly. If it's large, you want a way for the client to ask the server for this image downsampled to a particular size; the client can specify exactly what it needs to optimise bandwidth usage.

Neil.