Re: [Extra] Adam Roach's No Objection on draft-ietf-extra-imap-fetch-preview-03: (with COMMENT)

"Alexey Melnikov" <aamelnikov@fastmail.fm> Thu, 11 April 2019 10:23 UTC

Return-Path: <aamelnikov@fastmail.fm>
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 E7599120116; Thu, 11 Apr 2019 03:23:47 -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, FREEMAIL_FROM=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=fastmail.fm header.b=SquDq5mo; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=IRAtbSym
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 WjSatv3q06ni; Thu, 11 Apr 2019 03:23:46 -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 5960912004D; Thu, 11 Apr 2019 03:23:46 -0700 (PDT)
Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 5D6B521DB7; Thu, 11 Apr 2019 06:23:45 -0400 (EDT)
Received: from imap1 ([10.202.2.51]) by compute7.internal (MEProxy); Thu, 11 Apr 2019 06:23:45 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type:content-transfer-encoding; s=fm2; bh=PVoVb nPahd+TBjoT0P/LwBAqgin/x3lYwTEXmT/zIak=; b=SquDq5moftkR19xPcUul5 PZq4Q39N0zSsay8+PjlbJRIJ+JD0zz/Uy89i7PFOFHWDeNVgoaXeo8hWqQf13hUW nX4UJLCRFRMqCNXL++DVDJUa19t3MipahK0J0KiF7MqBbOAItk4p7CAbQByj0JQj WhsRp7sGJ6mAm+TUSIPuLz18qtleSI5/Na7CtuXjha/IA9t7nFYA/Vj0B3K67a7j yt/a01ocScz7Ea0nc97aR+LZuJquWXbfFtA3mV+NDzBmoJ6ptCrGihu+ObooqPJ+ hd3BGtY2QaUa9tuyfwLWcKaIe7HKuGN1ZzzwW6JjkuUkPUFKR60+xZW0IyqRmfSL g==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=fm2; bh=PVoVbnPahd+TBjoT0P/LwBAqgin/x3lYwTEXmT/zI ak=; b=IRAtbSymgjHp3H5hjf7wY/D7nKDZ0FyPcv48LZcJzlAahSLGfd4KMHE5R kbm7OtPu77nhKsGsZ4wjHoVrGX2d/dV7SKZ96ZGnJiOj/YHD0xRJUMsdyZAJ/Z+z fzlX5UVwIRAupHx6hwr6GIMDkZjtcc0aN6MESO4N9BfIUazJ599H6jgQPCzeWATr 9cd0YZxqGKfn2bPzcXeaxWeEzus/S4ZKnQJBd9S6npu4wxQlj3jPHjB5qD5aRAiS o7+UZzzCH4J54QoyY3rnHp++a1tzEFMgw009cV0opHma9w0k6MK+Zhl+H/B3anhs Xj33CoBiQIJt2+oYlSiN3vdKnERrw==
X-ME-Sender: <xms:sBWvXOmsUk_bgShUziRI4rUia0DM5P3UO4DhLS8Y1lQoy_R-3hmxGg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudelgddvkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdetlhgv gigvhicuofgvlhhnihhkohhvfdcuoegrrghmvghlnhhikhhovhesfhgrshhtmhgrihhlrd hfmheqnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrghmvghlnhhikhhovhesfhgrshht mhgrihhlrdhfmhenucevlhhushhtvghrufhiiigvpedt
X-ME-Proxy: <xmx:sBWvXLCDl6otHp_J2PgaofdTMOnqTvlMyLeN3R0woBmJFVj3eXF_2g> <xmx:sBWvXNgvy6mzV8_amNTGtEuJX2hALUtDSrBGoerxWSu6Kf6hL_m8xA> <xmx:sBWvXIy_Ysb_Cvs-gL7okNe2_WTpIZC7HUNEAoxiFCFi6wzjktHS_g> <xmx:sRWvXKdzX5BuvkCtpHPaY-yevJHbadG5r6pP5aV3LJBuMNWVtfbqlg>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 72D69D4133; Thu, 11 Apr 2019 06:23:44 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.1.6-329-gf4aae99-fmstable-20190329v1
Mime-Version: 1.0
X-Me-Personality: 21611513
Message-Id: <87ee0088-2e0f-4000-a90a-12da28fc2531@www.fastmail.com>
In-Reply-To: <589634421.18028.1554954351946@appsuite.open-xchange.com>
References: <155475588989.30030.14071614051532431093.idtracker@ietfa.amsl.com> <589634421.18028.1554954351946@appsuite.open-xchange.com>
Date: Thu, 11 Apr 2019 06:23:23 -0400
From: Alexey Melnikov <aamelnikov@fastmail.fm>
To: Michael Slusarz <michael.slusarz=40open-xchange.com@dmarc.ietf.org>, Adam Roach <adam@nostrum.com>, Adam Roach via Datatracker <noreply@ietf.org>, The IESG <iesg@ietf.org>
Cc: extra@ietf.org, Bron Gondwana <brong@fastmailteam.com>, extra-chairs@ietf.org, draft-ietf-extra-imap-fetch-preview@ietf.org
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/uyxtsdwfBDLDs03m-A1adOx3MUg>
Subject: Re: [Extra] Adam Roach's No Objection on draft-ietf-extra-imap-fetch-preview-03: (with 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: Thu, 11 Apr 2019 10:23:48 -0000

Hi Michael,

On Thu, Apr 11, 2019, at 4:46 AM, Michael Slusarz wrote:
> Adam,
> 
> Thanks for your comments.  Discussion below.
> 
> > On April 8, 2019 at 2:38 PM Adam Roach via Datatracker <noreply@ietf.org> wrote:
> > ----------------------------------------------------------------------
> > COMMENT:
> > ----------------------------------------------------------------------
> >
> > §3.1:
> > 
> > >  These algorithms MUST be one
> > >  of the algorithms identified as supported in the PREVIEW capability
> > >  responses.
> > 
> > This is confusing, as "algorithms" and "one of" don't make sense with each
> > other. Is it meant to say something like "...MUST be a subset of the
> > algorithms..."?
> 
> Noted that the topic of multiple algorithm selection is being discussed 
> in Barry's DISCUSS.
> 
> That being said, if multiple algorithm support is decided to be kept, 
> what about changing this to:
> 
> "All algorithms specified in the list MUST be identified as being 
> supported by the server by appearing in a PREVIEW capability response." 
> (or "PREVIEW= capability response" maybe?)

You already need to deal with unrecognized algorithms (the text you suggested below), so having a MUST here doesn't make sense.

> > §3.1:
> > 
> > >  If a client requests an algorithm that is unsupported,
> > >  the server MUST return a tagged BAD response.
> > 
> > This appear to be underspecified, or at least nonintuitive. As written,
> > it seems to say that an algorithm list of (known-1, known-2, unknown, known-3)
> > would be considered invalid, even though there are plenty of supported,
> > requested algorithms that could be used. Is this actually intended to be an
> > error? If so, please make it explicit, as it's pretty counterintuitive.
> > 
> > (As an aside: it's also unnecessarily fragile from an interop perspective, so I
> > would suggest that this is not the desired behavior: I believe you want to
> > return an error only when *none* of the requested algorithms are supported).
> 
> See Barry's DISCUSS response.  Agreed that error handling is not 
> specified adequately in current text.
> 
> To mirror duplicate algorithm language, how about: "Unsupported 
> algorithms in the list MUST be ignored. If the list contains no 
> supported algorithms, the server MUST return a tagged BAD response to 
> the FETCH command."

This looks reasonable to me.

> > ---------------------------------------------------------------------------
> > 
> > §6, example 5:
> > 
> > >    C: E1 CAPABILITY
> > >    S: * CAPABILITY IMAP4rev1 PREVIEW=FUZZY SEARCHRES
> > >    S: E1 OK Capability command completed.
> > >    [...a mailbox is SELECTed...]
> > >    C: E2 SEARCH RETURN (SAVE) FROM "FOO"
> > >    C: E3 FETCH $ (UID PREVIEW (LAZY=FUZZY))
> > 
> > This example shows the use of a modifier ("LAZY") with an algorithm; however,
> > this modifier doesn't appear to be advertised by the server in its CAPABILITY
> > line. If I understand how this is supposed to work (looking at the definitions
> > in section 7), I would have expected:
> > 
> >      S: * CAPABILITY IMAP4rev1 PREVIEW=FUZZY PREVIEW=LAZY SEARCHRES
> > 
> > I'll note that this syntax effectively places algorithms and modifiers in the
> > same namespace, although IANA doesn't seem to be given any explicit
> > instructions about this. I think this needs to be cleaned up prior to
> > publication.  I would make this last point a DISCUSS, except that it appears
> > to be covered by Benjamin's DISCUSS already.
> 
> This has been discussed in several other places already.  I am 
> proposing removing priority modifier extensions, which would address 
> this concern.

I think this is a reasonable course of action.

Best Regards,
Alexey