Re: [Extra] Snippet Draft Submitted (was Re: RFC4466 and fetch responses)

Bron Gondwana <brong@fastmailteam.com> Tue, 17 April 2018 21:29 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 8C575126CE8 for <extra@ietfa.amsl.com>; Tue, 17 Apr 2018 14:29:01 -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=CHkmUKzl; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=T23+cXjf
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 UufmRP_gVj-H for <extra@ietfa.amsl.com>; Tue, 17 Apr 2018 14:28:59 -0700 (PDT)
Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DC39F126579 for <extra@ietf.org>; Tue, 17 Apr 2018 14:28:58 -0700 (PDT)
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2E3CE21BAF for <extra@ietf.org>; Tue, 17 Apr 2018 17:28:58 -0400 (EDT)
Received: from web2 ([10.202.2.212]) by compute6.internal (MEProxy); Tue, 17 Apr 2018 17:28:58 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= fastmailteam.com; h=content-transfer-encoding:content-type:date :from:in-reply-to:message-id:mime-version:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=LqGJTD/qz7X9jL+4O P/f8w6uQcDDCh7RdFGSfMHEbAg=; b=CHkmUKzlQ/7FfVSJ44v5LWyuLi8CGGv/o qpyDlVCNLKP7VmGw5bIAPw49K/BkSc6Izq0/Y3WxjXge1+1lVrVTp1wgn2uVq1tz wo9GAH7pPrvDpCKx1vBhJdmf6Eda8DJa46/AOjX209+HRM+xfLTZ15FWWoUDis6z IittfbSwNULayfQhGrD09S+/UYCFqNQJOTPBWmeMMWgw5ZjSK/yBV7dSiJzcoyhO vdyTo5pB5rSLniEE163pdQUkYKNXN6U7W3MvnAyHatPtZBifZThwX+qrLpbgT/Um vXHXQuh8BZOXoFQ21WZc1+XBL0YsdRhGureT6DBVQlFRLG9RfaK4Q==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=LqGJTD /qz7X9jL+4OP/f8w6uQcDDCh7RdFGSfMHEbAg=; b=T23+cXjfHCxjS4ucHfMkPJ pJCuVe1yiMy6FESwWn3HWMyCKUqTYV6yRiKGcP1IVqGrrSip1jDUchw/uM+51Mfd FV0/cy1AKL1tIkIOWYWlOHxhn36EIGQIs/X4ZbAYYKnpQBBPKcesyYFRXKPCcfwH MpxmwqimGc55awBnyeeCNbrvpphq4TqioHOzz4/rAkqM5uPYgtgt/Z6vAfwW36t9 j4o7TNowdBYruYP6g7rcOvexnVsrOZPwWcUOPfRK2G3AGVj4I9X47Y24VwJYBI80 hfufLx5hCkWEpV+1toWUuwndB3a4Jr3JWw2eZX4puE2XC3jpqi30Cprk0HqxnuRg ==
X-ME-Sender: <xms:GWfWWlm2UbAlrQgumNAaJGmcDyJR4I-aK3-YzlkePsZEsau1bps0Eg>
Received: by mailuser.nyi.internal (Postfix, from userid 99) id DAEBC621BF; Tue, 17 Apr 2018 17:28:57 -0400 (EDT)
Message-Id: <1524000537.1630855.1341574448.57856EAA@webmail.messagingengine.com>
From: Bron Gondwana <brong@fastmailteam.com>
To: extra@ietf.org
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: multipart/alternative; boundary="_----------=_152400053716308550"
X-Mailer: MessagingEngine.com Webmail Interface - ajax-f3006b89
References: <1523509726.1282597.1335212568.19A9784F@webmail.messagingengine.com> <1936558829.9593.1523629686308@appsuite.open-xchange.com> <1523670892.1298344.1337561008.1F734022@webmail.messagingengine.com> <898227435.14512.1523907117338@appsuite.open-xchange.com>
Date: Wed, 18 Apr 2018 07:28:57 +1000
In-Reply-To: <898227435.14512.1523907117338@appsuite.open-xchange.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/extra/HVgl6JDhH_kTTZgRsWNDT0aygeo>
Subject: Re: [Extra] Snippet Draft Submitted (was Re: RFC4466 and fetch responses)
X-BeenThere: extra@ietf.org
X-Mailman-Version: 2.1.22
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, 17 Apr 2018 21:29:01 -0000

By the way - I figure given our timelines and how busy we are with
other documents, putting a call for adoption for this document on the
agenda for Montreal will be plenty early enough!  Are you likely to
make it to Montreal?
Cheers,

Bron.

On Tue, 17 Apr 2018, at 05:31, Michael Slusarz wrote:
> Hi Bron,


> Snippet Draft has been submitted to:


> https://datatracker.ietf.org/doc/draft-slusarz-imap-fetch-snippet/


> michael


> 


>> On April 13, 2018 at 7:54 PM Bron Gondwana
>> <brong@fastmailteam.com> wrote:>> 
>> Great. I've already updated my code and deployed it in our testing
>> infrastructure, so I'll update the spec to match.>> 
>> I'm interested in this snippet draft. We already do snippets in Cyrus
>> with a custom command, so making it match would be great.>> 
>> Cheers, 
>> 
>> Bron.
>> 
>> 
>> On Sat, 14 Apr 2018, at 00:28, Michael Slusarz wrote: 
>>>> On April 11, 2018 at 11:08 PM Bron Gondwana <
>>>> brong@fastmailteam.com> wrote:>>>> 
>>>> 
>>>> One thing I notice is that RFC4466 doesn't provide suggested
>>>> structure for fetch responses, but RFC4551 defined the fetch MODSEQ
>>>> response as:>>>>   
>>>> MODSEQ ( <permsg-modsequence> ) 
>>>>   
>>>> Which seems clearly to be that the intent at the time was that all
>>>> new FETCH responses would be wrapped, since that's nothing more
>>>> exciting than a string of digits, and FETCH responses have
>>>> unwrapped values that can be LITERAL like RFC822 or otherwise
>>>> complexly structured like BODYSTRUCTURE.>>> 
>>> In a (soon-to-be submitted for review) RFC we've been working on, I
>>> too followed the "new" MODSEQ approach of wrapping everything in the
>>> response after the FETCH attribute identifier in parentheses:>>> 
>>> msg-att-dynamic =/ "SNIPPET" SP "(" snippet-alg SP nstring ")" 
>>> 
>>> Granted, the response in question has more than one element so it
>>> logically should be grouped using parentheses, but there's also
>>> nothing inherently wrong with a one-element list either.>>> 
>>> This response decision has been implemented and exists in released
>>> versions of Dovecot, so we will not be changing the implementation.>>> 
>>>> So: 
>>>>   
>>>> C: 26 fetch 1:* (emailid threadid) 
>>>> S: * 1 FETCH (EMAILID M820545e479bbb58345c66b88 THREADID
>>>>    T13f69c0572d2be91)>>>> S: * 2 FETCH (EMAILID M50f1074ce64d74cfb5f194fa THREADID
>>>>    Tc102deaded247fdd)>>>> S: 26 OK Completed (0.000 sec) 
>>>>   
>>>> Should they be wrapped as well? 
>>>>   
>>>> C: 26 fetch 1:* (emailid threadid) 
>>>> S: * 1 FETCH (EMAILID (M820545e479bbb58345c66b88) THREADID
>>>>    (T13f69c0572d2be91))>>>> S: * 2 FETCH (EMAILID (M50f1074ce64d74cfb5f194fa) THREADID
>>>>    (Tc102deaded247fdd))>>>> S: 26 OK Completed (0.000 sec) 
>>>> 
>>>>   
>>>> --- 
>>>>   
>>>> Thoughts? 
>>> 
>>> I agree that the latter example is more correct - or at least
>>> consistent with the way that we added a new FETCH attribute.>>> 
>>> michael 
> 


> _________________________________________________
> Extra mailing list
> Extra@ietf.org
> https://www.ietf.org/mailman/listinfo/extra

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