Re: [Extra] Working Group Last Call - draft-ietf-extra-imap-fetch-preview-08

Bron Gondwana <brong@fastmailteam.com> Tue, 07 July 2020 11:01 UTC

Return-Path: <brong@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 A72C73A0B8F for <extra@ietfa.amsl.com>; Tue, 7 Jul 2020 04:01:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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=s8ZjlJ1y; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=eUg1HJTr
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 MRhh1R4g3nDm for <extra@ietfa.amsl.com>; Tue, 7 Jul 2020 04:01:24 -0700 (PDT)
Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2E05E3A0B60 for <extra@ietf.org>; Tue, 7 Jul 2020 04:01:17 -0700 (PDT)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 9A35A5C01E8 for <extra@ietf.org>; Tue, 7 Jul 2020 07:01:15 -0400 (EDT)
Received: from imap38 ([10.202.2.88]) by compute1.internal (MEProxy); Tue, 07 Jul 2020 07:01:15 -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=Ov1DHB4 S4TcUxWXlVYd3KEZdN6FbIMpSAtK+6c64Las=; b=s8ZjlJ1yG+IlzUsCmVH+gRA NfU3LLJxVSxWouVWR91m+VWMADqZxMwwDdNazPWQ8Y9J7Mam0yv/xiXqgWSEL/Qc 83u5FCVbXxTPCaVuu8NZlhpwK+0RlNz07xgl8oCgcNgaoJK3fJ0TUqscGlkY9bqh Qum3HCXu/Yzz/gkugIbMYz1dyygORVECyns9uqL8t4dsT4j+FtPSCOcgE7qA6N/I AkAV+t++dV8lWeYG7bjq9J8mGPw/V1VW1N/3THPeq9eXAHSQYsRadZ9rDEVHsWX9 kVpexagm0M75eVG3SFSFBrMhAR/TZHrljvunRMFR4DsKAbqtiulI5H2QjfxRUfQ= =
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=Ov1DHB 4S4TcUxWXlVYd3KEZdN6FbIMpSAtK+6c64Las=; b=eUg1HJTreiNMTeNeLHEGo/ 5vkAyy8jSAXfc82QXDd9qbjiQLIUvQUe2A56pfrdCNqNzOzaQj6qBaWKAtEDUWuR s8yYlbqq9cV0YkFr6SQdwdksY9C8Az6QQdvvifY2OtGyKfN5AVTaveqsmiP7ofL8 pFURF5IFXv0me/BmJVRPJBlAPnkBcrNR1dNBMytt/C7zBIs410OsdvLlBMKaPCIR a9h/3m2+Y0Tv+J2HvQOAe0GwxLK/VWc/T+gJk9IeeaLlm7p6ZsmwOe+cLJ1EOHZu Fv/ArjHxRBINA6FUXqHLBqjDkaiGV5MxMpywrz649HgwebZ2wFJE2WUxaZu9u50w ==
X-ME-Sender: <xms:-1UEX2TEt6JqujNWUvH5tLoSAuJvUNz3FM3YtI-rscwq_u2T2t1G_w>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudehgddvlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrgdtre erreerjeenucfhrhhomhepfdeurhhonhcuifhonhgufigrnhgrfdcuoegsrhhonhhgsehf rghsthhmrghilhhtvggrmhdrtghomheqnecuggftrfgrthhtvghrnheptdehteegfeevte duffevteehfffghefhvdevkeeuhfehueetudehgfegieekjeetnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsghrohhnghesfhgrshhtmhgrih hlthgvrghmrdgtohhm
X-ME-Proxy: <xmx:-1UEX7yS1m6IW8gu0EW0EyLEEEhY5EKB44gxhsStIB9eNtVjt8IGEw> <xmx:-1UEXz264T1D89msjkP02TKcZchSQndX8qF-m4mW1ACYQ6R0c4dj8g> <xmx:-1UEXyCGjgFYa4atdEgpTH3PZOXPjwWnQTwR1qOMokW2AOSj2nZpjg> <xmx:-1UEX-Ry6fapHkC9zOeiKKnrNtqMhW7Zc6QR416_i2tSgVsdvd20bA>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5E95B4AA005D; Tue, 7 Jul 2020 07:01:15 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.3.0-dev0-619-g3deeb4d-fm-idx2020-20200707.001-g3deeb4df
Mime-Version: 1.0
Message-Id: <c531ac34-00fd-455e-a0a0-5d3f3b51a038@dogfood.fastmail.com>
In-Reply-To: <388F9721-0CB5-4146-AC23-503C4481A090@sirainen.com>
References: <c4da8962-ec81-4ee5-b2e1-258d5b247770@dogfood.fastmail.com> <E7CA280C-D1B9-4BE7-8109-E070CF742623@sirainen.com> <1948688035.19548.1594092129291@appsuite.open-xchange.com> <388F9721-0CB5-4146-AC23-503C4481A090@sirainen.com>
Date: Tue, 07 Jul 2020 21:00:55 +1000
From: Bron Gondwana <brong@fastmailteam.com>
To: extra@ietf.org
Content-Type: multipart/alternative; boundary="c314520df2a945eb8693e641ff9d12ba"
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/J-K5aBWJKh-KG-Giw-AaNe1naaE>
Subject: Re: [Extra] Working Group Last Call - draft-ietf-extra-imap-fetch-preview-08
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, 07 Jul 2020 11:01:27 -0000

On Tue, Jul 7, 2020, at 18:54, Timo Sirainen wrote:
> On 7. Jul 2020, at 6.22, Michael Slusarz <michael.slusarz=40open-xchange.com@dmarc.ietf.org> wrote:
>> 
>>> On 07/02/2020 3:20 AM Timo Sirainen <timo@sirainen.com> wrote:
>>> 
>>> 
>>> On 2. Jul 2020, at 4.56, Bron Gondwana < brong@fastmailteam.com> wrote: 
>>> 
>>>> As discussed in the interim meeting, this document was brought back to the working group to be reverted to an earlier and simpler version. 
>>>> 
>>>> This email announces a 2 week working group last call for any further comments on this version before I re-submit to IESG for publication. Please reply with any comments by Thursday, July 16th 2020. Let's get this one off our plates before IETF108. 
>>> 
>>>  It is possible that preview text is not available now, but might be
>>>  available later -- perhaps the server's preview-generating resources
>>>  are overloaded, there is a server-imposed timeout during preview
>>>  generation, or there is some transient issue with fetching the
>>>  message body. In such cases, the server will return NIL as the
>>>  preview response, and the client can try to retrieve the preview
>>>  later.
>>> This sounds like it's possible for server to return NIL even when the LAZY modifier isn't specified. Is this really wanted? I'd think client developers would prefer that only LAZY can return NILs. Either way, it's not clearly enough specified what is intended. 
>> I was originally going to agree with Timo ... but then I remember we added this part as a direct response to a potential DoS situation - what happens if preview requests are (subjectively) taking too much time.
> 
> I don't really see why this would be an issue. IMAP protocol doesn't have this kind of a special "DoS-prevention feature" anywhere else. Especially now that the preview is always text, I don't think it can be excessively slow to generate it. At least in Dovecot's implementation it's basically as expensive as fetching BODYSTRUCTURE, and we don't have DoS prevention against fetching those. Maybe in theory if server wanted to analyze attachments in some way .. but is it really worth the added complexity for a problem that probably will remain theoretical?
> 
> FETCH is also good in that it returns the results after each mail. So the server is allowed to start throttling the responses to the client without actually failing it.

You're right. Here we are overcomplexing it again!

Server MUST NOT return NIL to a non-lazy preview is fine by me.

Server SHOULD NOT return NIL is fine by me as well, along with clients SHOULD NOT cache a NIL response. Either way our server is always going to have one because it gets calculated on APPEND.

Bron.


--
 Bron Gondwana, CEO, Fastmail Pty Ltd
 brong@fastmailteam.com