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

"Neil Jenkins" <> Tue, 02 July 2019 04:53 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 8EC0912008D for <>; Mon, 1 Jul 2019 21:53:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.699
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: (amavisd-new); dkim=pass (2048-bit key) header.b=e3SxkUED; dkim=pass (2048-bit key) header.b=kCtgqqZ7
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id PCjm1RQUY8pB for <>; Mon, 1 Jul 2019 21:53:27 -0700 (PDT)
Received: from ( []) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 5199812004D for <>; Mon, 1 Jul 2019 21:53:27 -0700 (PDT)
Received: from compute6.internal (compute6.nyi.internal []) by mailout.nyi.internal (Postfix) with ESMTP id 77D2D21E44; Tue, 2 Jul 2019 00:53:26 -0400 (EDT)
Received: from imap7 ([]) by compute6.internal (MEProxy); Tue, 02 Jul 2019 00:53:26 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=; 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=; 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: Webmail Interface
User-Agent: Cyrus-JMAP/3.1.6-731-g19d3b16-fmstable-20190627v1
Mime-Version: 1.0
Message-Id: <>
In-Reply-To: <>
References: <> <> <> <> <> <> <>
Date: Tue, 02 Jul 2019 14:53:25 +1000
From: "Neil Jenkins" <>
To: "Michael Slusarz" <>,
Content-Type: multipart/alternative; boundary=c7d44cde9c614c94945526a90beeb650
Archived-At: <>
Subject: Re: [Extra] =?utf-8?q?Barry_Leiba=27s_Discuss_on_draft-ietf-extra-im?= =?utf-8?q?ap-fetch-preview-03=3A_=28with_DISCUSS_and_COMMENT=29?=
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email mailstore and eXtensions To Revise or Amend <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-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: 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.