
From nobody Sun May  3 22:56:31 2015
Return-Path: <slusarz@horde.org>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D949E1ACD78 for <imapext@ietfa.amsl.com>; Sun,  3 May 2015 22:56:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.3
X-Spam-Level: 
X-Spam-Status: No, score=-1.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, J_CHICKENPOX_75=0.6] autolearn=no
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 II_1sSbioNtl for <imapext@ietfa.amsl.com>; Sun,  3 May 2015 22:56:27 -0700 (PDT)
Received: from resqmta-po-09v.sys.comcast.net (resqmta-po-09v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:168]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9A2881ACD76 for <imapext@ietf.org>; Sun,  3 May 2015 22:56:27 -0700 (PDT)
Received: from resomta-po-02v.sys.comcast.net ([96.114.154.226]) by resqmta-po-09v.sys.comcast.net with comcast id PhwJ1q0044tLnxL01hwSNZ; Mon, 04 May 2015 05:56:26 +0000
Received: from bigworm.curecanti.org ([IPv6:2002:43b0:53e4:0:21e:68ff:fe1e:2860]) by resomta-po-02v.sys.comcast.net with comcast id PhwS1q0023cyTSr01hwScq; Mon, 04 May 2015 05:56:26 +0000
Received: from localhost (localhost.localdomain [IPv6:::1]) (Authenticated sender: slusarz) by bigworm.curecanti.org (Postfix) with ESMTPSA id DAE461025 for <imapext@ietf.org>; Sun,  3 May 2015 23:56:25 -0600 (MDT)
Received: from dangerzone.curecanti.org (dangerzone.curecanti.org [172.18.5.4]) by bigworm.curecanti.org (Horde Framework) with HTTP; Sun, 03 May 2015 23:56:25 -0600
Date: Sun, 03 May 2015 23:56:25 -0600
Message-ID: <20150503235625.Horde.pquZ06cW6a2mn1lEJlQhL4J@bigworm.curecanti.org>
From: Michael M Slusarz <slusarz@horde.org>
To: IMAPEXT <imapext@ietf.org>
User-Agent: Internet Messaging Program (IMP) H6 (7.0.0-git)
Accept-Language: en
X-Originating-IP: 172.18.5.4
X-Remote-Browser: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
MIME-Version: 1.0
Content-Disposition: inline
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1430718986; bh=lGpTRpbxjUeK7MiQSObtNkBn8osGSPPebThioV6++XM=; h=Received:Received:Received:Received:Date:Message-ID:From:To: Subject:Content-Type:MIME-Version; b=NvNcSz4hUbG9Vu5MEYeCgnUlsT/3lsuXTIu/6xqd6/iaMA+V4KI1JVY9EWsucu2og B7PO0DuTUeYe7y3KGhMZz7F2oIwgtD6Pwqrp/NUNSpr76ONGGWE/lNIhNwc1t84oXq hKDHv224e/bCZBYivHHSVh/9nqNbf2Tc+BJUzdAGXRJrpdKfyYQqn5duMc3vAwEbA6 M4GPa8kOKpxn/AOfxY2qaBooUXAvNEXk+V4sQjlBYdXtHS2+TkoU/9gE5VGax8wyG0 z30NT2Hcx8S2UeR4ZxvqHeYAqG1W+lTyJWqrf0jLb2mYweQYEWTMcEdpniK0uZ6rSn isHkIsHVaEx7w==
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/gLAXS_nwAU1fcGrsEpEe6uCTeZY>
Subject: [imapext] IMAP SNIPPET extension (initial draft)
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 04 May 2015 05:56:30 -0000

A little late, but here's my efforts on an initial draft regarding  
SNIPPET so that it can be added to the WG.

Based on the conversation that occurred on this list a few months  
back, I made these editorial decisions:

   - Extend FETCH: several people said this would not be implemented  
if it used ANNOTATE/CONVERT
   - Allow multiple different algorithms

I think the main point of discussion going forward is whether to  
explicitly define an algorithm for snippet generation (i.e. threading)  
or to allow the default algorithm to be entirely server-defined (i.e.  
FUZZY searching).  For now, I went with the latter, and even named it  
FUZZY.

Another issue regards the size of snippet return.  In this draft, this  
is not client configurable.  For the FUZZY algorithm, I used 150  
octets as SHOULD and MUST NOT ever exceed 300 octets.  (Snippet data  
must be returned as UTF-8).

But hopefully this is a decent enough starting point where it can be  
used to continue the discussion going forward.

michael


----------------


Internet Engineering Task Force                          M. Slusarz, Ed.
Internet-Draft                                                   Dovecot
Intended status: Standards Track                                May 2015
Expires: October 31, 2015

                   IMAP4 Extension: Snippet Generation
                          draft-imap-snippet-00

Abstract

    This document specifies an IMAP protocol extension which allows a
    client to request that a server provide an abbreviated representation
    of a message (a snippet of text) that can be used by a client to
    provide a useful contextual preview of the message contents.

Status of this Memo

    This Internet-Draft is submitted in full conformance with the
    provisions of BCP 78 and BCP 79.

    Internet-Drafts are working documents of the Internet Engineering
    Task Force (IETF).  Note that other groups may also distribute
    working documents as Internet-Drafts.  The list of current Internet-
    Drafts is at http://datatracker.ietf.org/drafts/current/.

    Internet-Drafts are draft documents valid for a maximum of six months
    and may be updated, replaced, or obsoleted by other documents at any
    time.  It is inappropriate to use Internet-Drafts as reference
    material or to cite them other than as "work in progress."

    This Internet-Draft will expire on October 31, 2015.

Copyright Notice

    Copyright (c) 2015 IETF Trust and the persons identified as the
    document authors.  All rights reserved.

    This document is subject to BCP 78 and the IETF Trust's Legal
    Provisions Relating to IETF Documents (http://trustee.ietf.org/
    license-info) in effect on the date of publication of this document.
    Please review these documents carefully, as they describe your rights
    and restrictions with respect to this document.  Code Components
    extracted from this document must include Simplified BSD License text
    as described in Section 4.e of the Trust Legal Provisions and are
    provided without warranty as described in the Simplified BSD License.

Table of Contents

    1.  Introduction
    2.  Conventions Used In This Document
    3.  FETCH Data Item
      3.1.  Command
      3.2.  Response
    4.  SNIPPET Algorithms
      4.1.  FUZZY
    5.  Examples
    6.  Formal Syntax
    7.  TODO
    8.  Acknowledgements
    9.  IANA Considerations
    10. Security Considerations
    11. References
      11.1.  Normative References
      11.2.  Informative References
    Author's Address

1.  Introduction

    Many modern mail clients display small extracts of the body text as
    an aid to allow a user to quickly decide whether they are interested
    in viewing the full message contents.  Mail clients implementing the
    Internet Message Access Protocol (IMAP; RFC 3501 [RFC3501]) would
    benefit from a standardized, consistent way to generate these brief
    previews of messages (a "snippet").

    Generation of snippets on the server has several additional benefits.
    First, it allows caching of these snippets for use with both multiple
    mail clients and with clients that don't support client-side caching.

    Second, generation on the server is more efficient.  A client-based
    algorithm needs to issue, at a minimum, a FETCH BODYSTRUCTURE command
    in order to determine which MIME [RFC2045] body part should be
    displayed.

    Finally, server generation allows caching in a centralized location.
    Mail accounts are often accessed by multiple different clients, and
    many of these clients lack support for client-side caching.  Using
    server generated snippets allows snippets to be generated once and
    then cached indefinitely.

    A server that supports the SNIPPET extension indicates this with one
    or more capability names consisting of "SNIPPET=" followed by a
    supported snippet algorithm name as described in this document.  This
    provides for future upwards-compatible extensions and/or the ability
    to use locally-defined snippet algorithms.

2.  Conventions Used In This Document

    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
    "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
    document are to be interpreted as described in RFC 2119 [RFC2119].

    "User" is used to refer to a human user, whereas "client" refers to
    the software being run by the user.

    In examples, "C:" and "S:" indicate lines sent by the client and
    server respectively.  If a single "C:" or "S:" label applies to
    multiple lines, then the line breaks between those lines are for
    editorial clarity only and are not part of the actual protocol
    exchange.

3.  FETCH Data Item

3.1.  Command

    To retrieve a snippet for a message, the "SNIPPET" FETCH attribute is
    used when issuing a FETCH command.

    If no algorithm identifier is provided, the server decides which of
    its built-in algorithms to use to generate the snippet text.

    Alternately, the client may explicitly indicate which algorithm
    should be used in a parenthesized list after the SNIPPET attribute
    containing the name of the algorithm.  This algorithm MUST be one of
    the algorithms identified as supported in the SNIPPET capability
    responses.  If a client requests an algorithm that is unsupported,
    the server MUST return a tagged BAD response.  The server SHOULD use
    this algorithm to generate the snippet.

    A client SHOULD NOT issue more than one SNIPPET attribute per FETCH
    command.  If more than one SNIPPET attribute is present in a FETCH
    command, the server SHOULD use the last attribute seen in the
    command.

3.2.  Response

    The server returns a variable-length string that is the generated
    snippet for that message.  This string MUST NOT be content transfer
    encoded and MUST be encoded in UTF-8.  The snippet text MUST be
    treated as text/plain MIME data by the client.

4.  SNIPPET Algorithms

4.1.  FUZZY

    The FUZZY algorithm directs the server to use any internal algorithm
    it desires, subject to the below limitations, to generate the snippet
    for a message.

    The server SHOULD limit the length of the snippet text to 150 octets.
    The server MUST NOT output snippet text longer than 250 octets.

    The server SHOULD remove any formatting markup that exists in the
    original text.

    The FUZZY algorithm MUST be implemented by any server that supports
    the SNIPPET extension.

5.  Examples

    Example 1: Requesting FETCH without explicit algorithm selection

         C: A1 CAPABILITY
         S: * CAPABILITY IMAP4rev1 SNIPPET=FUZZY
         S: A1 OK Capability command completed.
         C: A2 FETCH 1 (RFC822.SIZE SNIPPET)
         S: * 1 FETCH (RFC822.SIZE 20000 SNIPPET {61}
         S: This is the first line of text from the first text part.
         S: )
         S: A2 OK FETCH complete.

    Example 2: Requesting FETCH with explicit algorithm selection

           C: A1 CAPABILITY
           S: * CAPABILITY IMAP4rev1 SNIPPET=FUZZY
           S: A1 OK Capability command completed.
           C: A2 FETCH 1 (RFC822.SIZE SNIPPET (FUZZY))
           S: * 1 FETCH (RFC822.SIZE 20000 SNIPPET {61}
           S: This is the first line of text from the first text part.
           S: )
           S: A2 OK FETCH complete.

    Example 3: Requesting FETCH with invalid explicit algorithm selection

           C: A1 CAPABILITY
           S: * CAPABILITY IMAP4rev1 SNIPPET=FUZZY
           S: A1 OK Capability command completed.
           C: A2 FETCH 1 (RFC822.SIZE SNIPPET (X-SNIPPET-ALGO))
           S: A2 BAD FETCH contains invalid snippet algorithm name.

6.  Formal Syntax

    The following syntax specification uses the augmented Backus-Naur
    Form (BNF) as described in ABNF [RFC5234].  It includes definitions
    from IMAP [RFC3501].

        capability      =/ "SNIPPET=FUZZY"

        fetch-att       =/ "SNIPPET" *(SP "(" snippet-alg ")")

        msg-att-static  =/ "SNIPPET" SP nstring

        snippet-alg     =  "FUZZY" / snippet-alg-ext

        snippet-alg-ext =  atom
                           ; New algorithms MUST be registered with IANA

7.  TODO

    1.  More explicit algorithm for text/plain processing?

    2.  Interaction with CONDSTORE (MODSEQs)?

    3.  Allow algorithms to return non-text/plain data?

8.  Acknowledgements

    TODO

9.  IANA Considerations

    IMAP4 [RFC3501] capabilities are registered by publishing a standards
    track or IESG-approved experimental RFC.  The registry is currently
    located at:

       http://www.iana.org/assignments/imap-capabilities

    This document requests that IANA adds the "SNIPPET" capability to the
    IMAP4 [RFC3501] capabilities registry.

    This document also requests that IANA adds a new IMAP4 [RFC3501]
    snippet algorithms registry, which registers snippet algorithms by
    publishing a standards track or IESG-approved experimental RFC.  This
    document constitutes registration of the FUZZY algorithm in that
    registry.

10.  Security Considerations

    TODO; See RFC 3552

11.  References

11.1.  Normative References

    [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
               Requirement Levels", BCP 14, RFC 2119, March 1997.

    [RFC3501]  Crispin, M., "INTERNET MESSAGE ACCESS PROTOCOL - VERSION
               4rev1", RFC 3501, March 2003.

    [RFC5234]  Crocker, D. and P. Overell, "Augmented BNF for Syntax
               Specifications: ABNF", STD 68, RFC 5234, January 2008.

11.2.  Informative References

    [RFC2045]  Freed, N. and N.S. Borenstein, "Multipurpose Internet Mail
               Extensions (MIME) Part One: Format of Internet Message
               Bodies", RFC 2045, November 1996.

Author's Address

    Michael Slusarz, editor
    Dovecot
    Denver, Colorado
    US

    Email: michael.slusarz@dovecot.fi



___________________________________
Michael Slusarz [slusarz@horde.org]


From nobody Mon May  4 07:18:40 2015
Return-Path: <cyrus@daboo.name>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 166A21A0123 for <imapext@ietfa.amsl.com>; Mon,  4 May 2015 07:18:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.013
X-Spam-Level: 
X-Spam-Status: No, score=-0.013 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 vaC1zwe0euLq for <imapext@ietfa.amsl.com>; Mon,  4 May 2015 07:18:34 -0700 (PDT)
Received: from daboo.name (daboo.name [173.13.55.49]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3BA961A0125 for <imapext@ietf.org>; Mon,  4 May 2015 07:18:31 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by daboo.name (Postfix) with ESMTP id 97ACB12FD879; Mon,  4 May 2015 10:18:29 -0400 (EDT)
X-Virus-Scanned: amavisd-new at example.com
Received: from daboo.name ([127.0.0.1]) by localhost (daboo.name [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mPyJEGAKJvFr; Mon,  4 May 2015 10:18:29 -0400 (EDT)
Received: from caldav.corp.apple.com (unknown [17.45.162.46]) by daboo.name (Postfix) with ESMTPSA id 7532C12FD86E; Mon,  4 May 2015 10:18:28 -0400 (EDT)
Date: Mon, 04 May 2015 10:18:25 -0400
From: Cyrus Daboo <cyrus@daboo.name>
To: Michael M Slusarz <slusarz@horde.org>, IMAPEXT <imapext@ietf.org>
Message-ID: <178B524E262103524852BACC@caldav.corp.apple.com>
In-Reply-To: <20150503235625.Horde.pquZ06cW6a2mn1lEJlQhL4J@bigworm.curecanti.org>
References: <20150503235625.Horde.pquZ06cW6a2mn1lEJlQhL4J@bigworm.curecanti.org>
X-Mailer: Mulberry/4.1.0b1 (Mac OS X)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; size=434
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/0RhJsbinIYpBhAxVabXWtsJUIfA>
Subject: Re: [imapext] IMAP SNIPPET extension (initial draft)
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 04 May 2015 14:18:39 -0000

Hi Michael,

--On May 3, 2015 at 11:56:25 PM -0600 Michael M Slusarz <slusarz@horde.org> 
wrote:

> But hopefully this is a decent enough starting point where it can be used
> to continue the discussion going forward.

The spec should state somewhere that if the server is unable to extract a 
suitable snippet (e.g., message is encrypted, contains only an image), then 
it returns NIL in the FETCH SNIPPET response.

-- 
Cyrus Daboo


From nobody Mon May  4 09:09:59 2015
Return-Path: <stuart.brandt@teamaol.com>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AF6631A1ADD for <imapext@ietfa.amsl.com>; Mon,  4 May 2015 09:09:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level: 
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
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 AAbVeTnM37df for <imapext@ietfa.amsl.com>; Mon,  4 May 2015 09:09:57 -0700 (PDT)
Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 90C621A1AB6 for <imapext@ietf.org>; Mon,  4 May 2015 09:09:57 -0700 (PDT)
Received: by pacwv17 with SMTP id wv17so164635025pac.0 for <imapext@ietf.org>; Mon, 04 May 2015 09:09:57 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=3KF/ecOMJOYXUkVjWqo7svcuNFHUBxR03k3UnXYg1zM=; b=d3xCoMQDDNK3H1az5yZhQss3z89kM1ByChF5BgN4j2OdL3JvIn05C8Wqlxvezd0KEg W4x/gajKq2NuY5IBbWmWxbq+x54Je/A9boml+mvj11wyLudT6rCNcf8jfmugU+SAjVrY AUWb20IkN7jJygKfVtdwPT3x4ohLzgpA+BZhrWLQQoZz/OlrECU5ORUKznauyYxed8UU 4S6ssAubxHIOnefEaMiqz0ucPT9xHOLy3GlsmQEcchFdUnlApous18Kb3hUf7xnHUyMP pehKqEwhGPKp+dvM5Y+4j37wU+i0/6oMFUWdwPQigsFjfiLABA3p1Si74zxASJTFn6Hv 4l1w==
X-Gm-Message-State: ALoCoQnkmfB45myOWSraP5PyGMk85J5fu8x1tk4Uv2vMfEl1vvMae3oAcdb03qsw0w5/UdnTLKA0
X-Received: by 10.66.235.200 with SMTP id uo8mr23604923pac.18.1430755797211; Mon, 04 May 2015 09:09:57 -0700 (PDT)
Received: from [10.172.161.218] ([64.236.138.3]) by mx.google.com with ESMTPSA id fe3sm13204959pbd.76.2015.05.04.09.09.56 for <imapext@ietf.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 May 2015 09:09:56 -0700 (PDT)
Message-ID: <554799D2.7020400@teamaol.com>
Date: Mon, 04 May 2015 12:09:54 -0400
From: Stu Brandt <stuart.brandt@teamaol.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: imapext@ietf.org
References: <20150503235625.Horde.pquZ06cW6a2mn1lEJlQhL4J@bigworm.curecanti.org>
In-Reply-To: <20150503235625.Horde.pquZ06cW6a2mn1lEJlQhL4J@bigworm.curecanti.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/kKxC4xz6UrhjKTOxCablVooj0CA>
Subject: Re: [imapext] IMAP SNIPPET extension (initial draft)
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 04 May 2015 16:09:58 -0000

Thanks, Michael, for putting this together.

On 5/4/15 1:56 AM, Michael M Slusarz wrote:
[snip]

> 7.  TODO
>
>     1.  More explicit algorithm for text/plain processing?
>
>     2.  Interaction with CONDSTORE (MODSEQs)?

Is this where details on the question of the snippet being 
mutable/immutable will be or does the mention of CONDSTORE here imply 
that it's assumed to be mutable?

Assuming the latter, it would be good to cover the cases that demand a 
mutable snippet + offer recommendations for clients that don't use 
CONDSTORE/MODSEQ regarding snippet fetch frequency. I'd sure hate to see 
all the "FETCH 1:* (UID FLAGS)" polling turn into "FETCH 1:* (UID FLAGS 
SNIPPET)"

>
>     3.  Allow algorithms to return non-text/plain data?


From nobody Tue May  5 11:41:24 2015
Return-Path: <groups@maclean.com>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 27CA21B2F71 for <imapext@ietfa.amsl.com>; Tue,  5 May 2015 11:41:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.799
X-Spam-Level: 
X-Spam-Status: No, score=0.799 tagged_above=-999 required=5 tests=[BAYES_50=0.8, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001] autolearn=ham
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 eMPXeLW_leAE for <imapext@ietfa.amsl.com>; Tue,  5 May 2015 11:41:20 -0700 (PDT)
Received: from relay.mailchannels.net (aso-006-i440.relay.mailchannels.net [23.91.64.121]) by ietfa.amsl.com (Postfix) with ESMTP id 3F0761B2F80 for <imapext@ietf.org>; Tue,  5 May 2015 11:40:07 -0700 (PDT)
X-Sender-Id: wwwh|x-authuser|pete+maclean.com@cs8-dallas.accountservergroup.com
Received: from cs8-dallas.accountservergroup.com (ip-10-220-9-73.us-west-2.compute.internal [10.220.9.73]) by relay.mailchannels.net (Postfix) with ESMTPA id C55F562998; Tue,  5 May 2015 18:40:05 +0000 (UTC)
X-Sender-Id: wwwh|x-authuser|pete+maclean.com@cs8-dallas.accountservergroup.com
Received: from cs8-dallas.accountservergroup.com (cs8-dallas.accountservergroup.com [10.246.31.37]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:2500 (trex/5.4.8); Tue, 05 May 2015 18:40:06 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: wwwh|x-authuser|pete+maclean.com@cs8-dallas.accountservergroup.com
X-MailChannels-Auth-Id: wwwh
X-MC-Loop-Signature: 1430851206081:3913098782
X-MC-Ingress-Time: 1430851206080
Received: from static-108-57-124-120.lyncva.fios.verizon.net ([108.57.124.120]:57326 helo=Samsung-RF711.maclean.com) by cs8-dallas.accountservergroup.com with esmtpa (Exim 4.82) (envelope-from <groups@maclean.com>) id 1YphlE-0000aC-5t; Tue, 05 May 2015 13:40:04 -0500
X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9
Date: Tue, 05 May 2015 14:35:58 -0400
To: Stu Brandt <stuart.brandt@teamaol.com>, "'imapext@ietf.org'" <imapext@ietf.org>
From: Pete Maclean <groups@maclean.com>
In-Reply-To: <5540E067.1050609@teamaol.com>
References: <5540E067.1050609@teamaol.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-AuthUser: pete+maclean.com@cs8-dallas.accountservergroup.com
Message-Id: <20150505184008.3F0761B2F80@ietfa.amsl.com>
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/MLSycLb1uiiKCGtXJEwJGtj5hd4>
Subject: Re: [imapext] IMAP REPLACE extension
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 05 May 2015 18:41:22 -0000

Stu,

This is a good start indeed but I find a few things to mention.

Is UID REPLACE valid in the authenticated state?  My assumption would 
be that it is but it might be good for the text to make that explicit.

Can REPLACE be used to replace a message in a mailbox other than the 
one the client has selected?  Surely it should not be.  Which perhaps 
suggests that REPLACE should not have a mailbox-name argument.

The penultimate paragraph in section 3.4 strikes me as awkward and unclear.

There is a typo ("replacment") in the first paragraph of the Abstract.

Pete Maclean


From nobody Tue May  5 14:55:47 2015
Return-Path: <adrien@qbik.com>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 569C71A6FFC for <imapext@ietfa.amsl.com>; Tue,  5 May 2015 14:55:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.911
X-Spam-Level: 
X-Spam-Status: No, score=-1.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 6fGDQ6gmDeik for <imapext@ietfa.amsl.com>; Tue,  5 May 2015 14:55:43 -0700 (PDT)
Received: from smtp.qbik.com (smtp.qbik.com [122.56.26.1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 805EA1A7009 for <imapext@ietf.org>; Tue,  5 May 2015 14:55:43 -0700 (PDT)
Received: From [192.168.1.146] (unverified [192.168.1.146]) by SMTP Server [192.168.1.3] (WinGate SMTP Receiver v8.3.3 (Build 4781)) with SMTP id <0000334596@smtp.qbik.com>; Wed, 06 May 2015 09:54:15 +1200
From: "Adrien de Croy" <adrien@qbik.com>
To: "Pete Maclean" <groups@maclean.com>, "Stu Brandt" <stuart.brandt@teamaol.com>,  "'imapext@ietf.org'" <imapext@ietf.org>
Date: Tue, 05 May 2015 21:54:15 +0000
Message-Id: <em344e559b-a501-4977-9486-12516529a282@bodybag>
In-Reply-To: <20150505184008.3F0761B2F80@ietfa.amsl.com>
User-Agent: eM_Client/6.0.22344.0
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/n7fFufQxBeA0YmR-dKhh0bxz4EI>
Subject: Re: [imapext] IMAP REPLACE extension
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Adrien de Croy <adrien@qbik.com>
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 05 May 2015 21:55:46 -0000

REPLACE wraps APPEND which has a mailbox name as an argument.  Therefore=
=20
REPLACE must also have this argument and that's also why it's an=20
authenticated-state command and not a selected-state command.

Adrien


------ Original Message ------
From: "Pete Maclean" <groups@maclean.com>
To: "Stu Brandt" <stuart.brandt@teamaol.com>; "'imapext@ietf.org'"=20
<imapext@ietf.org>
Sent: 6/05/2015 6:35:58 a.m.
Subject: Re: [imapext] IMAP REPLACE extension

>Stu,
>
>This is a good start indeed but I find a few things to mention.
>
>Is UID REPLACE valid in the authenticated state?  My assumption would=20
>be that it is but it might be good for the text to make that explicit.
>
>Can REPLACE be used to replace a message in a mailbox other than the=20
>one the client has selected?  Surely it should not be.  Which perhaps=20
>suggests that REPLACE should not have a mailbox-name argument.
>
>The penultimate paragraph in section 3.4 strikes me as awkward and=20
>unclear.
>
>There is a typo ("replacment") in the first paragraph of the Abstract.
>
>Pete Maclean
>
>_______________________________________________
>imapext mailing list
>imapext@ietf.org
>https://www.ietf.org/mailman/listinfo/imapext


From nobody Tue May  5 15:18:10 2015
Return-Path: <stuart.brandt@teamaol.com>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4B99C1B2A3F for <imapext@ietfa.amsl.com>; Tue,  5 May 2015 15:18:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level: 
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
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 aj2qOn1fXF20 for <imapext@ietfa.amsl.com>; Tue,  5 May 2015 15:18:05 -0700 (PDT)
Received: from mail-qk0-f179.google.com (mail-qk0-f179.google.com [209.85.220.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E1B4B1B2A42 for <imapext@ietf.org>; Tue,  5 May 2015 15:18:02 -0700 (PDT)
Received: by qkhg7 with SMTP id g7so116631451qkh.2 for <imapext@ietf.org>; Tue, 05 May 2015 15:18:02 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=JMeEapG4b2+c2OybG1Janpy3hZqRIDUhdPJ6EdeZ2XM=; b=f3RexyC36L9+SWCdoVbUmdAntCUn6XDTaKfEres0HKD/9DndZn9yzHA4uXbXfie4n+ P2Je3BgAFoMkgi5EteA9RQrGbphzuQLQ9ESVlQJ9XQC7tY6Mb0zKMzi4AxxxrKqZ9yVB T+6f2kcDnn+EyEcl8psCEGfIgTgzVw5Bb7LGRSznCa7VIOxYs0vAWqS1CqxNewDEMcyU ZXl4+51U4l85P9UoIwU6UM1I5Yrv1B33OB0qWBw0v/gS6mjXuxuqK+2zZNbfyY8m8uHK ZyJWTM8vYfVY6C4SiFhQSJiBXvzdPt3GcvOAVponi+T4wugqeEWbm7FJ4dqZXe9EMNlG peEQ==
X-Gm-Message-State: ALoCoQnorpvq6N7HncUUWHEttf1ecDs7zArzcz6/3V1rNK5A5YmzRAPgRIdNswXLGlewerGlTDfb
X-Received: by 10.140.28.102 with SMTP id 93mr36302681qgy.78.1430864282155; Tue, 05 May 2015 15:18:02 -0700 (PDT)
Received: from [10.172.96.79] (h-64-236-208-25.nat.aol.com. [64.236.208.25]) by mx.google.com with ESMTPSA id e70sm12975835qka.40.2015.05.05.15.18.01 for <imapext@ietf.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 May 2015 15:18:01 -0700 (PDT)
Message-ID: <55494198.7040109@teamaol.com>
Date: Tue, 05 May 2015 18:18:00 -0400
From: Stu Brandt <stuart.brandt@teamaol.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: "'imapext@ietf.org'" <imapext@ietf.org>
References: <5540E067.1050609@teamaol.com> <20150505184012.0B916AFA3F8@cuda-l04.red.aol.com>
In-Reply-To: <20150505184012.0B916AFA3F8@cuda-l04.red.aol.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/F8hkjmnZi2VykWw1T6hsJfivvV0>
Subject: Re: [imapext] IMAP REPLACE extension
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 05 May 2015 22:18:07 -0000

Pete -

Thanks for your response. My comments are inline.

On 5/5/15 2:35 PM, Pete Maclean wrote:
> Stu,
>
> This is a good start indeed but I find a few things to mention.
>
> Is UID REPLACE valid in the authenticated state?  My assumption would be
> that it is but it might be good for the text to make that explicit.

I was hoping that section 3.5 would have covered that. Specifically my 
statement of...

  "Unlike the APPEND command which is valid in the authenticated state,
    the REPLACE command MUST only be valid in the selected state. "

...was intended to answer your question. In my proposal, I'm intending 
to say it's valid ONLY in SELECTED state.  Does that wording cover it 
for you or can you help detail the ambiguity in the wording?

>
> Can REPLACE be used to replace a message in a mailbox other than the one
> the client has selected?  Surely it should not be.  Which perhaps
> suggests that REPLACE should not have a mailbox-name argument.

Yeah, I spent a lot of time going back and forth on this question.
Ultimately where I ended up is that since the problems that REPLACE 
solves (specified in section 2) exist regardless of whether the new 
message ends up in the same mailbox or a different one, I chose not to 
restrict the new message to the selected mailbox.

As an aside, there is at least 1 common use case I can think of where 
I'd want to replace a message in one mailbox with a message in an 
entirely different mailbox; replacing the final version of a message in 
Drafts with a message in Sent following a successful send. Together with 
CATENATE, REPLACE as written could be quite useful in this case.

>
> The penultimate paragraph in section 3.4 strikes me as awkward and unclear.

It's trying to provide more details around what a server might need to 
do in order to be truly atomic in implementing REPLACE. Things like 
don't fail REPLACE but then show the original message with the /Deleted 
flag. Or don't fail REPLACE *after* you've already sent an untagged 
EXPUNGE. Or don't fail REPLACE but then change MODSEQ and NEXTUID in a 
way that would make the client think it missed some kind of change. Or 
don't fail REPLACE after having sent untagged EXISTS to other clients in 
IDLE. This list goes on, but basically:
1) Don't leave selected mailbox in an altered state if it fails
2) Don't send untagged responses if it fails
3) Don't leave the target mailbox in an altered state if it fails

Does that make sense?


>
> There is a typo ("replacment") in the first paragraph of the Abstract.

Thank you. It'll be corrected in next version.

>
> Pete Maclean
>


From nobody Tue May  5 15:29:53 2015
Return-Path: <stuart.brandt@teamaol.com>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D5FAF1B2A7F for <imapext@ietfa.amsl.com>; Tue,  5 May 2015 15:29:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level: 
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
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 sRZo-py1YZq3 for <imapext@ietfa.amsl.com>; Tue,  5 May 2015 15:29:44 -0700 (PDT)
Received: from mail-qk0-f179.google.com (mail-qk0-f179.google.com [209.85.220.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BFF0E1B2A66 for <imapext@ietf.org>; Tue,  5 May 2015 15:29:44 -0700 (PDT)
Received: by qku63 with SMTP id 63so116666992qku.3 for <imapext@ietf.org>; Tue, 05 May 2015 15:29:44 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=fHZDCHrKuzjl90zE7EzkBE7vPSe8XpvdTnqacKaXcKA=; b=lT20zmwWZyLmm3Cpt9pqFBxjGaik5IoSM8JmSOw/jIG41mYM7qNrhpv8w1zos2V4Wz 8bqLZmVACUhwmuAb1fJKrA9iZZfHAp2KyU5faWdqP4EwcuqwkyG4sMIQdM3I3NynjXBr XdujGzNDP6GGc4ifd1YW1yQU5ClYskRafhrf10Ojtiqj49g07NiNdeRvlKN4jXiS5fao HiqDNSVE/qFc3DVD9fg0vFEu3QjRsgaSo/BBIQDF841g5XCVpV17VFJRjCiLGTyE7za8 EqwmYChsSljTtyYWWEoMeP8O++ti4GtT8avH7sl6ePD+HWaDy2WnUI9GWA9Jna8rksPP c9CQ==
X-Gm-Message-State: ALoCoQnnwSNCBuyRZAUPltqAAb+rQk1PuD79OWdbEv57ohZ4B/rT9FhgykB3E9bAd38M6wbwjNjn
X-Received: by 10.140.235.216 with SMTP id g207mr39208382qhc.80.1430864984048;  Tue, 05 May 2015 15:29:44 -0700 (PDT)
Received: from [10.172.96.79] (h-64-236-208-25.nat.aol.com. [64.236.208.25]) by mx.google.com with ESMTPSA id q74sm28194046qha.4.2015.05.05.15.29.43 for <imapext@ietf.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 May 2015 15:29:43 -0700 (PDT)
Message-ID: <55494456.1010504@teamaol.com>
Date: Tue, 05 May 2015 18:29:42 -0400
From: Stu Brandt <stuart.brandt@teamaol.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: "'imapext@ietf.org'" <imapext@ietf.org>
References: <em344e559b-a501-4977-9486-12516529a282@bodybag>
In-Reply-To: <em344e559b-a501-4977-9486-12516529a282@bodybag>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/G8ItLDKCxL1X5oN9PteEkslDQQw>
Subject: Re: [imapext] IMAP REPLACE extension
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 05 May 2015 22:29:47 -0000

Adrien -

I believe message sequence numbers are only valid in the context of a 
Selected mailbox, so REPLACE is not valid in Authenticated state.  I had 
considered doing away with support for sequence numbers and relying on 
IMAP-URL-style specification of the original message in order to avoid 
the need for Selected state, but landed where I did based on:
1) STORE + UID EXPUNGE require Selected state and those are component 
parts of REPLACE
2) being already in Selected state for APPEND is actually a lot more 
common than one would expect

- Stuart

On 5/5/15 5:54 PM, Adrien de Croy wrote:
>
> REPLACE wraps APPEND which has a mailbox name as an argument.  Therefore
> REPLACE must also have this argument and that's also why it's an
> authenticated-state command and not a selected-state command.
>
> Adrien
>
>
> ------ Original Message ------
> From: "Pete Maclean" <groups@maclean.com>
> To: "Stu Brandt" <stuart.brandt@teamaol.com>; "'imapext@ietf.org'"
> <imapext@ietf.org>
> Sent: 6/05/2015 6:35:58 a.m.
> Subject: Re: [imapext] IMAP REPLACE extension
>
>> Stu,
>>
>> This is a good start indeed but I find a few things to mention.
>>
>> Is UID REPLACE valid in the authenticated state?  My assumption would
>> be that it is but it might be good for the text to make that explicit.
>>
>> Can REPLACE be used to replace a message in a mailbox other than the
>> one the client has selected?  Surely it should not be.  Which perhaps
>> suggests that REPLACE should not have a mailbox-name argument.
>>
>> The penultimate paragraph in section 3.4 strikes me as awkward and
>> unclear.
>>
>> There is a typo ("replacment") in the first paragraph of the Abstract.
>>
>> Pete Maclean
>>
>> _______________________________________________
>> imapext mailing list
>> imapext@ietf.org
>> https://www.ietf.org/mailman/listinfo/imapext
>


From nobody Tue May  5 15:33:20 2015
Return-Path: <adrien@qbik.com>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EF2CD1B2A39 for <imapext@ietfa.amsl.com>; Tue,  5 May 2015 15:33:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.911
X-Spam-Level: 
X-Spam-Status: No, score=-1.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 6Mnq0mn4PwlF for <imapext@ietfa.amsl.com>; Tue,  5 May 2015 15:33:16 -0700 (PDT)
Received: from smtp.qbik.com (smtp.qbik.com [122.56.26.1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EABAF1ACE07 for <imapext@ietf.org>; Tue,  5 May 2015 15:33:15 -0700 (PDT)
Received: From [192.168.1.146] (unverified [192.168.1.146]) by SMTP Server [192.168.1.3] (WinGate SMTP Receiver v8.3.3 (Build 4781)) with SMTP id <0000334702@smtp.qbik.com>; Wed, 06 May 2015 10:31:48 +1200
From: "Adrien de Croy" <adrien@qbik.com>
To: "Stu Brandt" <stuart.brandt@teamaol.com>, "'imapext@ietf.org'" <imapext@ietf.org>
Date: Tue, 05 May 2015 22:31:48 +0000
Message-Id: <em2bab4b88-f90c-440a-b045-6c70c37335a1@bodybag>
In-Reply-To: <55494456.1010504@teamaol.com>
User-Agent: eM_Client/6.0.22344.0
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/7SAoCCEy-ccj7SLHnKJ_bZvxwUU>
Subject: Re: [imapext] IMAP REPLACE extension
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Adrien de Croy <adrien@qbik.com>
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 05 May 2015 22:33:19 -0000

Ok

do you think many / any people would even want to use this with seq=20
numbers, or should it be UID REPLACE only?

I don't have a problem with it being in selected state only.  Was just=20
trying to explain the rationale.

I guess it is quite different to an APPEND, since that generates a new=20
MSGNO and UID, which is not what happens for REPLACE.

Adrien

------ Original Message ------
From: "Stu Brandt" <stuart.brandt@teamaol.com>
To: "'imapext@ietf.org'" <imapext@ietf.org>
Sent: 6/05/2015 10:29:42 a.m.
Subject: Re: [imapext] IMAP REPLACE extension

>Adrien -
>
>I believe message sequence numbers are only valid in the context of a=20
>Selected mailbox, so REPLACE is not valid in Authenticated state.  I=20
>had considered doing away with support for sequence numbers and relying=
=20
>on IMAP-URL-style specification of the original message in order to=20
>avoid the need for Selected state, but landed where I did based on:
>1) STORE + UID EXPUNGE require Selected state and those are component=20
>parts of REPLACE
>2) being already in Selected state for APPEND is actually a lot more=20
>common than one would expect
>
>- Stuart
>
>On 5/5/15 5:54 PM, Adrien de Croy wrote:
>>
>>REPLACE wraps APPEND which has a mailbox name as an argument. =20
>>Therefore
>>REPLACE must also have this argument and that's also why it's an
>>authenticated-state command and not a selected-state command.
>>
>>Adrien
>>
>>
>>------ Original Message ------
>>From: "Pete Maclean" <groups@maclean.com>
>>To: "Stu Brandt" <stuart.brandt@teamaol.com>; "'imapext@ietf.org'"
>><imapext@ietf.org>
>>Sent: 6/05/2015 6:35:58 a.m.
>>Subject: Re: [imapext] IMAP REPLACE extension
>>
>>>Stu,
>>>
>>>This is a good start indeed but I find a few things to mention.
>>>
>>>Is UID REPLACE valid in the authenticated state?  My assumption would
>>>be that it is but it might be good for the text to make that=20
>>>explicit.
>>>
>>>Can REPLACE be used to replace a message in a mailbox other than the
>>>one the client has selected?  Surely it should not be.  Which perhaps
>>>suggests that REPLACE should not have a mailbox-name argument.
>>>
>>>The penultimate paragraph in section 3.4 strikes me as awkward and
>>>unclear.
>>>
>>>There is a typo ("replacment") in the first paragraph of the=20
>>>Abstract.
>>>
>>>Pete Maclean
>>>
>>>_______________________________________________
>>>imapext mailing list
>>>imapext@ietf.org
>>>https://www.ietf.org/mailman/listinfo/imapext
>>
>
>_______________________________________________
>imapext mailing list
>imapext@ietf.org
>https://www.ietf.org/mailman/listinfo/imapext


From nobody Tue May  5 15:59:37 2015
Return-Path: <stuart.brandt@teamaol.com>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 49B411B2A80 for <imapext@ietfa.amsl.com>; Tue,  5 May 2015 15:59:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level: 
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
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 MiT3okhsxFaA for <imapext@ietfa.amsl.com>; Tue,  5 May 2015 15:59:33 -0700 (PDT)
Received: from mail-qk0-f180.google.com (mail-qk0-f180.google.com [209.85.220.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7BEFB1A8939 for <imapext@ietf.org>; Tue,  5 May 2015 15:59:33 -0700 (PDT)
Received: by qku63 with SMTP id 63so117067667qku.3 for <imapext@ietf.org>; Tue, 05 May 2015 15:59:32 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=xXFUizhGQZ5E+NC2pG6/TgugoDvt2lPvbxw/1MSBGyg=; b=c3hXN3rfOMt6pio3uJ+mt0KIDP6ruiTzUqfagPBG0+5MDxB7UCawPfskAV/TkYiSFA RU933tTSVc8+vUIaha2YRAP8rYZ3jtwN0K0T3+chlp8mcymveaJaW8eGImd7xlu7TbkI pVPrEHF26BUisPMnI9QCWzB5lOwJU+5nZxlCe/TmvcXf5dVlI3pXgwwohoOLAdDpRIjj R+CQi8wIBtd2BHknaYfrbqyHcSxpOWh33cdjJ6OVT5fqTt8DodtzYhilUEXxQlIeQHT1 kqsppm4W1mD4j+griJZHx2H/9WiTnuqqcd9hnaVSxAGrV/uIMVPE3jco7yVpAl/4KYuP nb6Q==
X-Gm-Message-State: ALoCoQknIzeiJbDbVxQbGh1rilyP3V5iUPiBdIYBVE4OFImfh+fVMg1x8Q0dRbClv44k85FsR/bt
X-Received: by 10.140.237.72 with SMTP id i69mr37653540qhc.35.1430866772761; Tue, 05 May 2015 15:59:32 -0700 (PDT)
Received: from [10.172.96.79] (h-64-236-208-25.nat.aol.com. [64.236.208.25]) by mx.google.com with ESMTPSA id 8sm13185280qgy.39.2015.05.05.15.59.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 May 2015 15:59:32 -0700 (PDT)
Message-ID: <55494B53.9030704@teamaol.com>
Date: Tue, 05 May 2015 18:59:31 -0400
From: Stu Brandt <stuart.brandt@teamaol.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: Adrien de Croy <adrien@qbik.com>, "'imapext@ietf.org'" <imapext@ietf.org>
References: <em2bab4b88-f90c-440a-b045-6c70c37335a1@bodybag>
In-Reply-To: <em2bab4b88-f90c-440a-b045-6c70c37335a1@bodybag>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/Fhx0vu9FFp9u5NUlrAaU5V5C0Sk>
Subject: Re: [imapext] IMAP REPLACE extension
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 05 May 2015 22:59:35 -0000

Comments inline.

On 5/5/15 6:31 PM, Adrien de Croy wrote:
>
> Ok
>
> do you think many / any people would even want to use this with seq
> numbers, or should it be UID REPLACE only?

I'll flip the question back to you...do you think this draft is the 
right place to stop supporting sequence numbers when referring to a 
message in the store?

For a client looking to implement REPLACE, they're likely already in 
Selected mode since their current code needs to do a STORE. Closing the 
door on the use of sequence numbers seemed to be forging an unnecessary 
new path.

So much as I dislike sequence numbers, I did not think this was the 
right vehicle to pursue it.

>
> I don't have a problem with it being in selected state only.  Was just
> trying to explain the rationale.
>
> I guess it is quite different to an APPEND, since that generates a new
> MSGNO and UID, which is not what happens for REPLACE.

Sorry, but that's not the case either. Message bodies are immutable 
things, so not changing UID or MSGNO would break the basic client-server 
model where clients fetch body once, store it locally, and never need to 
ask for body ever again.

I was being somewhat literal when I wrote:

"In its simplest form, the REPLACE command is an atomic encapsulation of 
STORE + UID EXPUNGE + APPEND" in section 2.

The examples in section 3 also show APPENDUID responses to cover the 
factthat the new revision is considered its own message with its own UID.

I suppose I should clarify the examples a bit more with untagged EXISTS 
as well per recommendation of 6.3.11 in rfc3501.

>
> Adrien
>
>


From nobody Tue May  5 16:45:11 2015
Return-Path: <adrien@qbik.com>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B0B0C1A89B1 for <imapext@ietfa.amsl.com>; Tue,  5 May 2015 16:45:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.911
X-Spam-Level: 
X-Spam-Status: No, score=-1.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 ys54-T3uZIKd for <imapext@ietfa.amsl.com>; Tue,  5 May 2015 16:45:08 -0700 (PDT)
Received: from smtp.qbik.com (smtp.qbik.com [122.56.26.1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7FEDD1A89B0 for <imapext@ietf.org>; Tue,  5 May 2015 16:45:08 -0700 (PDT)
Received: From [192.168.1.146] (unverified [192.168.1.146]) by SMTP Server [192.168.1.3] (WinGate SMTP Receiver v8.3.3 (Build 4781)) with SMTP id <0000334850@smtp.qbik.com>; Wed, 06 May 2015 11:43:40 +1200
From: "Adrien de Croy" <adrien@qbik.com>
To: "Stu Brandt" <stuart.brandt@teamaol.com>, "'imapext@ietf.org'" <imapext@ietf.org>
Date: Tue, 05 May 2015 23:43:40 +0000
Message-Id: <em3a556557-c769-49dd-964d-030ac9e82f5b@bodybag>
In-Reply-To: <55494B53.9030704@teamaol.com>
User-Agent: eM_Client/6.0.22344.0
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/yi_axAzEdu0gej0waA2mJ7392d0>
Subject: Re: [imapext] IMAP REPLACE extension
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Adrien de Croy <adrien@qbik.com>
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 05 May 2015 23:45:10 -0000

------ Original Message ------
From: "Stu Brandt" <stuart.brandt@teamaol.com>
To: "Adrien de Croy" <adrien@qbik.com>; "'imapext@ietf.org'"=20
<imapext@ietf.org>
Sent: 6/05/2015 10:59:31 a.m.
Subject: Re: [imapext] IMAP REPLACE extension

>Comments inline.
>
>On 5/5/15 6:31 PM, Adrien de Croy wrote:
>>
>>Ok
>>
>>do you think many / any people would even want to use this with seq
>>numbers, or should it be UID REPLACE only?
>
>I'll flip the question back to you...do you think this draft is the=20
>right place to stop supporting sequence numbers when referring to a=20
>message in the store?
fair enough.

But I think it could be justifiable at some stage to take a position=20
that certain extensions are only available using UIDs.  It's optional=20
after all.  In fact wasn't MOVE debated around this point, re safety=20
thereof?  I guess MOVE is special in that potentially 2 mailboxes are=20
involved.

>
>For a client looking to implement REPLACE, they're likely already in=20
>Selected mode since their current code needs to do a STORE. Closing the=
=20
>door on the use of sequence numbers seemed to be forging an unnecessary=
=20
>new path.
>
>So much as I dislike sequence numbers, I did not think this was the=20
>right vehicle to pursue it.
>
>>
>>I don't have a problem with it being in selected state only.  Was just
>>trying to explain the rationale.
>>
>>I guess it is quite different to an APPEND, since that generates a new
>>MSGNO and UID, which is not what happens for REPLACE.
>
>Sorry, but that's not the case either. Message bodies are immutable=20
>things, so not changing UID or MSGNO would break the basic=20
>client-server model where clients fetch body once, store it locally,=20
>and never need to ask for body ever again.
commonly in drafts folder it will actually end up with the same MSGNO=20
but I guess there will be an expunge notification in between.

>
>I was being somewhat literal when I wrote:
>
>"In its simplest form, the REPLACE command is an atomic encapsulation=20
>of STORE + UID EXPUNGE + APPEND" in section 2.
>
>The examples in section 3 also show APPENDUID responses to cover the=20
>factthat the new revision is considered its own message with its own=20
>UID.

OK.


>
>I suppose I should clarify the examples a bit more with untagged EXISTS=
=20
>as well per recommendation of 6.3.11 in rfc3501.
Sorry I should do more than just glance over the draft before=20
commenting.

Cheers

Adrien


>
>>
>>Adrien
>>
>>


From nobody Tue May  5 17:07:03 2015
Return-Path: <groups@maclean.com>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8A8561A89FC for <imapext@ietfa.amsl.com>; Tue,  5 May 2015 17:07:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001] autolearn=ham
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 HlpWnee2AJ_F for <imapext@ietfa.amsl.com>; Tue,  5 May 2015 17:06:59 -0700 (PDT)
Received: from relay.mailchannels.net (tkt-001-i374.relay.mailchannels.net [174.136.5.177]) by ietfa.amsl.com (Postfix) with ESMTP id C7B5B1A8A4E for <imapext@ietf.org>; Tue,  5 May 2015 17:06:58 -0700 (PDT)
X-Sender-Id: wwwh|x-authuser|pete+maclean.com@cs8-dallas.accountservergroup.com
Received: from cs8-dallas.accountservergroup.com (ip-10-237-13-110.us-west-2.compute.internal [10.237.13.110]) by relay.mailchannels.net (Postfix) with ESMTPA id 33EBA4A89; Wed,  6 May 2015 00:06:56 +0000 (UTC)
X-Sender-Id: wwwh|x-authuser|pete+maclean.com@cs8-dallas.accountservergroup.com
Received: from cs8-dallas.accountservergroup.com (cs8-dallas.accountservergroup.com [10.21.145.197]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:2500 (trex/5.4.8); Wed, 06 May 2015 00:06:57 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: wwwh|x-authuser|pete+maclean.com@cs8-dallas.accountservergroup.com
X-MailChannels-Auth-Id: wwwh
X-MC-Loop-Signature: 1430870816600:1860905964
X-MC-Ingress-Time: 1430870816600
Received: from static-108-57-124-120.lyncva.fios.verizon.net ([108.57.124.120]:59426 helo=Samsung-RF711.maclean.com) by cs8-dallas.accountservergroup.com with esmtpa (Exim 4.82) (envelope-from <groups@maclean.com>) id 1YpmrW-0001BZ-NT; Tue, 05 May 2015 19:06:54 -0500
X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9
Date: Tue, 05 May 2015 20:06:44 -0400
To: Adrien de Croy <adrien@qbik.com>, "Stu Brandt" <stuart.brandt@teamaol.com>, "'imapext@ietf.org'" <imapext@ietf.org>
From: Pete Maclean <groups@maclean.com>
In-Reply-To: <em3a556557-c769-49dd-964d-030ac9e82f5b@bodybag>
References: <55494B53.9030704@teamaol.com> <em3a556557-c769-49dd-964d-030ac9e82f5b@bodybag>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-AuthUser: pete+maclean.com@cs8-dallas.accountservergroup.com
Message-Id: <20150506000658.C7B5B1A8A4E@ietfa.amsl.com>
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/t9ovSWyptK-uxsapuX3tqUyMVMc>
Subject: Re: [imapext] IMAP REPLACE extension
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 06 May 2015 00:07:01 -0000

I did not feel confident enough to say so in my first message but I 
also thought about suggesting we have UID REPLACE only.  I would 
prefer to see that as a suitable compromise for this extension and 
not as a push to start eliminating sequence numbers.

Pete

At 07:43 PM 5/5/2015, Adrien de Croy wrote:


>------ Original Message ------
>From: "Stu Brandt" <stuart.brandt@teamaol.com>
>To: "Adrien de Croy" <adrien@qbik.com>; "'imapext@ietf.org'" 
><imapext@ietf.org>
>Sent: 6/05/2015 10:59:31 a.m.
>Subject: Re: [imapext] IMAP REPLACE extension
>
>>Comments inline.
>>
>>On 5/5/15 6:31 PM, Adrien de Croy wrote:
>>>
>>>Ok
>>>
>>>do you think many / any people would even want to use this with seq
>>>numbers, or should it be UID REPLACE only?
>>
>>I'll flip the question back to you...do you think this draft is the 
>>right place to stop supporting sequence numbers when referring to a 
>>message in the store?
>fair enough.
>
>But I think it could be justifiable at some stage to take a position 
>that certain extensions are only available using UIDs.  It's 
>optional after all.  In fact wasn't MOVE debated around this point, 
>re safety thereof?  I guess MOVE is special in that potentially 2 
>mailboxes are involved.
>
>>
>>For a client looking to implement REPLACE, they're likely already 
>>in Selected mode since their current code needs to do a STORE. 
>>Closing the door on the use of sequence numbers seemed to be 
>>forging an unnecessary new path.
>>
>>So much as I dislike sequence numbers, I did not think this was the 
>>right vehicle to pursue it.
>>
>>>
>>>I don't have a problem with it being in selected state only.  Was just
>>>trying to explain the rationale.
>>>
>>>I guess it is quite different to an APPEND, since that generates a new
>>>MSGNO and UID, which is not what happens for REPLACE.
>>
>>Sorry, but that's not the case either. Message bodies are immutable 
>>things, so not changing UID or MSGNO would break the basic 
>>client-server model where clients fetch body once, store it 
>>locally, and never need to ask for body ever again.
>commonly in drafts folder it will actually end up with the same 
>MSGNO but I guess there will be an expunge notification in between.
>
>>
>>I was being somewhat literal when I wrote:
>>
>>"In its simplest form, the REPLACE command is an atomic 
>>encapsulation of STORE + UID EXPUNGE + APPEND" in section 2.
>>
>>The examples in section 3 also show APPENDUID responses to cover 
>>the factthat the new revision is considered its own message with its own UID.
>
>OK.
>
>
>>
>>I suppose I should clarify the examples a bit more with untagged 
>>EXISTS as well per recommendation of 6.3.11 in rfc3501.
>Sorry I should do more than just glance over the draft before commenting.
>
>Cheers
>
>Adrien
>
>
>>
>>>
>>>Adrien
>>>
>
>_______________________________________________
>imapext mailing list
>imapext@ietf.org
>https://www.ietf.org/mailman/listinfo/imapext


From nobody Wed May  6 12:11:16 2015
Return-Path: <slusarz@curecanti.org>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8E9841ACEB8 for <imapext@ietfa.amsl.com>; Wed,  6 May 2015 12:11:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.6
X-Spam-Level: 
X-Spam-Status: No, score=-0.6 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1] autolearn=ham
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 GBHRr2nPdvSi for <imapext@ietfa.amsl.com>; Wed,  6 May 2015 12:11:12 -0700 (PDT)
Received: from resqmta-po-03v.sys.comcast.net (resqmta-po-03v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:162]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6D5EE1B2E75 for <imapext@ietf.org>; Wed,  6 May 2015 12:11:08 -0700 (PDT)
Received: from resomta-po-08v.sys.comcast.net ([96.114.154.232]) by resqmta-po-03v.sys.comcast.net with comcast id QjAz1q002516pyw01jB8f8; Wed, 06 May 2015 19:11:08 +0000
Received: from bigworm.curecanti.org ([67.176.83.228]) by resomta-po-08v.sys.comcast.net with comcast id QjB71q00M4vagWz01jB78R; Wed, 06 May 2015 19:11:07 +0000
Received: from localhost (localhost.localdomain [IPv6:::1]) (Authenticated sender: slusarz) by bigworm.curecanti.org (Postfix) with ESMTPSA id 3058968068; Wed,  6 May 2015 13:11:06 -0600 (MDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=curecanti.org; s=bigworm2; t=1430939467; bh=d8Hb7hcIZMyk19ZnMpCixjD9KxCdNjfSjwbIA9kZ+08=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=I4B0eHkIKmS8SNW07ExLivBMl9nPB8/apeuPcEzlkxjzTfu9qTJNAAXrBEIsuFqhp bOluJwZ7FWA0HgKpjkCbebwJ+EDPkUWsMh24sEp/jSy7qIhp9BhygdF6sgWlS8fNNH sHdzkHNNDN0HNa/cjeUofuJbx9zpbJMgKJX5PHJ0=
Received: from 50-198-223-195-static.hfc.comcastbusiness.net (50-198-223-195-static.hfc.comcastbusiness.net [50.198.223.195]) by bigworm.curecanti.org (Horde Framework) with HTTP; Wed, 06 May 2015 13:11:06 -0600
Date: Wed, 06 May 2015 13:11:06 -0600
Message-ID: <20150506131106.Horde.tHqpuRnSJwjBBRbU1nWt0Jc@bigworm.curecanti.org>
From: Michael M Slusarz <slusarz@curecanti.org>
To: Cyrus Daboo <cyrus@daboo.name>
References: <20150503235625.Horde.pquZ06cW6a2mn1lEJlQhL4J@bigworm.curecanti.org> <178B524E262103524852BACC@caldav.corp.apple.com>
In-Reply-To: <178B524E262103524852BACC@caldav.corp.apple.com>
User-Agent: Internet Messaging Program (IMP) H6 (7.0.0-git)
Accept-Language: en
X-Originating-IP: 50.198.223.195
X-Remote-Browser: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
MIME-Version: 1.0
Content-Disposition: inline
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1430939468; bh=uif8Zb3ehdDnmKGl5oGItp6MKTNBF9rLeoylmOT7wd8=; h=Received:Received:Received:Received:Date:Message-ID:From:To: Subject:Content-Type:MIME-Version; b=HPr3ardoYkVqkX4ajJyyIeR4aIGBumH9UpnhEaBmDEFlf/EWGMtuQLAxsGkjV8T0G 5QFTxPDt7SHivzQolIB35YrEYveWaQbExO5PbFh7/NfGHi2TfbSW0fY/j/FhDd246t lY9FulZ5oi73C5WJHPRBVFSKK+Omysf6xJex3bjJwslrP1XGAwhvpTf6xDBv8nqaU+ bN9MbPDeymxVT7c1r8Z7+hOZlbuPUFqeA877OPR+F1lCimJyaIPBxPtvuShZuV6zWL UIxvfIsSrD92TavowSpeoYYQft2dudcYC4NdU6Vndj7BHYmdaEAFu0EQ/IOXTBctbp 195B7nCpZkP1Q==
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/p9ZO0yo2Kgx7049jksQU5v1W40A>
Cc: IMAPEXT <imapext@ietf.org>
Subject: Re: [imapext] IMAP SNIPPET extension (initial draft)
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 06 May 2015 19:11:14 -0000

Quoting Cyrus Daboo <cyrus@daboo.name>:

> --On May 3, 2015 at 11:56:25 PM -0600 Michael M Slusarz  
> <slusarz@horde.org> wrote:
>
>> But hopefully this is a decent enough starting point where it can be used
>> to continue the discussion going forward.
>
> The spec should state somewhere that if the server is unable to  
> extract a suitable snippet (e.g., message is encrypted, contains  
> only an image), then it returns NIL in the FETCH SNIPPET response.

Cyrus,

Thanks for the pointer.  I probably reminded myself five times to put  
explicit NIL return language in the server response part and,  
naturally, never did so.  I've added this language to the next draft.

As for your examples as when a server cannot extract a suitable  
snippet: those are actually great use cases as to why an extensible  
SNIPPET extension is useful.  As someone had mentioned in the initial  
conversation on the topic (apologies that I don't remember who brought  
the topic up), it may be useful to have a server generate a snippet like

   - "This message contains 2 images"
   - "This message contains 1 image (X KB)"
   - "This message contains encrypted content"
   - "[This message contains 2 attachments] <...Snippet text of  
initial body part...>"

rather than display actual textual content of any single message body.

In the interest of keeping the base specification as minimal as  
possible, I stuck with a single fuzzy algorithm.  In light of the  
above, maybe it makes sense to define an additional base algorithm to  
indicate to the server that it MAY try to create a dynamic snippet  
based on the entire content/structure of the message.

In other words, define both a FUZZYTEXT and a FUZZY algorithm where  
the former requests the server to limit snippet responses to message  
body text only while the latter allows the server to generate dynamic  
descriptions.  I would think that FUZZYTEXT would have to be the only  
MUST implement, as FUZZY starts becoming more involved when it comes  
to implementation details as it will require interaction with the  
LANGUAGE extension in order to allow for translatable snippets.

michael


From nobody Wed May  6 12:28:10 2015
Return-Path: <cyrus@daboo.name>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8CF061A86E9 for <imapext@ietfa.amsl.com>; Wed,  6 May 2015 12:28:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.912
X-Spam-Level: 
X-Spam-Status: No, score=-1.912 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 0OZ4mK8ioQ6s for <imapext@ietfa.amsl.com>; Wed,  6 May 2015 12:28:06 -0700 (PDT)
Received: from daboo.name (daboo.name [173.13.55.49]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BCA9C1A0369 for <imapext@ietf.org>; Wed,  6 May 2015 12:28:06 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by daboo.name (Postfix) with ESMTP id 0420F132BB6B; Wed,  6 May 2015 15:28:06 -0400 (EDT)
X-Virus-Scanned: amavisd-new at example.com
Received: from daboo.name ([127.0.0.1]) by localhost (daboo.name [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zX1oTBoj9AgG; Wed,  6 May 2015 15:28:05 -0400 (EDT)
Received: from [17.149.238.211] (unknown [17.149.238.211]) by daboo.name (Postfix) with ESMTPSA id 05A36132BB60; Wed,  6 May 2015 15:28:04 -0400 (EDT)
Date: Wed, 06 May 2015 15:28:00 -0400
From: Cyrus Daboo <cyrus@daboo.name>
To: Michael M Slusarz <slusarz@curecanti.org>
Message-ID: <E2D4E1E495936218A0FFB81B@caldav.corp.apple.com>
In-Reply-To: <20150506131106.Horde.tHqpuRnSJwjBBRbU1nWt0Jc@bigworm.curecanti.org>
References: <20150503235625.Horde.pquZ06cW6a2mn1lEJlQhL4J@bigworm.curecanti.org> <178B524E262103524852BACC@caldav.corp.apple.com> <20150506131106.Horde.tHqpuRnSJwjBBRbU1nWt0Jc@bigworm.curecanti.org>
X-Mailer: Mulberry/4.1.0b1 (Mac OS X)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; size=929
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/iolkWYdnYnQNkVEHa5FyjlnHs3c>
Cc: IMAPEXT <imapext@ietf.org>
Subject: Re: [imapext] IMAP SNIPPET extension (initial draft)
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 06 May 2015 19:28:08 -0000

Hi Michael,

--On May 6, 2015 at 1:11:06 PM -0600 Michael M Slusarz 
<slusarz@curecanti.org> wrote:

> As for your examples as when a server cannot extract a suitable snippet:
> those are actually great use cases as to why an extensible SNIPPET
> extension is useful.  As someone had mentioned in the initial
> conversation on the topic (apologies that I don't remember who brought
> the topic up), it may be useful to have a server generate a snippet like
>
>    - "This message contains 2 images"
>    - "This message contains 1 image (X KB)"
>    - "This message contains encrypted content"
>    - "[This message contains 2 attachments] <...Snippet text of initial
> body part...>"
>
> rather than display actual textual content of any single message body.

Well that gets tricky because really those strings would need to be 
localized. Perhaps the LANGUAGE extension (RFC5255) could be leveraged for 
that.

-- 
Cyrus Daboo


From nobody Wed May  6 12:31:58 2015
Return-Path: <slusarz@curecanti.org>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9D7E01A8746 for <imapext@ietfa.amsl.com>; Wed,  6 May 2015 12:31:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level: 
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9,  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1] autolearn=ham
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 UssKxxw3jDot for <imapext@ietfa.amsl.com>; Wed,  6 May 2015 12:31:56 -0700 (PDT)
Received: from resqmta-po-03v.sys.comcast.net (resqmta-po-03v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:162]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5A8A91A8743 for <imapext@ietf.org>; Wed,  6 May 2015 12:31:56 -0700 (PDT)
Received: from resomta-po-02v.sys.comcast.net ([96.114.154.226]) by resqmta-po-03v.sys.comcast.net with comcast id QjW11q0034tLnxL01jXwVz; Wed, 06 May 2015 19:31:56 +0000
Received: from bigworm.curecanti.org ([67.176.83.228]) by resomta-po-02v.sys.comcast.net with comcast id QjXv1q00F4vagWz01jXvWH; Wed, 06 May 2015 19:31:55 +0000
Received: from localhost (localhost.localdomain [IPv6:::1]) (Authenticated sender: slusarz) by bigworm.curecanti.org (Postfix) with ESMTPSA id 3F44B68068; Wed,  6 May 2015 13:31:55 -0600 (MDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=curecanti.org; s=bigworm2; t=1430940715; bh=gnCjFpAbUWog+JCKPIZjVih4teT8xbnCXh0gf4L22Cg=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=NkSJYGZiZQCyxUAQ7WMnT68CDO7oyVkbXc50FC+w69o2gOoitOp0ION3UBzYBpXgZ 7gioQim7Z0OibZO6ZnTej4NbzAaNmS2Ii4gtDVIqQPYjXbZUKFSi/npnr53q5Ngj/E KcBCgKAHUtnjuEPnmIeHyNNFeB91SiRs3EwL5tvo=
Received: from 50-198-223-195-static.hfc.comcastbusiness.net (50-198-223-195-static.hfc.comcastbusiness.net [50.198.223.195]) by bigworm.curecanti.org (Horde Framework) with HTTP; Wed, 06 May 2015 13:31:55 -0600
Date: Wed, 06 May 2015 13:31:55 -0600
Message-ID: <20150506133155.Horde.GoIQ32vmCcdWk_6aRSqXHIC@bigworm.curecanti.org>
From: Michael M Slusarz <slusarz@curecanti.org>
To: imapext@ietf.org
References: <20150503235625.Horde.pquZ06cW6a2mn1lEJlQhL4J@bigworm.curecanti.org> <178B524E262103524852BACC@caldav.corp.apple.com> <20150506131106.Horde.tHqpuRnSJwjBBRbU1nWt0Jc@bigworm.curecanti.org>
In-Reply-To: <20150506131106.Horde.tHqpuRnSJwjBBRbU1nWt0Jc@bigworm.curecanti.org>
User-Agent: Internet Messaging Program (IMP) H6 (7.0.0-git)
Accept-Language: en
X-Originating-IP: 50.198.223.195
X-Remote-Browser: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
MIME-Version: 1.0
Content-Disposition: inline
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1430940716; bh=lTC3YKswTarPFE+Ogj3HgulxawmQ3aC7n2/TrXA1aXM=; h=Received:Received:Received:Received:Date:Message-ID:From:To: Subject:Content-Type:MIME-Version; b=dsUWt6hQ8ibAfZkXLzb2cbviWN1uUiSJ5GkGKXSJbgiCZQj+ui8pVH+Z6kgYJq1ou afaMhPiz7IBViS21KJgSkhh88MbdtzdQqBK6kotxjl4dsXboCE+2pG45COCTEfj+sg h/et/Mfc8aVoh5SiQvN0RExfhpZgSp2sKZB6pG04Tanwv8jVYv0+UfaZ4Mb7QofqR9 lCsQ94zPJcvxhV9LiX10YIY4rlddIm/+P9waVVnp03QwtGpaAO3Hqb4R6wOe4sefeB JQKM7p0RMzg28OOS/NG3iIq0pyQfkGplhl0jQG6J5NCr9HSVIGUA8UMekBVWzkikgg CBHjtoqgxrSmw==
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/Tvq2MpsVa7zFKNs9-ELI1WBIS3M>
Cc: Stu Brandt <stuart.brandt@teamaol.com>
Subject: Re: [imapext] IMAP SNIPPET extension (initial draft)
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 06 May 2015 19:31:57 -0000

This message never seemed to make it to my mailbox, so doing a  
copy/paste job to respond...  This is a response to Stu's message from  
several days ago:

----------

On 5/4/15 1:56 AM, Michael M Slusarz wrote:

     7.  TODO

         1.  More explicit algorithm for text/plain processing?

         2.  Interaction with CONDSTORE (MODSEQs)?


Is this where details on the question of the snippet being  
mutable/immutable will be or does the mention of CONDSTORE here imply  
that it's assumed to be mutable?

Assuming the latter, it would be good to cover the cases that demand a  
mutable snippet + offer recommendations for clients that don't use  
CONDSTORE/MODSEQ regarding snippet fetch frequency. I'd sure hate to  
see all the "FETCH 1:* (UID FLAGS)" polling turn into "FETCH 1:* (UID  
FLAGS SNIPPET)"

----------

This was sort of my way to punt this issue for future discussion about  
mutable/immutable.

My personal view (and what i almost wrote) is that a client SHOULD NOT  
care whether a SNIPPET is mutable or not.  Since the whole point of  
SNIPPET is to provide some sort of *quick* means of generating a  
preview, it should not matter as to the exact content of the snippet.   
Once a client has a snippet it should use that text going forward as  
long as it retains that data locally.  Trying to sync snippet data  
destroys the main benefit of using SNIPPET in the first place: a cheap  
way of generating a preview.

Additionally, given the nature of the FUZZY algorithm, inherently  
there is no way of enforcing that a server use the same algorithm to  
generate identical output text, at least for any given algorithm  
selection.

I would argue that a server SHOULD try to honor a given algorithm  
request, but I don't think it should be a requirement to rebuild the  
SNIPPET.  I would imagine many caching/indexing servers would  
automatically generate snippet data at the time it first parses the  
message (i.e. on initial delivery), so that by the time a user  
requests a FETCH on the message the data is already generated.

My focus on the SNIPPET draft was to ensure that it is as fast as  
possible.  If a client is looking for specific or reproducible  
behavior when generating a preview, it can obtain that the way it  
always has been able to: by doing the preview generation locally.   
Alternative: we have to implement at least one determinative algorithm  
that ensures that the snippet data is identical across any two  
different server implementations.

In short, I personally think that SNIPPET has no interaction with  
CONDSTORE/MODSEQs.  But would be glad to open the conversation and  
hear from all those who disagree.

michael


From nobody Wed May  6 12:35:47 2015
Return-Path: <slusarz@curecanti.org>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2FB571A875E for <imapext@ietfa.amsl.com>; Wed,  6 May 2015 12:35:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level: 
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9,  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1] autolearn=ham
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 2ZRoVmuigguO for <imapext@ietfa.amsl.com>; Wed,  6 May 2015 12:35:45 -0700 (PDT)
Received: from resqmta-po-10v.sys.comcast.net (resqmta-po-10v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:169]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E53161A8758 for <imapext@ietf.org>; Wed,  6 May 2015 12:35:44 -0700 (PDT)
Received: from resomta-po-11v.sys.comcast.net ([96.114.154.235]) by resqmta-po-10v.sys.comcast.net with comcast id QjbE1q00C54zqzk01jbkFZ; Wed, 06 May 2015 19:35:44 +0000
Received: from bigworm.curecanti.org ([67.176.83.228]) by resomta-po-11v.sys.comcast.net with comcast id Qjbk1q0044vagWz01jbkv3; Wed, 06 May 2015 19:35:44 +0000
Received: from localhost (localhost.localdomain [IPv6:::1]) (Authenticated sender: slusarz) by bigworm.curecanti.org (Postfix) with ESMTPSA id 006F468068 for <imapext@ietf.org>; Wed,  6 May 2015 13:35:43 -0600 (MDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=curecanti.org; s=bigworm2; t=1430940944; bh=IyYLqTtmG745YIQGb4qKvaQnyAAwDKZ2eFmPPLtE4eI=; h=Date:From:To:Subject:References:In-Reply-To; b=CyGZ7LEW8MVs+z/NGC1tdteE+ByDgHwQNrXEd0xHJU8kAxBkiDZUgRX/9sL3vK9jb yML8nXKU9VsRwwLhjKxcirMJtPRPjpucizIN0hkGXGcK0WtPp9XBcqfN7CDwALFTBD hejx8OXGad5Bix6fu/bTs0I9/85iHl71lLXdxtAo=
Received: from 50-198-223-195-static.hfc.comcastbusiness.net (50-198-223-195-static.hfc.comcastbusiness.net [50.198.223.195]) by bigworm.curecanti.org (Horde Framework) with HTTP; Wed, 06 May 2015 13:35:43 -0600
Date: Wed, 06 May 2015 13:35:43 -0600
Message-ID: <20150506133543.Horde.XoqNpGjwdRJe2q1r1Xu5LbQ@bigworm.curecanti.org>
From: Michael M Slusarz <slusarz@curecanti.org>
To: imapext@ietf.org
References: <20150503235625.Horde.pquZ06cW6a2mn1lEJlQhL4J@bigworm.curecanti.org> <178B524E262103524852BACC@caldav.corp.apple.com> <20150506131106.Horde.tHqpuRnSJwjBBRbU1nWt0Jc@bigworm.curecanti.org> <E2D4E1E495936218A0FFB81B@caldav.corp.apple.com>
In-Reply-To: <E2D4E1E495936218A0FFB81B@caldav.corp.apple.com>
User-Agent: Internet Messaging Program (IMP) H6 (7.0.0-git)
Accept-Language: en
X-Originating-IP: 50.198.223.195
X-Remote-Browser: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
MIME-Version: 1.0
Content-Disposition: inline
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/dgrLWVLQ6KunymO_BmtfFv0et7c>
Subject: Re: [imapext] IMAP SNIPPET extension (initial draft)
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 06 May 2015 19:35:46 -0000

Quoting Cyrus Daboo <cyrus@daboo.name>:

> Hi Michael,
>
> --On May 6, 2015 at 1:11:06 PM -0600 Michael M Slusarz  
> <slusarz@curecanti.org> wrote:
>
>> As for your examples as when a server cannot extract a suitable snippet:
>> those are actually great use cases as to why an extensible SNIPPET
>> extension is useful.  As someone had mentioned in the initial
>> conversation on the topic (apologies that I don't remember who brought
>> the topic up), it may be useful to have a server generate a snippet like
>>
>>   - "This message contains 2 images"
>>   - "This message contains 1 image (X KB)"
>>   - "This message contains encrypted content"
>>   - "[This message contains 2 attachments] <...Snippet text of initial
>> body part...>"
>>
>> rather than display actual textual content of any single message body.
>
> Well that gets tricky because really those strings would need to be  
> localized. Perhaps the LANGUAGE extension (RFC5255) could be  
> leveraged for that.

Yup.  That's what I mentioned it later in that message :)

If that algorithm was to be implemented, I would think that it almost  
becomes a MUST requirement that dynamically generated text only be  
created if the client has explicitly set a language via the LANGUAGE  
command.  Otherwise the only sane response is to use the actual body  
content.

michael


From nobody Wed May  6 13:38:47 2015
Return-Path: <dave@cridland.net>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 052BE1ACE26 for <imapext@ietfa.amsl.com>; Wed,  6 May 2015 13:38:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.378
X-Spam-Level: 
X-Spam-Status: No, score=-1.378 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
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 iMFyz0dBH8Ip for <imapext@ietfa.amsl.com>; Wed,  6 May 2015 13:38:42 -0700 (PDT)
Received: from mail-oi0-x236.google.com (mail-oi0-x236.google.com [IPv6:2607:f8b0:4003:c06::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6A4571A9116 for <imapext@ietf.org>; Wed,  6 May 2015 13:38:42 -0700 (PDT)
Received: by oign205 with SMTP id n205so17551531oig.2 for <imapext@ietf.org>; Wed, 06 May 2015 13:38:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cridland.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=A+NdCjuqmHViIICUL/Pq5uS2j5Dedrf2giLnNF/uarM=; b=fHUTg9GdsY3avYn2ex/Gg4Lj9G72QTofLyrVYMeIJnGNqs62AtSLBnek6QD/gV8WOx j8HEuMF+cXG+dJgBxyNzYpXsAeoUGz52mPWdUkFef39igZrGIGBRhgvQoGiRoH6rub5S GwH4sG4YqGcs5C6UtOKJc2fF32/3S+2s0IcPA=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=A+NdCjuqmHViIICUL/Pq5uS2j5Dedrf2giLnNF/uarM=; b=kCd/oDOhYV7Snk7pVL/la7TCFtqr8oRpIFhGqL8kWSDF141FreXVfKyOHMzFmGIUK6 MQt/Dq2BtAXEbsxx40PfWQi5e2qgPsbj2MAbhUxxIIHstX5kWBATyWg8tvQvi7aVtior 10NGkJNJe5Qv8O4smSJOTk21XuzFeCOElCreD0UdaX0H8N6qhj+0tSuj5YndYUkpcTCQ CyDbea5dH+si1q/jar+dQZelzVbaNO7pJ8GqSJKIfvUcXEJsCs4gP3mmVtcnEHcoo+FK NLGFRyy8UCOubvUrGrSZKt+ud8sPLVEJLM1bqsqU303TjhTQ0aAYCkZa0Sod7IMKbTm5 1/rA==
X-Gm-Message-State: ALoCoQn6BYN13GpwtuYxm/YFon8tLPGkLPGDNH9MatC9lSupmRcij3Q6kXacJacxRGeRM79Fx3QM
MIME-Version: 1.0
X-Received: by 10.202.58.193 with SMTP id h184mr430976oia.55.1430944721905; Wed, 06 May 2015 13:38:41 -0700 (PDT)
Received: by 10.60.119.4 with HTTP; Wed, 6 May 2015 13:38:41 -0700 (PDT)
Received: by 10.60.119.4 with HTTP; Wed, 6 May 2015 13:38:41 -0700 (PDT)
In-Reply-To: <20150506133543.Horde.XoqNpGjwdRJe2q1r1Xu5LbQ@bigworm.curecanti.org>
References: <20150503235625.Horde.pquZ06cW6a2mn1lEJlQhL4J@bigworm.curecanti.org> <178B524E262103524852BACC@caldav.corp.apple.com> <20150506131106.Horde.tHqpuRnSJwjBBRbU1nWt0Jc@bigworm.curecanti.org> <E2D4E1E495936218A0FFB81B@caldav.corp.apple.com> <20150506133543.Horde.XoqNpGjwdRJe2q1r1Xu5LbQ@bigworm.curecanti.org>
Date: Wed, 6 May 2015 21:38:41 +0100
Message-ID: <CAKHUCzyF4PSagBtm+v8x5_7jCHtS5VCPnpBUqacfkt3aZpTnsg@mail.gmail.com>
From: Dave Cridland <dave@cridland.net>
To: Michael M Slusarz <slusarz@curecanti.org>
Content-Type: multipart/alternative; boundary=001a113ce7acd7c26405156fc71b
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/dkjiV-TnXbd2osEIlt6JomrfsOg>
Cc: imapext@ietf.org
Subject: Re: [imapext] IMAP SNIPPET extension (initial draft)
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 06 May 2015 20:38:44 -0000

--001a113ce7acd7c26405156fc71b
Content-Type: text/plain; charset=UTF-8

On 6 May 2015 20:35, "Michael M Slusarz" <slusarz@curecanti.org> wrote:
>
> Quoting Cyrus Daboo <cyrus@daboo.name>:
>
>> Hi Michael,
>>
>> --On May 6, 2015 at 1:11:06 PM -0600 Michael M Slusarz <
slusarz@curecanti.org> wrote:
>>
>>> As for your examples as when a server cannot extract a suitable snippet:
>>> those are actually great use cases as to why an extensible SNIPPET
>>> extension is useful.  As someone had mentioned in the initial
>>> conversation on the topic (apologies that I don't remember who brought
>>> the topic up), it may be useful to have a server generate a snippet like
>>>
>>>   - "This message contains 2 images"
>>>   - "This message contains 1 image (X KB)"
>>>   - "This message contains encrypted content"
>>>   - "[This message contains 2 attachments] <...Snippet text of initial
>>> body part...>"
>>>
>>> rather than display actual textual content of any single message body.
>>
>>
>> Well that gets tricky because really those strings would need to be
localized. Perhaps the LANGUAGE extension (RFC5255) could be leveraged for
that.
>
>
> Yup.  That's what I mentioned it later in that message :)
>
> If that algorithm was to be implemented, I would think that it almost
becomes a MUST requirement that dynamically generated text only be created
if the client has explicitly set a language via the LANGUAGE command.
Otherwise the only sane response is to use the actual body content.

A server could use preferences set externally. Doesn't seem like must
territory to me.

> michael
>
>
> _______________________________________________
> imapext mailing list
> imapext@ietf.org
> https://www.ietf.org/mailman/listinfo/imapext

--001a113ce7acd7c26405156fc71b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr"><br>
On 6 May 2015 20:35, &quot;Michael M Slusarz&quot; &lt;<a href=3D"mailto:sl=
usarz@curecanti.org">slusarz@curecanti.org</a>&gt; wrote:<br>
&gt;<br>
&gt; Quoting Cyrus Daboo &lt;<a href=3D"mailto:cyrus@daboo.name">cyrus@dabo=
o.name</a>&gt;:<br>
&gt;<br>
&gt;&gt; Hi Michael,<br>
&gt;&gt;<br>
&gt;&gt; --On May 6, 2015 at 1:11:06 PM -0600 Michael M Slusarz &lt;<a href=
=3D"mailto:slusarz@curecanti.org">slusarz@curecanti.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; As for your examples as when a server cannot extract a suitabl=
e snippet:<br>
&gt;&gt;&gt; those are actually great use cases as to why an extensible SNI=
PPET<br>
&gt;&gt;&gt; extension is useful.=C2=A0 As someone had mentioned in the ini=
tial<br>
&gt;&gt;&gt; conversation on the topic (apologies that I don&#39;t remember=
 who brought<br>
&gt;&gt;&gt; the topic up), it may be useful to have a server generate a sn=
ippet like<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; =C2=A0 - &quot;This message contains 2 images&quot;<br>
&gt;&gt;&gt; =C2=A0 - &quot;This message contains 1 image (X KB)&quot;<br>
&gt;&gt;&gt; =C2=A0 - &quot;This message contains encrypted content&quot;<b=
r>
&gt;&gt;&gt; =C2=A0 - &quot;[This message contains 2 attachments] &lt;...Sn=
ippet text of initial<br>
&gt;&gt;&gt; body part...&gt;&quot;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; rather than display actual textual content of any single messa=
ge body.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Well that gets tricky because really those strings would need to b=
e localized. Perhaps the LANGUAGE extension (RFC5255) could be leveraged fo=
r that.<br>
&gt;<br>
&gt;<br>
&gt; Yup.=C2=A0 That&#39;s what I mentioned it later in that message :)<br>
&gt;<br>
&gt; If that algorithm was to be implemented, I would think that it almost =
becomes a MUST requirement that dynamically generated text only be created =
if the client has explicitly set a language via the LANGUAGE command.=C2=A0=
 Otherwise the only sane response is to use the actual body content.</p>
<p dir=3D"ltr">A server could use preferences set externally. Doesn&#39;t s=
eem like must territory to me.</p>
<p dir=3D"ltr">&gt; michael<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; imapext mailing list<br>
&gt; <a href=3D"mailto:imapext@ietf.org">imapext@ietf.org</a><br>
&gt; <a href=3D"https://www.ietf.org/mailman/listinfo/imapext">https://www.=
ietf.org/mailman/listinfo/imapext</a><br>
</p>

--001a113ce7acd7c26405156fc71b--


From nobody Mon May 11 18:36:34 2015
Return-Path: <chris.newman@oracle.com>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DE01D1B2B31 for <imapext@ietfa.amsl.com>; Mon, 11 May 2015 18:36:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.611
X-Spam-Level: 
X-Spam-Status: No, score=-3.611 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, J_CHICKENPOX_75=0.6, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 tWYbRIrlpb_y for <imapext@ietfa.amsl.com>; Mon, 11 May 2015 18:36:29 -0700 (PDT)
Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 73CED1B2B36 for <imapext@ietf.org>; Mon, 11 May 2015 18:36:29 -0700 (PDT)
Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t4C1aMFI025079 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 12 May 2015 01:36:23 GMT
Received: from gotmail.us.oracle.com (gotmail.us.oracle.com [10.133.152.174]) by userv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t4C1aMbH002607;  Tue, 12 May 2015 01:36:22 GMT
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-disposition: inline
Content-type: text/plain; CHARSET=US-ASCII
Received: from [10.145.183.59] (dhcp-arcadia01-4fl-east-10-145-183-59.usdhcp.oraclecorp.com [10.145.183.59]) by gotmail.us.oracle.com (Oracle Communications Messaging Server 8.0.0.0.0 64bit (built Mar 19 2015)) with ESMTPA id <0NO700HCUR4KZV00@gotmail.us.oracle.com>; Mon, 11 May 2015 18:36:21 -0700 (PDT)
Date: Mon, 11 May 2015 18:36:19 -0700
From: Chris Newman <chris.newman@oracle.com>
To: Michael M Slusarz <slusarz@horde.org>, IMAPEXT <imapext@ietf.org>
Message-id: <EFC728E3C34D5D1149633067@96B2F16665FF96BAE59E9B90>
In-reply-to: <20150503235625.Horde.pquZ06cW6a2mn1lEJlQhL4J@bigworm.curecanti.org>
References: <20150503235625.Horde.pquZ06cW6a2mn1lEJlQhL4J@bigworm.curecanti.org>
X-Mailer: Mulberry/4.0.8 (Mac OS X)
X-Source-IP: userv0022.oracle.com [156.151.31.74]
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/s0LaGjEM9DqrxNv9sZ5Ct09v-N0>
Subject: Re: [imapext] IMAP SNIPPET extension (initial draft)
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 12 May 2015 01:36:33 -0000

--On May 3, 2015 23:56:25 -0600 Michael M Slusarz <slusarz@horde.org> wrote:
> A little late, but here's my efforts on an initial draft regarding SNIPPET so
> that it can be added to the WG.
> 
> Based on the conversation that occurred on this list a few months back, I
> made these editorial decisions:
> 
>    - Extend FETCH: several people said this would not be implemented if it
> used ANNOTATE/CONVERT
>    - Allow multiple different algorithms
> 
> I think the main point of discussion going forward is whether to explicitly
> define an algorithm for snippet generation (i.e. threading) or to allow the
> default algorithm to be entirely server-defined (i.e. FUZZY searching).  For
> now, I went with the latter, and even named it FUZZY.
> 
> Another issue regards the size of snippet return.  In this draft, this is not
> client configurable.  For the FUZZY algorithm, I used 150 octets as SHOULD
> and MUST NOT ever exceed 300 octets.  (Snippet data must be returned as
> UTF-8).
> 
> But hopefully this is a decent enough starting point where it can be used to
> continue the discussion going forward.

Good starting point. Thanks!

I strongly prefer an expert review process to standards track for new SNIPPET
algorithms. The expert review should simply make sure the algorithm is
deterministic if published and make sure private vendor algorithms have a
version number (e.g., VENDORv1, VENDORv2, ...). No reason to require standards
track processing, IMHO.

I also suggest a simpler syntax. Have the client use

>            C: A2 FETCH 1 (RFC822.SIZE SNIPPET=FUZZY)

or

>            C: A2 FETCH 1 (RFC822.SIZE SNIPPET)

and the server always include an algorithm name in the response such as:

>            S: * 1 FETCH (RFC822.SIZE 20000 SNIPPET=FUZZY {61}

or

>            S: * 1 FETCH (RFC822.SIZE 20000 SNIPPET=BLUDYBLOOP {61}

Don't use "X-" in examples per RFC 6648. If the client does not include an
algorithm name, then the server picks the algorithm (so it will provide the
deterministic name if there is one or use FUZZY). This is simpler syntax, and
it allows the client to determine the server's preferred deterministic
algorithm if there is one (which can be better for an offline client).

		- Chris

> ----------------
> 
> 
> Internet Engineering Task Force                          M. Slusarz, Ed.
> Internet-Draft                                                   Dovecot
> Intended status: Standards Track                                May 2015
> Expires: October 31, 2015
> 
>                    IMAP4 Extension: Snippet Generation
>                           draft-imap-snippet-00
> 
> Abstract
> 
>     This document specifies an IMAP protocol extension which allows a
>     client to request that a server provide an abbreviated representation
>     of a message (a snippet of text) that can be used by a client to
>     provide a useful contextual preview of the message contents.
> 
> Status of this Memo
> 
>     This Internet-Draft is submitted in full conformance with the
>     provisions of BCP 78 and BCP 79.
> 
>     Internet-Drafts are working documents of the Internet Engineering
>     Task Force (IETF).  Note that other groups may also distribute
>     working documents as Internet-Drafts.  The list of current Internet-
>     Drafts is at http://datatracker.ietf.org/drafts/current/.
> 
>     Internet-Drafts are draft documents valid for a maximum of six months
>     and may be updated, replaced, or obsoleted by other documents at any
>     time.  It is inappropriate to use Internet-Drafts as reference
>     material or to cite them other than as "work in progress."
> 
>     This Internet-Draft will expire on October 31, 2015.
> 
> Copyright Notice
> 
>     Copyright (c) 2015 IETF Trust and the persons identified as the
>     document authors.  All rights reserved.
> 
>     This document is subject to BCP 78 and the IETF Trust's Legal
>     Provisions Relating to IETF Documents (http://trustee.ietf.org/
>     license-info) in effect on the date of publication of this document.
>     Please review these documents carefully, as they describe your rights
>     and restrictions with respect to this document.  Code Components
>     extracted from this document must include Simplified BSD License text
>     as described in Section 4.e of the Trust Legal Provisions and are
>     provided without warranty as described in the Simplified BSD License.
> 
> Table of Contents
> 
>     1.  Introduction
>     2.  Conventions Used In This Document
>     3.  FETCH Data Item
>       3.1.  Command
>       3.2.  Response
>     4.  SNIPPET Algorithms
>       4.1.  FUZZY
>     5.  Examples
>     6.  Formal Syntax
>     7.  TODO
>     8.  Acknowledgements
>     9.  IANA Considerations
>     10. Security Considerations
>     11. References
>       11.1.  Normative References
>       11.2.  Informative References
>     Author's Address
> 
> 1.  Introduction
> 
>     Many modern mail clients display small extracts of the body text as
>     an aid to allow a user to quickly decide whether they are interested
>     in viewing the full message contents.  Mail clients implementing the
>     Internet Message Access Protocol (IMAP; RFC 3501 [RFC3501]) would
>     benefit from a standardized, consistent way to generate these brief
>     previews of messages (a "snippet").
> 
>     Generation of snippets on the server has several additional benefits.
>     First, it allows caching of these snippets for use with both multiple
>     mail clients and with clients that don't support client-side caching.
> 
>     Second, generation on the server is more efficient.  A client-based
>     algorithm needs to issue, at a minimum, a FETCH BODYSTRUCTURE command
>     in order to determine which MIME [RFC2045] body part should be
>     displayed.
> 
>     Finally, server generation allows caching in a centralized location.
>     Mail accounts are often accessed by multiple different clients, and
>     many of these clients lack support for client-side caching.  Using
>     server generated snippets allows snippets to be generated once and
>     then cached indefinitely.
> 
>     A server that supports the SNIPPET extension indicates this with one
>     or more capability names consisting of "SNIPPET=" followed by a
>     supported snippet algorithm name as described in this document.  This
>     provides for future upwards-compatible extensions and/or the ability
>     to use locally-defined snippet algorithms.
> 
> 2.  Conventions Used In This Document
> 
>     The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
>     "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
>     document are to be interpreted as described in RFC 2119 [RFC2119].
> 
>     "User" is used to refer to a human user, whereas "client" refers to
>     the software being run by the user.
> 
>     In examples, "C:" and "S:" indicate lines sent by the client and
>     server respectively.  If a single "C:" or "S:" label applies to
>     multiple lines, then the line breaks between those lines are for
>     editorial clarity only and are not part of the actual protocol
>     exchange.
> 
> 3.  FETCH Data Item
> 
> 3.1.  Command
> 
>     To retrieve a snippet for a message, the "SNIPPET" FETCH attribute is
>     used when issuing a FETCH command.
> 
>     If no algorithm identifier is provided, the server decides which of
>     its built-in algorithms to use to generate the snippet text.
> 
>     Alternately, the client may explicitly indicate which algorithm
>     should be used in a parenthesized list after the SNIPPET attribute
>     containing the name of the algorithm.  This algorithm MUST be one of
>     the algorithms identified as supported in the SNIPPET capability
>     responses.  If a client requests an algorithm that is unsupported,
>     the server MUST return a tagged BAD response.  The server SHOULD use
>     this algorithm to generate the snippet.
> 
>     A client SHOULD NOT issue more than one SNIPPET attribute per FETCH
>     command.  If more than one SNIPPET attribute is present in a FETCH
>     command, the server SHOULD use the last attribute seen in the
>     command.
> 
> 3.2.  Response
> 
>     The server returns a variable-length string that is the generated
>     snippet for that message.  This string MUST NOT be content transfer
>     encoded and MUST be encoded in UTF-8.  The snippet text MUST be
>     treated as text/plain MIME data by the client.
> 
> 4.  SNIPPET Algorithms
> 
> 4.1.  FUZZY
> 
>     The FUZZY algorithm directs the server to use any internal algorithm
>     it desires, subject to the below limitations, to generate the snippet
>     for a message.
> 
>     The server SHOULD limit the length of the snippet text to 150 octets.
>     The server MUST NOT output snippet text longer than 250 octets.
> 
>     The server SHOULD remove any formatting markup that exists in the
>     original text.
> 
>     The FUZZY algorithm MUST be implemented by any server that supports
>     the SNIPPET extension.
> 
> 5.  Examples
> 
>     Example 1: Requesting FETCH without explicit algorithm selection
> 
>          C: A1 CAPABILITY
>          S: * CAPABILITY IMAP4rev1 SNIPPET=FUZZY
>          S: A1 OK Capability command completed.
>          C: A2 FETCH 1 (RFC822.SIZE SNIPPET)
>          S: * 1 FETCH (RFC822.SIZE 20000 SNIPPET {61}
>          S: This is the first line of text from the first text part.
>          S: )
>          S: A2 OK FETCH complete.
> 
>     Example 2: Requesting FETCH with explicit algorithm selection
> 
>            C: A1 CAPABILITY
>            S: * CAPABILITY IMAP4rev1 SNIPPET=FUZZY
>            S: A1 OK Capability command completed.
>            C: A2 FETCH 1 (RFC822.SIZE SNIPPET (FUZZY))
>            S: * 1 FETCH (RFC822.SIZE 20000 SNIPPET {61}
>            S: This is the first line of text from the first text part.
>            S: )
>            S: A2 OK FETCH complete.
> 
>     Example 3: Requesting FETCH with invalid explicit algorithm selection
> 
>            C: A1 CAPABILITY
>            S: * CAPABILITY IMAP4rev1 SNIPPET=FUZZY
>            S: A1 OK Capability command completed.
>            C: A2 FETCH 1 (RFC822.SIZE SNIPPET (X-SNIPPET-ALGO))
>            S: A2 BAD FETCH contains invalid snippet algorithm name.
> 
> 6.  Formal Syntax
> 
>     The following syntax specification uses the augmented Backus-Naur
>     Form (BNF) as described in ABNF [RFC5234].  It includes definitions
>     from IMAP [RFC3501].
> 
>         capability      =/ "SNIPPET=FUZZY"
> 
>         fetch-att       =/ "SNIPPET" *(SP "(" snippet-alg ")")
> 
>         msg-att-static  =/ "SNIPPET" SP nstring
> 
>         snippet-alg     =  "FUZZY" / snippet-alg-ext
> 
>         snippet-alg-ext =  atom
>                            ; New algorithms MUST be registered with IANA
> 
> 7.  TODO
> 
>     1.  More explicit algorithm for text/plain processing?
> 
>     2.  Interaction with CONDSTORE (MODSEQs)?
> 
>     3.  Allow algorithms to return non-text/plain data?
> 
> 8.  Acknowledgements
> 
>     TODO
> 
> 9.  IANA Considerations
> 
>     IMAP4 [RFC3501] capabilities are registered by publishing a standards
>     track or IESG-approved experimental RFC.  The registry is currently
>     located at:
> 
>        http://www.iana.org/assignments/imap-capabilities
> 
>     This document requests that IANA adds the "SNIPPET" capability to the
>     IMAP4 [RFC3501] capabilities registry.
> 
>     This document also requests that IANA adds a new IMAP4 [RFC3501]
>     snippet algorithms registry, which registers snippet algorithms by
>     publishing a standards track or IESG-approved experimental RFC.  This
>     document constitutes registration of the FUZZY algorithm in that
>     registry.
> 
> 10.  Security Considerations
> 
>     TODO; See RFC 3552
> 
> 11.  References
> 
> 11.1.  Normative References
> 
>     [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
>                Requirement Levels", BCP 14, RFC 2119, March 1997.
> 
>     [RFC3501]  Crispin, M., "INTERNET MESSAGE ACCESS PROTOCOL - VERSION
>                4rev1", RFC 3501, March 2003.
> 
>     [RFC5234]  Crocker, D. and P. Overell, "Augmented BNF for Syntax
>                Specifications: ABNF", STD 68, RFC 5234, January 2008.
> 
> 11.2.  Informative References
> 
>     [RFC2045]  Freed, N. and N.S. Borenstein, "Multipurpose Internet Mail
>                Extensions (MIME) Part One: Format of Internet Message
>                Bodies", RFC 2045, November 1996.
> 
> Author's Address
> 
>     Michael Slusarz, editor
>     Dovecot
>     Denver, Colorado
>     US
> 
>     Email: michael.slusarz@dovecot.fi
> 
> 
> 
> ___________________________________
> Michael Slusarz [slusarz@horde.org]
> 
> _______________________________________________
> imapext mailing list
> imapext@ietf.org
> https://www.ietf.org/mailman/listinfo/imapext
>  





From nobody Mon May 11 19:04:01 2015
Return-Path: <chris.newman@oracle.com>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CB6291B2B60 for <imapext@ietfa.amsl.com>; Mon, 11 May 2015 19:04:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.611
X-Spam-Level: 
X-Spam-Status: No, score=-3.611 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, J_CHICKENPOX_45=0.6, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 ywMxoLdtad-B for <imapext@ietfa.amsl.com>; Mon, 11 May 2015 19:03:51 -0700 (PDT)
Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 25B4B1B2B5C for <imapext@ietf.org>; Mon, 11 May 2015 19:03:51 -0700 (PDT)
Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t4C23nf7028766 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 12 May 2015 02:03:50 GMT
Received: from gotmail.us.oracle.com (gotmail.us.oracle.com [10.133.152.174]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t4C23n6s027335;  Tue, 12 May 2015 02:03:49 GMT
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-disposition: inline
Content-type: text/plain; CHARSET=US-ASCII
Received: from [10.145.183.59] (dhcp-arcadia01-4fl-east-10-145-183-59.usdhcp.oraclecorp.com [10.145.183.59]) by gotmail.us.oracle.com (Oracle Communications Messaging Server 8.0.0.0.0 64bit (built Mar 19 2015)) with ESMTPA id <0NO700HD5SEBZV00@gotmail.us.oracle.com>; Mon, 11 May 2015 19:03:48 -0700 (PDT)
Date: Mon, 11 May 2015 19:03:46 -0700
From: Chris Newman <chris.newman@oracle.com>
To: Stu Brandt <stuart.brandt@teamaol.com>, "'imapext@ietf.org'" <imapext@ietf.org>
Message-id: <8BF3C1B415C6830D664E5B69@96B2F16665FF96BAE59E9B90>
In-reply-to: <5540E067.1050609@teamaol.com>
References: <5540E067.1050609@teamaol.com>
X-Mailer: Mulberry/4.0.8 (Mac OS X)
X-Source-IP: aserv0021.oracle.com [141.146.126.233]
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/XzqN4zRotAQB_KZ3ixWOA5rwXN4>
Subject: Re: [imapext] IMAP REPLACE extension
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 12 May 2015 02:04:01 -0000

I believe the atomic requirement is too stringent and will reduce deployment of
this proposal. A looser requirement can make implementation quite a bit simpler
for some server designs. I'd state the requirement as follows:

The REPLACE command is a combination of APPEND, STORE +flags \DELETED and UID
EXPUNGE for a message. A response code for the STORE \DELETED flag MUST NOT be
generated. The replaced and replacing messages SHOULD NOT be present in the
mailbox at the same time.

The difference with this phrasing relative to the stricter "atomic" phrasing is
this does not require the server to eliminate the window where both draft
messages are present in the mailbox. For certain server designs, eliminating
that window can be either difficult to implement or significantly more
expensive.

The unnecessary "atomic" requirement deters deployment of multiappend extension
as well. Slightly looser language is better for deployment. The MOVE command is
a good example of language with appropriately loose requirements.

		- Chris

--On April 29, 2015 9:45:11 -0400 Stu Brandt <stuart.brandt@teamaol.com> wrote:
> As promised, here's a draft of a REPLACE extension.
> 
> Since the most obvious question is going to be "Why REPLACE and not an option
> on APPEND?",  I'll answer it straight away...
> 
> First, APPEND is valid in the authenticated state. REPLACE requires the
> selected state. I chose not to generate a mixed state scenario for APPEND.
> Secondly, REPLACE is similar to MOVE in that it avoids a number of issues
> that come with a serialized non-atomic sequence attempting to perform a
> single operation. MOVE is not an option on COPY, so I chose to follow the
> same precedent.
> 
> Here's the writeup.
> 
> ------------------------------------------------------------------------
> 
> Network Working Group                                          S. Brandt
> Internet-Draft                                                       AOL
> Intended status: Standards Track                          April 29, 2015
> Expires: October 31, 2015
> 
>                           IMAP REPLACE Extension
>                        draft-brandt-imap-replace-00
> 
> Abstract
> 
>     This document defines an IMAP extension which can be used to replace
>     an existing message in a message store with a new message.  Message
>     replacment is a common operation for clients that automatically save
>     drafts or notes as a user composes them.
> 
> Status of This Memo
> 
>     This Internet-Draft is submitted in full conformance with the
>     provisions of BCP 78 and BCP 79.
> 
>     Internet-Drafts are working documents of the Internet Engineering
>     Task Force (IETF).  Note that other groups may also distribute
>     working documents as Internet-Drafts.  The list of current Internet-
>     Drafts is at http://datatracker.ietf.org/drafts/current/.
> 
>     Internet-Drafts are draft documents valid for a maximum of six months
>     and may be updated, replaced, or obsoleted by other documents at any
>     time.  It is inappropriate to use Internet-Drafts as reference
>     material or to cite them other than as "work in progress."
> 
>     This Internet-Draft will expire on October 31, 2015.
> 
> Copyright Notice
> 
>     Copyright (c) 2015 IETF Trust and the persons identified as the
>     document authors.  All rights reserved.
> 
>     This document is subject to BCP 78 and the IETF Trust's Legal
>     Provisions Relating to IETF Documents
>     (http://trustee.ietf.org/license-info) in effect on the date of
>     publication of this document.  Please review these documents
>     carefully, as they describe your rights and restrictions with respect
>     to this document.  Code Components extracted from this document must
>     include Simplified BSD License text as described in Section 4.e of
>     the Trust Legal Provisions and are provided without warranty as
>     described in the Simplified BSD License.
> 
> Brandt                  Expires October 31, 2015                [Page 1]
> Internet-Draft           IMAP REPLACE Extension               April 2015
> 
> Table of Contents
> 
>     1.  Conventions Used in This Document . . . . . . . . . . . . . .   2
>     2.  Overview  . . . . . . . . . . . . . . . . . . . . . . . . . .   2
>     3.  REPLACE and UID REPLACE . . . . . . . . . . . . . . . . . . .   3
>       3.1.  Advertising Support for REPLACE . . . . . . . . . . . . .   3
>       3.2.  REPLACE Command . . . . . . . . . . . . . . . . . . . . .   3
>       3.3.  UID REPLACE Command . . . . . . . . . . . . . . . . . . .   4
>       3.4.  Semantics of REPLACE and UID REPLACE  . . . . . . . . . .   4
>       3.5.  IMAP State Diagram Impacts  . . . . . . . . . . . . . . .   5
>     4.  Interaction with other extensions . . . . . . . . . . . . . .   5
>       4.1.  RFC 4314, ACL . . . . . . . . . . . . . . . . . . . . . .   6
>       4.2.  RFC 4469, CATENATE  . . . . . . . . . . . . . . . . . . .   6
>       4.3.  RFC 4315, UIDPLUS . . . . . . . . . . . . . . . . . . . .   6
>       4.4.  RFC 6785, IMAP Events in Sieve  . . . . . . . . . . . . .   6
>       4.5.  RFC 7162, CONDSTORE/QRESYNC . . . . . . . . . . . . . . .   6
>     5.  Formal Syntax . . . . . . . . . . . . . . . . . . . . . . . .   6
>     6.  Security Considerations . . . . . . . . . . . . . . . . . . .   7
>     7.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .   7
>     8.  Acknowledgements  . . . . . . . . . . . . . . . . . . . . . .   7
>     9.  References  . . . . . . . . . . . . . . . . . . . . . . . . .   7
>       9.1.  Normative References  . . . . . . . . . . . . . . . . . .   7
>       9.2.  Informative References  . . . . . . . . . . . . . . . . .   8
>     Author's Address  . . . . . . . . . . . . . . . . . . . . . . . .   8
> 
> 1.  Conventions Used in This Document
> 
>     The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
>     "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
>     document are to be interpreted as described in [RFC2119].
> 
>     Formal syntax is defined by [RFC5234].
> 
>     Example lines prefaced by "C:" are sent by the client and ones
>     prefaced by "S:" by the server.
> 
> 2.  Overview
> 
>     This document defines an IMAP [RFC3501] extension to facilitate
>     replacing an existing message with a new one.  This is accomplished
>     by defining a new REPLACE command and extending the UID command to
>     allow UID REPLACE.
> 
>     Using commands from the base IMAP specification, replacement of a
>     message involves three separate commands issued in serial fashion;
>     APPEND, STORE, EXPUNGE.  Pipelining of these three commands is not
>     recommended since failure of any individual command should prevent
>     subsequent commands from being executed lest the original message
> 
> Brandt                  Expires October 31, 2015                [Page 2]
> Internet-Draft           IMAP REPLACE Extension               April 2015
> 
>     version be lost.  The REPLACE command is intended to provide an
>     atomic alternative to the existing non-atomic sequence.
> 
>     Because of the non-atomic nature of the existing sequence,
>     interruptions can leave messages in intermediate states which can be
>     seen and acted upon by other clients.  Such interruptions can also
>     strand older revisions of messages, thereby forcing the user to
>     manually clean up multiple revisions of the same message in order to
>     avoid wasteful quota consumption.  Additionally, the existing
>     sequence can fail on APPEND due to an over-quota condition even
>     though the subsequent STORE/EXPUNGE would free up enough space for
>     the newly revised message.  And finally, server efficiencies may be
>     possible with a single logical message replacement operation as
>     compared to the existing APPEND/STORE/EXPUNGE sequence.
> 
>     In its simplest form, the REPLACE command is an atomic encapsulation
>     of STORE + UID EXPUNGE + APPEND.  Servers that support the REPLACE
>     command MUST guarantee atomicity; either the specified message is
>     completely replaced by the supplied message, or the specified message
>     is left unmodified and no part of the supplied message data is
>     stored.  Servers supporting REPLACE also MUST NOT infer any
>     inheritance of content, flags, or annotations from the message being
>     replaced.
> 
> 3.  REPLACE and UID REPLACE
> 
> 3.1.  Advertising Support for REPLACE
> 
>     Servers that implement the REPLACE extension will return "REPLACE" as
>     one of the supported capabilities in the CAPABILITY command response.
> 
> 3.2.  REPLACE Command
> 
>     Arguments:  message sequence number
>                 mailbox name
>                 OPTIONAL flag parenthesized list
>                 OPTIONAL date/time string
>                 message literal
> 
>     Responses: no specific responses for this command
> 
>     Result:     OK - replace completed
>                 NO - replace error; can't remove specified message
>                      or can't add new message content
>                 BAD - command unknown or arguments invalid
> 
> Brandt                  Expires October 31, 2015                [Page 3]
> Internet-Draft           IMAP REPLACE Extension               April 2015
> 
>     Example:
>       C: A003 REPLACE 4 Drafts (\Seen \Draft) {312}
>       S: + Ready for literal data
>       C: Date: Thu, 1 Jan 2015 00:05:00 -0500 (EST)
>       C: From: Fritz Schmidt <fritz.ze@example.org>
>       C: Subject: happy new year !!
>       C: To: miss.mitzy@example.org
>       C: Message-Id: <B238822388-0100000@example.org>
>       C: MIME-Version: 1.0
>       C: Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
>       C:
>       C: Just saw the best fireworks show. Wish you were here.
>       C:
>       S: * 4 EXPUNGE
>       S: A003 OK [APPENDUID 1 2000] Replace completed
> 
> 3.3.  UID REPLACE Command
> 
>     This extends the first form of the UID command (see [RFC3501]
>     Section 6.4.8) to add the REPLACE command defined above as a valid
>     argument.  This form of REPLACE uses a UID rather than sequence
>     number as its first parameter.
> 
>     Example:
>       C: A004 UID REPLACE 2000 Drafts (\Seen \Draft) {350}
>       S: + Ready for literal data
>       C: Date: Thu, 1 Jan 2015 00:06:00 -0500 (EST)
>       C: From: Fritz Schmidt <fritz.ze@example.org>
>       C: Subject: happy new year !!
>       C: To: miss.mitzy@example.org
>       C: Message-Id: <B238822389-0100000@example.org>
>       C: MIME-Version: 1.0
>       C: Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
>       C:
>       C: Just saw the best fireworks show. Wish you were here.
>       C: Hopefully next year you can join us.
>       C:
>       S: * 4 EXPUNGE
>       S: A004 OK [APPENDUID 1 2001] Replace completed
> 
> 3.4.  Semantics of REPLACE and UID REPLACE
> 
>     The REPLACE and UID REPLACE commands take five arguments: a message
>     identifier, a named mailbox, an optional parenthesized flag list, an
>     optional message date/time string, and a message literal.  The
>     message literal will be appended to the named mailbox, and the
>     message specified by the message identifier will be removed from the
> 
> Brandt                  Expires October 31, 2015                [Page 4]
> Internet-Draft           IMAP REPLACE Extension               April 2015
> 
>     selected mailbox.  These operations will appear to the client as a
>     single action.  This has the same effect as the following sequence:
> 
>        1. [UID] STORE +FLAGS.SILENT \DELETED
>        2. UID EXPUNGE
>        3. APPEND
> 
>     In the cited sequence, the original message is removed first to avoid
>     possible quota implications of APPENDing new data first.
>     Additionally, the EXPUNGE portion of the sequence only applies to the
>     specified message, not all messages flagged as \Deleted.
> 
>     Although the effect of REPLACE is identical to the steps above, the
>     semantics are not identical; similar to MOVE [RFC6851], the
>     intermediate states produced do not occur, and the response codes are
>     different.  In particular, the response codes for EXPUNGE and APPEND
>     will be returned while those for the STORE operation MUST NOT be
>     generated.
> 
>     When an error occurs while processing REPLACE or UID REPLACE, the
>     server MUST NOT leave the selected mailbox in an inconsistent or
>     modified state; any untagged EXPUNGE response MUST NOT be sent until
>     all actions are successfully completed.  Additionally, the target
>     mailbox MUST NOT be modified until all actions are successfully
>     completed.
> 
>     Because of the similarity of REPLACE to APPEND, extensions that
>     affect APPEND affect REPLACE in the same way.  Response codes such
>     TRYCREATE (see [RFC3501] Section 6.3.11), as well as those defined by
>     extensions, are sent as appropriate.  See Section 4 for more
>     information about how REPLACE interacts with other IMAP extensions.
> 
> 3.5.  IMAP State Diagram Impacts
> 
>     Unlike the APPEND command which is valid in the authenticated state,
>     the REPLACE command MUST only be valid in the selected state.  This
>     difference from APPEND is necessary since REPLACE operates on message
>     sequence numbers.
> 
> 4.  Interaction with other extensions
> 
>     This section describes how REPLACE interacts with some other IMAP
>     extensions.
> 
> Brandt                  Expires October 31, 2015                [Page 5]
> Internet-Draft           IMAP REPLACE Extension               April 2015
> 
> 4.1.  RFC 4314, ACL
> 
>     The ACL rights [RFC4314] required for UID REPLACE are the union of
>     the ACL rights required for UID STORE, UID EXPUNGE, and APPEND.
> 
> 4.2.  RFC 4469, CATENATE
> 
>     Servers supporting both REPLACE and CATENATE [RFC4469] MUST support
>     the addtional append-data and resp-text-code elements defined the
>     Formal Syntax section of RFC4469 in conjunction with the REPLACE
>     command.
> 
> 4.3.  RFC 4315, UIDPLUS
> 
>     Servers supporting both REPLACE and UIDPLUS [RFC4315] MUST send
>     APPENDUID in response to a UID REPLACE command.  The only exceptions
>     to this are the ones outlined for APPEND in RFC4315 section 3.
> 
> 4.4.  RFC 6785, IMAP Events in Sieve
> 
>     REPLACE applies to IMAP events in Sieve [RFC6785] in the same way
>     that APPEND does.  Therefore, REPLACE can cause a Sieve script to be
>     invoked with the imap.cause set to "APPEND".  Because the
>     intermediate state of STORE +FLAGS.SILENT \DELETED is not exposed by
>     REPLACE, no action will be taken that results in a imap.cause of
>     FLAG.
> 
> 4.5.  RFC 7162, CONDSTORE/QRESYNC
> 
>     Servers implementing both REPLACE and CONDSTORE/QRESYNC [RFC7162]
>     MUST treat the message being replaced as if it were being removed
>     with a UID EXPUNGE command.  Sections 3.2.9 and 3.2.10 of RFC 7162
>     are particularly relevant for this condition.
> 
> 5.  Formal Syntax
> 
>     The following syntax specification uses the Augmented Backus-Naur
>     Form (ABNF) notation as specified in [RFC5234].  [RFC3501] defines
>     the non-terminals "capability","command-select", "mailbox", and "seq-
>     number".  [RFC4466] defines the non-terminal "append-message".
> 
>     Except as noted otherwise, all alphabetic characters are case-
>     insensitive.  The use of upper or lower case characters to define
>     token strings is for editorial clarity only.  Implementations MUST
>     accept these strings in a case-insensitive fashion.
> 
> Brandt                  Expires October 31, 2015                [Page 6]
> Internet-Draft           IMAP REPLACE Extension               April 2015
> 
>     capability     =/ "REPLACE"
> 
>     command-select =/ replace
>     replace        = "REPLACE" SP seq-number SP mailbox append-message
>     uid            = "UID" SP (copy / fetch/ search / store / move /
>                                replace)
> 
> 6.  Security Considerations
> 
>     This document is believed to add no security problems beyond those
>     that may already exist with the base IMAP specificaiton.
> 
> 7.  IANA Considerations
> 
>     The IANA is requested to add REPLACE to the "IMAP 4 Capabilities"
>     registry, http://www.iana.org/assignments/imap4-capabilities.
> 
> 8.  Acknowledgements
> 
> 9.  References
> 
> 9.1.  Normative References
> 
>     [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
>                Requirement Levels", BCP 14, RFC 2119, March 1997.
> 
>     [RFC3501]  Crispin, M., "INTERNET MESSAGE ACCESS PROTOCOL - VERSION
>                4rev1", RFC 3501, March 2003.
> 
>     [RFC4314]  Melnikov, A., "IMAP4 Access Control List (ACL) Extension",
>                RFC 4314, December 2005.
> 
>     [RFC4315]  Crispin, M., "Internet Message Access Protocol (IMAP) -
>                UIDPLUS extension", RFC 4315, December 2005.
> 
>     [RFC4466]  Melnikov, A. and C. Daboo, "Collected Extensions to IMAP4
>                ABNF", RFC 4466, April 2006.
> 
>     [RFC4469]  Resnick, P., "Internet Message Access Protocol (IMAP)
>                CATENATE Extension", RFC 4469, April 2006.
> 
>     [RFC5234]  Crocker, D. and P. Overell, "Augmented BNF for Syntax
>                Specifications: ABNF", STD 68, RFC 5234, January 2008.
> 
>     [RFC6785]  Leiba, B., "Support for Internet Message Access Protocol
>                (IMAP) Events in Sieve", RFC 6785, November 2012.
> 
> Brandt                  Expires October 31, 2015                [Page 7]
> Internet-Draft           IMAP REPLACE Extension               April 2015
> 
>     [RFC7162]  Melnikov, A. and D. Cridland, "IMAP Extensions: Quick Flag
>                Changes Resynchronization (CONDSTORE) and Quick Mailbox
>                Resynchronization (QRESYNC)", RFC 7162, May 2014.
> 
> 9.2.  Informative References
> 
>     [RFC6851]  Gulbrandsen, A. and N. Freed, "Internet Message Access
>                Protocol (IMAP) - MOVE Extension", RFC 6851, January 2013.
> 
> Author's Address
> 
>     Stuart Brandt
>     AOL
>     43623 Preddy Ct
>     Ashburn, VA  20147
>     USA
> 
>     Email: stujenerin@aol.com
> 
> Brandt                  Expires October 31, 2015                [Page 8]
> 
> _______________________________________________
> imapext mailing list
> imapext@ietf.org
> https://www.ietf.org/mailman/listinfo/imapext
>  





From nobody Tue May 12 18:44:57 2015
Return-Path: <stuart.brandt@teamaol.com>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9141B1A8AD1 for <imapext@ietfa.amsl.com>; Tue, 12 May 2015 18:44:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level: 
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
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 GEkZ0TABbmqD for <imapext@ietfa.amsl.com>; Tue, 12 May 2015 18:44:54 -0700 (PDT)
Received: from mail-qk0-f171.google.com (mail-qk0-f171.google.com [209.85.220.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1CDB71A893B for <imapext@ietf.org>; Tue, 12 May 2015 18:44:53 -0700 (PDT)
Received: by qku63 with SMTP id 63so19116671qku.3 for <imapext@ietf.org>; Tue, 12 May 2015 18:44:53 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=5rG1KmhXb7AW/9gW43oeLJk3IEfikytcRSthNu9yw5U=; b=LObQJl2ivtNhQnbnvjA5sVlxkb36FNZZ0CwttIkWwsWj1GD/3q+B9b3kunrGKwhgAL 7lhqzLmcr3kl4P6+n7ixpwKMTUUGNeybF94e28CRKpaVvaK98eCIZorv2OjV+gTquXa1 Oyg8lrU77P2gEVFLAZr78zqq2uGHi4U1Gfgw2p9G7QjYlz5BQy/zdOD5E2otu3XytNQf VzIObqsapQ7hSq96T3Mx/qzglCCRmy4BC0ADbMVoFFfkbJ8PJqMTPJvitoVXke/Qjbuh /GM4YcssakABHtRpUCYlecD+TMK1PXPqZ42z1BG6BCqoTTb2luuryEhAuVrJLMw9qsvd tQiQ==
X-Gm-Message-State: ALoCoQn6OwdcubIstj55lA2ITyioANBMwk/rMKNX23+ub+KunrLSX3tdeXs9KeOV6tCu0TVhJYI5
X-Received: by 10.55.31.5 with SMTP id f5mr39342811qkf.42.1431481493200; Tue, 12 May 2015 18:44:53 -0700 (PDT)
Received: from [10.172.100.125] (h-64-236-208-27.nat.aol.com. [64.236.208.27]) by mx.google.com with ESMTPSA id e5sm14563583qkh.19.2015.05.12.18.44.52 for <imapext@ietf.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 May 2015 18:44:52 -0700 (PDT)
Message-ID: <5552AC93.7080600@teamaol.com>
Date: Tue, 12 May 2015 21:44:51 -0400
From: Stu Brandt <stuart.brandt@teamaol.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: "'imapext@ietf.org'" <imapext@ietf.org>
References: <5540E067.1050609@teamaol.com> <8BF3C1B415C6830D664E5B69@96B2F16665FF96BAE59E9B90>
In-Reply-To: <8BF3C1B415C6830D664E5B69@96B2F16665FF96BAE59E9B90>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/neh5r-eV-1XEOzNsmYHm0lj2P9A>
Subject: Re: [imapext] IMAP REPLACE extension
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 13 May 2015 01:44:56 -0000

Chris -

Thanks for your feedback. The atomic requirement is intended to provide 
a guarantee to clients that use of REPLACE should simplify possible 
message states as compared to the existing 3 command sequence. I was 
really hoping to avoid a case where failure of REPLACE would require a 
client to retry by using 2 of the 3 underlying commands.

I certainly understand how it may be burdensome to some server 
implementations, though, so I'm hoping to hear from a few more server 
implementers before making a decision on whether to relax the atomicity 
requirement.

Thanks again...

- Stuart




On 5/11/15 10:03 PM, Chris Newman wrote:
> I believe the atomic requirement is too stringent and will reduce deployment of
> this proposal. A looser requirement can make implementation quite a bit simpler
> for some server designs. I'd state the requirement as follows:
>
> The REPLACE command is a combination of APPEND, STORE +flags \DELETED and UID
> EXPUNGE for a message. A response code for the STORE \DELETED flag MUST NOT be
> generated. The replaced and replacing messages SHOULD NOT be present in the
> mailbox at the same time.
>
> The difference with this phrasing relative to the stricter "atomic" phrasing is
> this does not require the server to eliminate the window where both draft
> messages are present in the mailbox. For certain server designs, eliminating
> that window can be either difficult to implement or significantly more
> expensive.
>
> The unnecessary "atomic" requirement deters deployment of multiappend extension
> as well. Slightly looser language is better for deployment. The MOVE command is
> a good example of language with appropriately loose requirements.
>
> 		- Chris

[snip]



From nobody Wed May 20 14:18:28 2015
Return-Path: <prvs=8582d0c572=j.sb@sta.samsung.com>
X-Original-To: imapext@ietfa.amsl.com
Delivered-To: imapext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 519DE1A9104 for <imapext@ietfa.amsl.com>; Wed, 20 May 2015 14:18:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.596
X-Spam-Level: ***
X-Spam-Status: No, score=3.596 tagged_above=-999 required=5 tests=[BAYES_50=0.8, FH_RELAY_NODNS=1.451, HELO_MISMATCH_COM=0.553, RDNS_NONE=0.793, SPF_PASS=-0.001] autolearn=no
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 lpuOU1sIX-yM for <imapext@ietfa.amsl.com>; Wed, 20 May 2015 14:18:25 -0700 (PDT)
Received: from smg1.telecom.sna.samsung.com (unknown [63.166.115.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5ECEF1A90A9 for <imapext@ietf.org>; Wed, 20 May 2015 14:18:25 -0700 (PDT)
X-AuditID: 41a9fa1f-f799d6d00000263a-7a-555cfa15e047
Received: from exHub2.telecom.sna.samsung.com (Unknown_Domain [105.52.12.243]) by smg1.telecom.sna.samsung.com (SMGOUT STA) with SMTP id BA.95.09786.51AFC555; Wed, 20 May 2015 16:18:13 -0500 (CDT)
Received: from EXMB5.telecom.sna.samsung.com ([169.254.1.80]) by exHub2.telecom.sna.samsung.com ([2002:6934:cf3::6934:cf3]) with mapi id 14.03.0210.002; Wed, 20 May 2015 16:18:24 -0500
From: Jayantheesh S B <j.sb@sta.samsung.com>
To: "imapext@ietf.org" <imapext@ietf.org>
Thread-Topic: [imapext] Charter Proposal for a new IMAP related Working Group
Thread-Index: AQHQdsWWSFrX3J+6CUi84Da6uSPf5J2FlnEw
Date: Wed, 20 May 2015 21:18:24 +0000
Message-ID: <02454F842DD7B449B96715A2AD90C0365EBD6658@exMB5.telecom.sna.samsung.com>
References: <551A0193.5030104@isode.com> <552C457A.50700@aol.com>
In-Reply-To: <552C457A.50700@aol.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [105.52.12.197]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrELMWRmVeSWpSXmKPExsWSacLzWVf0V0yoweR2NYsZq4ssHs/isuh6 Ge7A7HF/90p2jyVLfjJ5nGo2DGCO4rZJSiwpC85Mz9O3S+DOeHr8LlPBc9WKm40yDYzv5boY OTkkBEwk9i9+yARhi0lcuLeerYuRi0NI4BijxMsJH8ASQgJ7GCXOzRXqYmTnYBPQkXgSDBIV EdCUuLb5DlgFs0C4xI1V1xlBbGEBH4mXJ+azQtT4SvT83MYIYRtJHO59wgJiswioSizcfpkZ xOYVCJGYuOI2C8QmR4l3bWfAZnIC1Ty6cAOslxHotO+n1kDtEpe49WQ+1MkCEkv2nGeGsEUl Xj7+xwphK0rM/XWTGaJeR2LB7k9sELa2xLKFr6H2CkqcnPmEZQKj2CwkY2chaZmFpGUWkpYF jCyrGGWKc9MN9UpSc1KT83P1ivMS9YoTc4tL89L1gPxNjMCoclz5S34H47rt9ocYmTg4DzFK cHBJiRSn5qWkFiWWlmTEgyInvhgYO1INjCdP6k/e1qR2x7L1lDPbpBliR9hd90tL2qr3HuXv rioWvxXs3rjzJMvD2492yJ9aVBws6RcqqS/naP3g85e65+s8/orMvXxs28WKXfHbr7/P/HNu ks+L9me+GadyNbrE95jLdx+s8zDbevBs1gydgrcmRzu7Vl/b48oSt9H69WzTuzMuKfXvtlJi Kc5INNRiLipOBACFNV5TdQIAAA==
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/_IEsdtpWTgnDOYBKkcGJ76a8Y9w>
Cc: 'Alexey Melnikov' <alexey.melnikov@isode.com>, Stuart Brandt <stujenerin@aol.com>
Subject: Re: [imapext] Charter Proposal for a new IMAP related Working Group
X-BeenThere: imapext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of IMAP extensions <imapext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imapext>, <mailto:imapext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imapext/>
List-Post: <mailto:imapext@ietf.org>
List-Help: <mailto:imapext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imapext>, <mailto:imapext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 May 2015 21:18:27 -0000

Hi All,

If we are going to include IMAP_REPLACE and IMAP_SNIPPET draft as part of t=
he proposed WG, then kindly update the charter proposal and share it across=
.=20

Regards,
Jay

-----Original Message-----
From: Stuart Brandt [mailto:stujenerin@aol.com]=20
Sent: Monday, April 13, 2015 6:39 PM
To: imapext@ietf.org
Cc: 'Alexey Melnikov'
Subject: Re: [imapext] Charter Proposal for a new IMAP related Working Grou=
p

Is there any interest in an additional APPEND related extension to support =
replacement of stored messages (e.g. Drafts, Notes). In the past year or so=
 we've seen:
a) a significant increase in the number of sessions doing automatic saving =
of drafts, some of which don't have much error handling for mobile network =
flakiness and end up orphaning the original copy.
b) more sessions interacting with a "Notes" folder in same manner.
c) some cloud based apps replacing messages as soon as they're discovered a=
fter delivery (presumably to add their own "metadata" in the form of client=
-specific headers)

For all the reasons that MOVE (RFC 6851) made sense, I think a REPLACE exte=
nsion would make sense for providing an atomic alternative to the current A=
PPEND/STORE/EXPUNGE trio required to replace messages.

I have the beginnings of a draft written up, but given the creation of this=
 working group would be willing to accelerate getting it out there.

Any interest?

- Stuart


On 3/30/15 10:08 PM, Alexey Melnikov wrote:
> Hi,
>
> I've asked Barry earlier what he would like to do about
> draft-jayantheesh-imap-appendlimit-extension-03 and other drafts and=20
> he asked for a charter for a new short term IMAP related WG. Here is a
> proposal:
>
>
> The Internet Message Access Protocol (IMAP), defined in RFC 3501,=20
> specifies a protocol for transferring email messages between a server=20
> that implements a message store, and a client. It also includes=20
> commands for manipulating the message store -- creating, deleting, and=20
> renaming mailboxes, adding a message to a mailbox, and copying=20
> messages from one mailbox to another.
>
> IMAP (RFC 3501) contains the "literal" syntactic construct for=20
> transferring blocks of data. When sending a literal from a client to a=20
> server, RFC 3501 requires the client to wait for the server to send a=20
> command continuation request between sending the octet count and the=20
> string data.
> This complicates client implementations and resulted in definition of=20
> LITERAL+ IMAP extension (RFC 2088) which specifies an alternate form=20
> of literal which does not require this network round trip. While this=20
> extension is quite commonly supported by servers, some implementations=20
> decided to disable it because it is frequently abused by naive clients=20
> that try to upload big messages without checking whether servers can=20
> accept big messages.
>
> The IMAP APPEND extension (imapappend) working group has two related=20
> deliverables which are targeted at improving the current situation.=20
> One deliverable is based on=20
> draft-jayantheesh-imap-appendlimit-extension-03
> and defines a way for servers to announce APPEND limit for a=20
> particular server or a particular mailbox. The second deliverable is=20
> based on draft-melnikov-rfc2088bis-01. It describes implementation=20
> choices for server supporting LITERAL+ extension and also defines=20
> LITERAL- extension which have similar properties, but is easier for=20
> servers to implement while preventing denial of service attacks from=20
> malicious and naive IMAP clients. Both deliverables will be Standards Tra=
ck documents.
>
> As part of the protocol development, implementation experience on both=20
> the client and server side is highly desireable, so that the actual=20
> operational value of this extension can be assessed. The working group=20
> will document the results of this experience on the working group wiki.
>
> No other IMAP extension work is in scope for this working group.
>
> ------
> Comments:
>
>
> 1) I don't particularly care if LITERAL- is standardized or not, but I=20
> would like the problem to be solved. If we can't agree on LITERAL-,=20
> then draft-melnikov-rfc2088bis can just become a revision of LITERAL+.
>
> 2) I've also heard some interest in standardizing the SNAPSHOT facility.
> I am ambivalent on whether it should be added to the above. (If you=20
> think it should, please suggest a new paragraph to add). I would like=20
> to keep the charter to no more than 3 deliverables.
>
> Any opinions on the proposal?
>
> Best Regards,
> Alexey
>
> _______________________________________________
> imapext mailing list
> imapext@ietf.org
> https://www.ietf.org/mailman/listinfo/imapext


