Re: [imapext] AD review of draft-ietf-imapapnd-appendlimit-extension-06 (Section 2)

Alexey Melnikov <alexey.melnikov@isode.com> Fri, 11 December 2015 14:38 UTC

Return-Path: <alexey.melnikov@isode.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 7AC041A92ED; Fri, 11 Dec 2015 06:38:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.01
X-Spam-Level:
X-Spam-Status: No, score=-2.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, 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 LTNS5dgOEaBo; Fri, 11 Dec 2015 06:38:05 -0800 (PST)
Received: from waldorf.isode.com (waldorf.isode.com [62.232.206.188]) by ietfa.amsl.com (Postfix) with ESMTP id 8C84F1AD080; Fri, 11 Dec 2015 06:38:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1449844684; d=isode.com; s=selector; i=@isode.com; bh=PTwNQ9LL3KMdbcxNyOetdTcvi2R6sgcE8wUZudCsB7o=; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description; b=vfcq++DcEKlfbOk8qOjpGjfFk0CixwQFFhL6UzrRJi3cAqX3p5W/owqwuYsblRo3GBjvjx iiPkJoZ5SSYpiZnm2e70mG2vj0pcAiVve3tSHXJXLYCVat+BeUBf4RTWeEv4r1CNWE8JKq QmmCau9shgp+3WqhiKhb0Xhz4FhvDcg=;
Received: from [172.20.1.215] (dhcp-215.isode.net [172.20.1.215]) by waldorf.isode.com (submission channel) via TCP with ESMTPSA id <VmrfywBSXKPh@waldorf.isode.com>; Fri, 11 Dec 2015 14:38:04 +0000
To: Dave Cridland <dave@cridland.net>
References: <CALaySJLE_6+vbeB-SeMk1VHDAtq2VvS9yKe9dhQ2LTzr4y=oTg@mail.gmail.com> <DEA84B8F15992B4EA87D5CF3D0EC5F98AE4FCFD8@DRTW-EXMB04.telecom.sna.samsung.com> <6.2.5.6.2.20151209223348.0d1a66e0@resistor.net> <CAHC+rVHPmcpLKogQdFrCo+P-GaALoWLLGEw=MeA7hnarQhEYLw@mail.gmail.com> <6.2.5.6.2.20151210080422.10a00dc0@elandnews.com> <5669B439.9010807@isode.com> <CAKHUCzwMN4BXVfLX9i+P7Br1fhWV9rzWwauoRFUL9haqvsmzDQ@mail.gmail.com>
From: Alexey Melnikov <alexey.melnikov@isode.com>
Message-ID: <566ADFB0.5030301@isode.com>
Date: Fri, 11 Dec 2015 14:37:36 +0000
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
In-Reply-To: <CAKHUCzwMN4BXVfLX9i+P7Br1fhWV9rzWwauoRFUL9haqvsmzDQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="------------050802010303090704010602"
Archived-At: <http://mailarchive.ietf.org/arch/msg/imapext/U7F4JK3-geCRwD0btaEOlBYsyww>
Cc: Narendra Bisht <ns.bisht@sta.samsung.com>, Naren <narendrasingh.bisht@gmail.com>, S Moonesamy <sm+ietf@elandsys.com>, draft-ietf-imapapnd-appendlimit-extension@ietf.org, "imapext@ietf.org" <imapext@ietf.org>, Barry Leiba <barryleiba@computer.org>
Subject: Re: [imapext] AD review of draft-ietf-imapapnd-appendlimit-extension-06 (Section 2)
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: <https://mailarchive.ietf.org/arch/browse/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: Fri, 11 Dec 2015 14:38:07 -0000

Dave,

On 11/12/2015 09:20, Dave Cridland wrote:
> On 10 December 2015 at 17:19, Alexey Melnikov 
> <alexey.melnikov@isode.com <mailto:alexey.melnikov@isode.com>> wrote:
>
>     On 10/12/2015 16:32, S Moonesamy wrote:
>
>         Hi Naren,
>         At 07:52 10-12-2015, Naren wrote:
>
>             Our MAY means
>             (a) The IMAP server can advertise this capability before
>             the user has logged in.
>             OR
>             (b) The IMAP server can advertise this capability after
>             the user has logged in.
>
>
>         Based on the AD review [1] and the short discussion about that
>         sentence in Section 2, my opinion is that the intent of the
>         what is written in the draft is not clear.  What are the
>         implications of (a) and (b)? What if the IMAP server
>         advertises that there is a limit which applies to all
>         mailboxes before the user has logged in?
>
>     The it means that the limit applies to all users. However the
>     server can also return another limit for some users after logging
>     in, which will override the globally announced limit. So it is not
>     OR, but AND/OR.
>
>
> I feel this is much more confusing than it should be.
>
> If the server gives a pre-auth APPENDLIMIT, but does not give a 
> post-auth APPENDLIMIT,

To make sure that we are all on the same page, I wrote down rules for 
CAPABILITY responses/response codes. I am sure it is incomplete and 
might be even wrong in some respects, but it should be a start:

<https://datatracker.ietf.org/doc/draft-melnikov-imap-capabilities/?include_text=1>

> does this mean that there is a general append limit but it does not 
> apply to me, or that there is a general append limit and there's no 
> change for me,

Taking into consideration the above, the "no change for me" case.

> or is it an error?

Let's talk about CAPABILITY response codes only (automatically sent by 
the server) and ignore CAPABILITY commands.

<client connects to the server>
S: * OK [CAPABILITY IMAP4rev1 LITERAL+ APPENDLIMIT=4096 STARTTLS 
AUTH=SCRAM-SHA-1] Blah-blah server ready
C: t1 STARTTLS
S: t1 OK
<TLS handshake>
C: t2 AUTHENTICATE ...
  ...
S: t2 OK [CAPABILITY IMAP4rev1 LITERAL+ APPENDLIMIT=8192 STARTTLS 
AUTH=SCRAM-SHA-1] Authenticated

So, the last value always wins. Also, once the server is returned 
APPENDLIMIT, it has to include it in all subsequent CAPABILITY response 
codes. So the server can't just omit the second APPENLIMIT.