
Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAUKJrfa087974 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 30 Nov 2007 13:19:53 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAUKJrvM087973; Fri, 30 Nov 2007 13:19:53 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from ithilien.qualcomm.com (ithilien.qualcomm.com [129.46.51.59]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAUKJqUi087966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Fri, 30 Nov 2007 13:19:52 -0700 (MST) (envelope-from randy@qualcomm.com)
Received: from hamtaro.qualcomm.com (hamtaro.qualcomm.com [129.46.61.157]) by ithilien.qualcomm.com (8.13.6/8.12.5/1.0) with ESMTP id lAUKJkxl009262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 30 Nov 2007 12:19:46 -0800
Received: from [192.168.1.13] (vpn-10-50-16-88.qualcomm.com [10.50.16.88]) by hamtaro.qualcomm.com (8.14.2/8.13.6/1.0) with ESMTP id lAUKJdOl025599; Fri, 30 Nov 2007 12:19:41 -0800 (PST)
Mime-Version: 1.0
Message-Id: <p06240602c3761d85e9f3@[192.168.1.13]>
In-Reply-To: <027201c83127$f13cfa50$6e02a8c0@DGCSonyFS>
References:  <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com><7YuRD8 XC5q7UzHD2142Juw.md5@libertango.oryx.com><4744168D.10304@isode.com> <e8fgllR+JjpB8gygcgacbw.md5@libertango.oryx.com> <027201c83127$f13cfa50$6e02a8c0@DGCSonyFS>
X-Mailer: Eudora for Mac OS X
X-message-flag: Warning: Outlook in use.  Upgrade to Eudora: <http://www.eudora.com>
Date: Fri, 30 Nov 2007 12:17:22 -0800
To: "Darryl Champagne" <dgc03052@adelphia.net>, "'Arnt Gulbrandsen'" <arnt@oryx.com>, <lemonade@ietf.org>, <ietf-imapext@imc.org>
From: Randall Gellens <randy@qualcomm.com>
Subject: RE: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: "'Alexey Melnikov'" <alexey.melnikov@isode.com>, "'Ned Freed'" <ned.freed@mrochek.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Random-Sig-Tag: 1.0b28
X-PerlMx: Message inspected by PerlMx
X-PerlMx: Message inspected by PerlMx
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

At 2:01 PM -0500 11/27/07, Darryl Champagne wrote:

>  Hi,
>  I'm a bit confused about where this has ended up.  Is this the current
>  status?
>
>  - Enable gets registered with IANA.
>  - Extensions do not get registered (although they might be described in
>  specific RFCs).

ENABLE, as an extension, gets registered with IANA at 
<http://www.iana.org/assignments/imap4-capabilities>.  So do new 
extensions.  ENABLE doesn't change this at all.  ENABLE is merely a 
clean way to flip a switch during an IMAP session that otherwise 
requires magic.  That is, ENABLE just makes state changes explicit 
(and maybe at a more constrained time) rather than having them occur 
at arbitrary points as a result of the client's use of certain 
command forms.

>  - One can enable arbitrary extensions.

Any ENABLE-able extension can be used with ENABLE, but that's a tautology.

>  - There is no indication if an extension is not supported (other than
>  potentially some change to other data returned).

Extensions still are listed in the CAPABILITY response -- ENABLE 
doesn't change that.  But the client needs to know which of them can 
be used with ENABLE.

>  - There is no way to disable an extension once it has been enabled.

Correct.

>  I'm not advocating anything here - solely asking if this is the current way
>  consensus thinks it should work.  Is this where it stands at the moment?
>
>  Also, isn't there another case where a client would care about what
>  extensions work - where there is some interaction between extensions?
>
>  For example, don't bother with X, Y, and Z unless all 3 work?

The client can examine the CAPABILITY response.  But I think there is 
still an open issue as to inclusion or exclusion of an extension 
which the client included in ENABLE but whose ENABLE-ment failed.

So, the standard/recommended command sequence might be:

a1 CAPABILITY (to see if TLS is and which authentication mechanisms 
are supported)
a2 STARTTLS (if supported)
a3 AUTHENTICATE
b1 ENABLE (to try and enable all desired mechanisms)
b2 CAPABILITY (to see which extensions are supported, and which 
extensions included in the NOTIFY command were in fact ENABLEd)

Or,

a1 CAPABILITY (to see if TLS is and which authentication mechanisms 
are supported)
a2 STARTTLS (if supported)
a3 AUTHENTICATE
b1 CAPABILITY (to see which extensions are supported)
b1 ENABLE (to try and enable all desired and supported mechanisms)

In the first case, the client learns from the post-authentication 
CAPABILITY response which extensions were successfully ENABLEd.  The 
second case, the ENABLE response needs to indicate this.
-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly-selected tag: ---------------
As soon as we started programming, we found to our surprise that it
wasn't as easy to get programs right as we had thought.  Debugging had
to be discovered.  I can remember the exact instant when I realized
that a large part of my life from then on was going to be spent in
finding mistakes in my own programs.
 --Maurice Wilkes discovers debugging, 1949 (courtesy of Paul Robinson)



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lARKonjP079726 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 27 Nov 2007 13:50:49 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lARKonwo079725; Tue, 27 Nov 2007 13:50:49 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lARKomI9079718 for <ietf-imapext@imc.org>; Tue, 27 Nov 2007 13:50:48 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <R0yDJgB-qAoy@rufus.isode.com>; Tue, 27 Nov 2007 20:50:46 +0000
Message-ID: <474C82DE.5070305@isode.com>
Date: Tue, 27 Nov 2007 20:49:34 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Darryl Champagne <dgc03052@adelphia.net>
CC: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com><7YuRD8XC5q7UzHD2142Juw.md5@libertango.oryx.com><4744168D.10304@isode.com> <e8fgllR+JjpB8gygcgacbw.md5@libertango.oryx.com> <027201c83127$f13cfa50$6e02a8c0@DGCSonyFS>
In-Reply-To: <027201c83127$f13cfa50$6e02a8c0@DGCSonyFS>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Darryl Champagne wrote:

>Hi,
>  
>
Hi Darryl,

>I'm a bit confused about where this has ended up.
>
I am not sure that the dust has settled yet. But here are my guesses 
where things are going:

>Is this the current status?
>
>- Enable gets registered with IANA.
>  
>
Not sure why this is important.

>- Extensions do not get registered (although they might be described in
>specific RFCs).
>  
>
Not sure what do you mean here. Registered where?

>- One can enable arbitrary extensions.
>  
>
Yes.

>- There is no indication if an extension is not supported (other than
>potentially some change to other data returned).
>  
>
The current CAPABILITY mechanism is still going to be used to find out 
if an extension is supported or not.

I think there is some form of consensus that a new response should be 
added to signal which extensions were successfully enabled.

>- There is no way to disable an extension once it has been enabled.
>  
>
Correct. The ability to disable extensions was discarded long time ago.

>I'm not advocating anything here - solely asking if this is the current way
>consensus thinks it should work.  Is this where it stands at the moment?
>
>Also, isn't there another case where a client would care about what
>extensions work - where there is some interaction between extensions?
>
>For example, don't bother with X, Y, and Z unless all 3 work?
>  
>
This should be possible: a client can construct an ENABLE command after 
checking CAPABILITY.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lARKkjxt079489 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 27 Nov 2007 13:46:45 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lARKkj7U079488; Tue, 27 Nov 2007 13:46:45 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lARKkito079481 for <ietf-imapext@imc.org>; Tue, 27 Nov 2007 13:46:44 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <R0yCMQB-qIwT@rufus.isode.com>; Tue, 27 Nov 2007 20:46:42 +0000
Message-ID: <474C81E9.8050204@isode.com>
Date: Tue, 27 Nov 2007 20:45:29 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: IMAP Extensions WG <ietf-imapext@imc.org>, Lemonade WG <lemonade@ietf.org>
Subject: "Friends of IMAP" dinner on Monday, December 3rd
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

There seem to be some interest in having [now traditional] "friends of 
IMAP" dinner in Vancouver on Monday, December 3rd.
People who didn't tell me before and who would like to come should email 
me directly, so that I can estimate how big the reservation should be.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lALJkCWk045787 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Nov 2007 12:46:12 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lALJkCpB045786; Wed, 21 Nov 2007 12:46:12 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lALJkBxP045779 for <ietf-imapext@imc.org>; Wed, 21 Nov 2007 12:46:11 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <R0SLAABBVL3J@rufus.isode.com>; Wed, 21 Nov 2007 19:46:09 +0000
Message-ID: <47448AE1.9010806@isode.com>
Date: Wed, 21 Nov 2007 19:45:37 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Fred Batty <fredb@Sun.COM>
CC: ietf-imapext@imc.org
Subject: Re: LIST-EXTENDED and child mailboxes
References: <47168BA1.3070109@sun.com>
In-Reply-To: <47168BA1.3070109@sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Hi Fred,
Sorry for slow response.

Fred Batty wrote:

>Hi. I am trying to implement LIST-EXTENDED and have a problem with this
>paragraph in section 3.5:
>
>   Note: Some servers allow for mailboxes to exist without requiring
>   their parent to exist.  For example, a mailbox "Customers/ABC" can
>   exist while the mailbox "Customers" does not.  As CHILDINFO extended
>   data item is not allowed if the RECURSIVEMATCH selection option is
>   not specified, such servers SHOULD use the "\NonExistent
>   \HasChildren" attribute pair to signal to the client that there is a
>   descendant mailbox that matches the selection criteria.
>
>Doesn't it force the server to do the same work as if the client had asked for
>RECURSIVEMATCH, even when the client didn't specify it, thus probably doesn't
>care?
>
No, this text doesn't require the server to do recursive matching.
It just says that *if* the server wants to tell the client that a 
particular level of mailbox hierarchy doesn't exist, then it should 
return \NonExistent.

>If so, wouldn't this be a serious problem if the selection criteria is
>expensive to determine, e.g. involving annotations?
>
>
>Also, I guess this is more minor but shouldn't the word 'exactly' in this
>section 3.1 paragraph be replaced by 'at most':
>
>   1.  Exactly one LIST response should be returned for each mailbox
>       name which matches the canonical LIST pattern.  Server
>       implementors must not assume that clients will be able to
>       assemble mailbox attributes and other information returned in
>       multiple LIST responses.
>  
>
Noted, thanks.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lALH84Kh027409 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Nov 2007 10:08:04 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lALH84xH027408; Wed, 21 Nov 2007 10:08:04 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mauve.mrochek.com (dsl-66-59-230-40.static.linkline.com [66.59.230.40]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lALH7wlL027391 for <ietf-imapext@imc.org>; Wed, 21 Nov 2007 10:08:03 -0700 (MST) (envelope-from ned.freed@mrochek.com)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01MNZDLDL63400C5KY@mauve.mrochek.com> for ietf-imapext@imc.org; Wed, 21 Nov 2007 09:07:55 -0800 (PST)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01MNWVHAV96800GULE@mauve.mrochek.com>; Wed, 21 Nov 2007 09:07:11 -0800 (PST)
Cc: lemonade@ietf.org, ietf-imapext@imc.org, Alexey Melnikov <alexey.melnikov@isode.com>, Ned Freed <ned.freed@mrochek.com>
Message-id: <01MNZDKI4K8200GULE@mauve.mrochek.com>
Date: Wed, 21 Nov 2007 08:50:58 -0800 (PST)
From: Ned Freed <ned.freed@mrochek.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
In-reply-to: "Your message dated Wed, 21 Nov 2007 12:43:22 +0100" <e8fgllR+JjpB8gygcgacbw.md5@libertango.oryx.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; format=flowed
References: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com> <7YuRD8XC5q7UzHD2142Juw.md5@libertango.oryx.com> <4744168D.10304@isode.com> <e8fgllR+JjpB8gygcgacbw.md5@libertango.oryx.com>
To: Arnt Gulbrandsen <arnt@oryx.com>
DKIM-Signature: a=rsa-sha1; c=nowsp; d=mrochek.com; s=mauve; t=1195664874; h=Date:	 From:Subject:MIME-version:Content-type; b=PUDBhq7P5Qgy5NjOn6lA2nVqz O6fLB6XOEKiei/Nzcl4YfRQkwaUFpPjTENUxHCYk9+dqdyP0tl5G3JCXWO1xg==
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

> Alexey Melnikov writes:
> > But can somebody please give me a useful use case of why a client
> > would need to know if something is enabled or not. The client still
> > needs to cope with a server that doesn't support an extension.

> I believe there won't be any such useful case with regular clients.

Not true. The obvious one is any extension which, once enabled, changes
response syntax in some way and for which an attempt to enable it can fail due
to some local condition on the server. So suppose a client tries to enable the
extension. The enable succeeds or fails but the client cannot tell from the
response which one it was. Now what? Does the client have to try some command
that should have an altered response in order to see if the enable worked? And
do this for each of several extensions? This is terrible protocol design,
nothing more and nothing less.

Even worse, the likely behavior of client writers will be to simply assume that
all enable actions succeed. Then when an enable doesn't work the client and
server get desynchronized.

> There could be three other kinds of cases:

> 1. A test suite client., which wants to test at the start that it has
> the same idea of state as the server.

This is getting close to another important case: Various sorts of proxies and
stateful firewalls. I'm not particularly fond of these sorts of things, but my
dislike doesn't change the fact that they are commonly used. And any time you
have a protocol that has lots of possible state changes that can occur at
various different times and for which it is even slightly difficult to
determine current state, you are pretty much guaranteed to have problems.

> 2. A client which can tell the user about the server it's using in a
> little dialog box:
>        Server host: <name>
>        Protocol: IMAP
>        Server name: <name and stuff from ID>
>        Using TLS: <Yes or no>
>        Logged in as: <login>
>        Extensions used: <list>
> That last list would be the ones the server offers and client uses that
> aren't ENABLE fodder, plus the ones from ENABLED.

> 3. Really badly written extensions. For example, if Peter makes a
> complete mess of his FAT NIL proposal, a client might need to know.

Mind you, the best way to solve these problems would be to devise
a response format whose syntax doesn't need to change in order to return
more stuff. But I don't think there's any desire to engage in such a
major redesign of IMAP at this point.

				Ned



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lALBhbAY094825 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Nov 2007 04:43:37 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lALBhblb094824; Wed, 21 Nov 2007 04:43:37 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from kalyani.oryx.com (kalyani.oryx.com [195.30.37.30]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lALBhXjo094816 for <ietf-imapext@imc.org>; Wed, 21 Nov 2007 04:43:36 -0700 (MST) (envelope-from arnt@oryx.com)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id 996D84ACDE; Wed, 21 Nov 2007 12:43:34 +0100 (CET)
Message-Id: <e8fgllR+JjpB8gygcgacbw.md5@libertango.oryx.com>
Date: Wed, 21 Nov 2007 12:43:22 +0100
From: Arnt Gulbrandsen <arnt@oryx.com>
To: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: Alexey Melnikov <alexey.melnikov@isode.com>, Ned Freed <ned.freed@mrochek.com>
References: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com> <7YuRD8XC5q7UzHD2142Juw.md5@libertango.oryx.com> <4744168D.10304@isode.com>
In-Reply-To: <4744168D.10304@isode.com>
Content-Type: text/plain; format=flowed
MIME-Version: 1.0
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Alexey Melnikov writes:
> But can somebody please give me a useful use case of why a client 
> would need to know if something is enabled or not. The client still 
> needs to cope with a server that doesn't support an extension.

I believe there won't be any such useful case with regular clients. 
There could be three other kinds of cases:

1. A test suite client., which wants to test at the start that it has 
the same idea of state as the server.

2. A client which can tell the user about the server it's using in a 
little dialog box:
       Server host: <name>
       Protocol: IMAP
       Server name: <name and stuff from ID>
       Using TLS: <Yes or no>
       Logged in as: <login>
       Extensions used: <list>
That last list would be the ones the server offers and client uses that 
aren't ENABLE fodder, plus the ones from ENABLED.

3. Really badly written extensions. For example, if Peter makes a 
complete mess of his FAT NIL proposal, a client might need to know.

IMO, 1 is a weak reason (we do this in a nonstandard way and that's 
perfect for testing), 2 is even weaker and 3 is laughable.

Arnt



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lALBTOYZ093943 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Nov 2007 04:29:24 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lALBTOBe093942; Wed, 21 Nov 2007 04:29:24 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lALBTMSq093934 for <ietf-imapext@imc.org>; Wed, 21 Nov 2007 04:29:22 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <R0QWjwBBVJ7w@rufus.isode.com>; Wed, 21 Nov 2007 11:29:20 +0000
Message-ID: <4744168D.10304@isode.com>
Date: Wed, 21 Nov 2007 11:29:17 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Arnt Gulbrandsen <arnt@oryx.com>
CC: lemonade@ietf.org, ietf-imapext@imc.org, Ned Freed <ned.freed@mrochek.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com> <7YuRD8XC5q7UzHD2142Juw.md5@libertango.oryx.com>
In-Reply-To: <7YuRD8XC5q7UzHD2142Juw.md5@libertango.oryx.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Arnt Gulbrandsen wrote:

> Dan Karp writes:
>
>> If that is the point of this, we should stop trying to be tricky and 
>> just add an untagged ENABLED response:
>
> Absolutely.
>
> Not sure I agree with the need for ENABLED, but it certainly is THE 
> straightforward and sensible solution to the perceived problem.

Agreed.

But can somebody please give me a useful use case of why a client would 
need to know if something is enabled or not. The client still needs to 
cope with a server that doesn't support an extension.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAL93xPk081998 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Nov 2007 02:03:59 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAL93xIS081997; Wed, 21 Nov 2007 02:03:59 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from kalyani.oryx.com (kalyani.oryx.com [195.30.37.30]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAL93wj9081982 for <ietf-imapext@imc.org>; Wed, 21 Nov 2007 02:03:58 -0700 (MST) (envelope-from arnt@oryx.com)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id 886734ACC2; Wed, 21 Nov 2007 10:04:06 +0100 (CET)
Message-Id: <7YuRD8XC5q7UzHD2142Juw.md5@libertango.oryx.com>
Date: Wed, 21 Nov 2007 10:03:55 +0100
From: Arnt Gulbrandsen <arnt@oryx.com>
To: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: Alexey Melnikov <alexey.melnikov@isode.com>, Ned Freed <ned.freed@mrochek.com>, Randall Gellens <randy@qualcomm.com>, Peter Coates <peter.coates@Sun.COM>, Dan Karp <dkarp@zimbra.com>
References: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com>
In-Reply-To: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com>
Content-Type: text/plain; format=flowed
MIME-Version: 1.0
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Dan Karp writes:
> If that is the point of this, we should stop trying to be tricky and 
> just add an untagged ENABLED response:

Absolutely.

Not sure I agree with the need for ENABLED, but it certainly is THE 
straightforward and sensible solution to the perceived problem.

Arnt



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAL5ZOtd067746 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Nov 2007 22:35:24 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAL5ZO9n067745; Tue, 20 Nov 2007 22:35:24 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mauve.mrochek.com (dsl-66-59-230-40.static.linkline.com [66.59.230.40]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAL5ZAZZ067724 for <ietf-imapext@imc.org>; Tue, 20 Nov 2007 22:35:11 -0700 (MST) (envelope-from ned.freed@mrochek.com)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01MNYBWNRZAO00GAM4@mauve.mrochek.com> for ietf-imapext@imc.org; Tue, 20 Nov 2007 15:08:58 -0800 (PST)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01MNWVHAV96800GULE@mauve.mrochek.com> (original mail from NED@mauve.mrochek.com) for ietf-imapext@imc.org; Tue, 20 Nov 2007 15:05:44 -0800 (PST)
From: ned.freed@mrochek.com
Cc: Ned Freed <ned.freed@mrochek.com>, lemonade@ietf.org, Alexey Melnikov <alexey.melnikov@isode.com>, Peter Coates <peter.coates@Sun.COM>, ietf-imapext@imc.org
Message-id: <01MNYBSP7BY600GULE@mauve.mrochek.com>
Date: Tue, 20 Nov 2007 14:52:28 -0800 (PST)
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
In-reply-to: "Your message dated Tue, 20 Nov 2007 11:22:56 -0800" <p06240604c368e187f3f1@[192.168.1.13]>
MIME-version: 1.0
Content-type: TEXT/PLAIN; format=flowed
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <01a601c822f5$7c13bf60$743b3e20$%coates@sun.com> <4734AEF8.4090201@isode.com> <p06240602c368d49cecb9@[192.168.1.13]> <01MNY336A8QY00GULE@mauve.mrochek.com> <p06240604c368e187f3f1@[192.168.1.13]>
To: Randall Gellens <randy@qualcomm.com>
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

> At 10:40 AM -0800 11/20/07, Ned Freed wrote:

> >>  Why do you prefer not having ENABLEable extensions in the initial
> >>  CAPABILITY response?
> >
> >  Because it removes the ability to use the response to determine what is or is
> >  not enabled.

> I don't understand your reply.  I parse it as: you prefer prohibiting
> any extension that can be ENABLEd from appearing in the initial
> (pre-authentication) CAPABILITY response because this way clients
> can't use the initial CAPABILITY response to determine what is or is
> not ENABLEd?

It's extremely simple: If the availabity of an extension is sufficient for it
to appear in the CAPABILITY response then that response cannot be used as an
indication of whether or not the extension is enabled.

I suppose you could change the response in some way, but I have to wonder why a
client would care about the existance of an extension that it didn't bother
trying to enable.

> Do you mean that you want to keep all non-TLS non-authentication
> extensions out of the initial CAPABILITY response to avoid revealing
> information to an unauthenticated client?

No, the pre-authentication response is completely irrelevant.

> Or do you mean that you want to prevent clients from assuming that
> any ENABLEable extension listed in the initial CAPABILITY response
> and included in the ENABLE command was successfully ENABLEd, without
> looking at the post-ENABLE CAPABILITY response?

Again, the initial capability response isn't relevant to any of this. The only
thing I can think of that would make it relevant is to misdesign enable so that
it's all or nothing. In that case you'd need to look at that response to find
out what you could put in your enable command. But in that case you still
shouldn't be paying attention to the pre-authentication response. Rather, you'd
need to CAPA-TLS-CAPA-AUTH-CAPA-ENABLE sequence. Blech.

> >>  At 7:59 AM -0800 11/10/07, Ned Freed wrote:
> >>>   One problem is that this presumes that enable will always succeed
> >>>  for anything
> >>>   that was previousliy listed as a capability. This strikes me as
> >>> risky - there
> >>>   could be things where the server cannot tell there's  a problem
> >>> enabling it
> >>>   until it actually goes through the steps of doing so.
> >>>
> >>>   I strongly prefer a model where it is possible to check to see
> >>> what's turned
> >>>   on and what is not.
> >
> >>   >  In my approach the client authenticates and then sends the
> >> enable command
> >>>   followed by a capability command to see the results of the enable.
> >
> >>  So ENABLE returns OK even if some extensions are not known or
> >>  couldn't be turned on for whatever reason (temporary failure of a
> >>  resource perhaps).  The post-authentication post-ENABLE CAPABILITY
> >>  response omits anything that failed during ENABLE.  So a
> >>  post-authentication pre-ENABLE CAPABILITY response may be different
> >>  from a post-authentication post-ENABLE CAPABILITY response.  That
> >>  seems a little odd, but it may be easier on the client, since the
> >>  client only has to parse the CAPABILITY response, not the ENABLE
> >>  response.  But it does effectively force the sequence
> >>  CAPABILITY-authentication-ENABLE-CAPABILITY.
> >
> >  Correct, but clients already have to look at capabilitiez after
> > authentication
> >  so this adds no overhead.

> True, but it does force any client that uses ENABLE to issue it after
> authenticating and before issuing the post-authentication CAPABILITY
> command (unless the client wants to issue a third CAPABILITY command,
> which seems pointless).

Correct, but IMO this is a very good thing. Limiting the places where enable
can be used results in a tremendous reduction in the number of places where a
state transition can occur. (Unfortunately it doesn't reduce the number of
actual protocol states, but nothing short of a redesign of the way responses
are structured so they can be extended at any time can accomplish that.)

> So the required command sequence becomes:

>      1: CAPABILITY (only to determine if TLS and which authentication
>          mechanisms are supported)
>      2: TLS (if being used) and authentication
>      3: ENABLE (with all desired ENABLEable extensions)
>      4: CAPABILITY (to see which ENABLEable extensions were turned
>          on, and which other extensions are supported)

Yep, that's it.

> >>  At 10:25 AM -0800 11/10/07, Ned Freed wrote:
> >>>   Nothing prevents us from requiring ENABLE in order to use extensions that
> >>>   change command response syntax. In fact I think such a
> >>> requirement would be a
> >>>   very good idea.
> >
> >>  I agree, but this requires a revision to CONDSTORE that deprecates
> >>  the current extension and defines a new one, doesn't it?
> >
> >  Yes, but IMO that's a good thing.

> It would make things much cleaner, so long-term would be helpful.  Is
> there support in the group for doing this?  Are there deployments of
> CONDSTORE?

That's the real question. If there's significant deployment we pretty much
have no choice but to do this by adding additional response inforation to
enable, which adds client complexity.

				Ned



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAL5ZGAP067736 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Nov 2007 22:35:16 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAL5ZGUY067735; Tue, 20 Nov 2007 22:35:16 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mauve.mrochek.com (dsl-66-59-230-40.static.linkline.com [66.59.230.40]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAL5ZAZb067724 for <ietf-imapext@imc.org>; Tue, 20 Nov 2007 22:35:11 -0700 (MST) (envelope-from ned.freed@mrochek.com)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01MNY338117400G9Q4@mauve.mrochek.com> for ietf-imapext@imc.org; Tue, 20 Nov 2007 10:56:10 -0800 (PST)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01MNWVHAV96800GULE@mauve.mrochek.com> (original mail from NED@mauve.mrochek.com) for ietf-imapext@imc.org; Tue, 20 Nov 2007 10:56:06 -0800 (PST)
From: ned.freed@mrochek.com
Cc: Alexey Melnikov <alexey.melnikov@isode.com>, Peter Coates <peter.coates@sun.com>, Ned Freed <ned.freed@mrochek.com>, lemonade@ietf.org, ietf-imapext@imc.org
Message-id: <01MNY336A8QY00GULE@mauve.mrochek.com>
Date: Tue, 20 Nov 2007 10:40:42 -0800 (PST)
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
In-reply-to: "Your message dated Tue, 20 Nov 2007 10:33:16 -0800" <p06240602c368d49cecb9@[192.168.1.13]>
MIME-version: 1.0
Content-type: TEXT/PLAIN; format=flowed
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <01a601c822f5$7c13bf60$743b3e20$%coates@sun.com> <4734AEF8.4090201@isode.com> <p06240602c368d49cecb9@[192.168.1.13]>
To: Randall Gellens <randy@qualcomm.com>
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

> At 7:03 PM +0000 11/9/07, Alexey Melnikov wrote:

> >>  Thus the sequence should be either
> >>  C: t1 CAPABILITY
> >>  S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
> >>  S: t1 OK foo
> >>  C: t2 ENABLE CONDSTORE X-GOOD-IDEA
> >>  S: t2 OK foo
> >>  C: t3 CAPABILITY
> >>  S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
> >>  CONDSTORE
> >>  S: t3 OK foo again
> >>
> >  I dislike that, because you now implicitly saying that there are
> > magic extensions which don't work unless the client knows how to
> > enable them. Really, the server should have advertised the
> > CONDSTORE extension to begin with.

> I agree.

> The client shouldn't have to parse both the CAPABILITY response and
> the ENABLE response to learn if an extension has been negotiated.  If
> we put all ENABLEable extensions in the CAPABILITY response, then the
> response to ENABLE can be OK even if it contains unknown extensions.

> At 2:42 PM -0800 11/9/07, Ned Freed wrote:
> >  My personal preference is to have the initial capability list not list things
> >  that can be enabled, have enable turn on whatit can and ignore the rest, and
> >  have any enabled changes show up in subsequent capability lists. This
> >  leverages existing protocol features and doesn't invent new syntax or
> >  require multiple commands.

> Why do you prefer not having ENABLEable extensions in the initial
> CAPABILITY response?

Because it removes the ability to use the response to determine what is or is
not enabled.

> At 7:59 AM -0800 11/10/07, Ned Freed wrote:
> >  One problem is that this presumes that enable will always succeed
> > for anything
> >  that was previousliy listed as a capability. This strikes me as risky - there
> >  could be things where the server cannot tell there's  a problem enabling it
> >  until it actually goes through the steps of doing so.
> >
> >  I strongly prefer a model where it is possible to check to see what's turned
> >  on and what is not.

> >  In my approach the client authenticates and then sends the enable command
> >  followed by a capability command to see the results of the enable.

> So ENABLE returns OK even if some extensions are not known or
> couldn't be turned on for whatever reason (temporary failure of a
> resource perhaps).  The post-authentication post-ENABLE CAPABILITY
> response omits anything that failed during ENABLE.  So a
> post-authentication pre-ENABLE CAPABILITY response may be different
> from a post-authentication post-ENABLE CAPABILITY response.  That
> seems a little odd, but it may be easier on the client, since the
> client only has to parse the CAPABILITY response, not the ENABLE
> response.  But it does effectively force the sequence
> CAPABILITY-authentication-ENABLE-CAPABILITY.

Correct, but clients already have to look at capabilitiez after authentication
so this adds no overhead.

No matter how you slice it the client has to be able to determine what's
enabled - the present situation as I understand is unacceptable since
situations can arise where the client doesn't know what's on and what's off.
The three options as I seee it are:

(1) Have enable return this information as some sort of extended response.
(2) have the client send multiple enables and use the response status to
    determine success or failure.
(3) Piggyback this on the existing capabilities mechanism.

I believe (3) is the simplest by far from a client perspective. An existing,
compliant client need only add code to send a single enable command (which can
even have a fixed set of arguments). The client then uses the capability
response it already has to find out what extensions it can use, and more
importantly what changes those extenaions have made to the syntax and semantics
of server responses.

If we don't do (3) I think the only viable alternative is (1). (2) looks an
awful lot like telnet option negiation to me, which hasn't worked all that
well.

> At 10:25 AM -0800 11/10/07, Ned Freed wrote:
> >  Nothing prevents us from requiring ENABLE in order to use extensions that
> >  change command response syntax. In fact I think such a requirement would be a
> >  very good idea.

> I agree, but this requires a revision to CONDSTORE that deprecates
> the current extension and defines a new one, doesn't it?

Yes, but IMO that's a good thing.

				Ned



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAL08nvx045849 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Nov 2007 17:08:49 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAL08nJP045848; Tue, 20 Nov 2007 17:08:49 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from ithilien.qualcomm.com (ithilien.qualcomm.com [129.46.51.59]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAL08lM4045841 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Tue, 20 Nov 2007 17:08:48 -0700 (MST) (envelope-from randy@qualcomm.com)
Received: from neophyte.qualcomm.com (neophyte.qualcomm.com [129.46.61.149]) by ithilien.qualcomm.com (8.13.6/8.12.5/1.0) with ESMTP id lAL08j6C028959 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 20 Nov 2007 16:08:46 -0800
Received: from [192.168.1.13] (vpn-10-50-16-37.qualcomm.com [10.50.16.37]) by neophyte.qualcomm.com (8.13.6/8.13.6/1.0) with ESMTP id lAL08hls019611; Tue, 20 Nov 2007 16:08:43 -0800
Mime-Version: 1.0
Message-Id: <p06240609c369237a68c1@[192.168.1.13]>
In-Reply-To: <01MNYBSP7BY600GULE@mauve.mrochek.com>
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <01a601c822f5$7c13bf60$743b3e20$%coates@sun.com> <4734AEF8.4090201@isode.com> <p06240602c368d49cecb9@[192.168.1.13]> <01MNY336A8QY00GULE@mauve.mrochek.com> <p06240604c368e187f3f1@[192.168.1.13]> <01MNYBSP7BY600GULE@mauve.mrochek.com>
X-Mailer: Eudora for Mac OS X
X-message-flag: Warning: Outlook in use.  Upgrade to Eudora: <http://www.eudora.com>
Date: Tue, 20 Nov 2007 16:05:48 -0800
To: Ned Freed <ned.freed@mrochek.com>
From: Randall Gellens <randy@qualcomm.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: lemonade@ietf.org, Alexey Melnikov <alexey.melnikov@isode.com>, Peter Coates <peter.coates@Sun.COM>, Ned Freed <ned.freed@mrochek.com>, ietf-imapext@imc.org
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Random-Sig-Tag: 1.0b28
X-PerlMx: Message inspected by PerlMx
X-PerlMx: Message inspected by PerlMx
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

At 2:52 PM -0800 11/20/07, Ned Freed wrote:

>>  At 10:40 AM -0800 11/20/07, Ned Freed wrote:
>
>>   >>  Why do you prefer not having ENABLEable extensions in the initial
>>>>   CAPABILITY response?
>>>
>>>   Because it removes the ability to use the response to determine 
>>> what is or is
>>>   not enabled.
>
>>  I don't understand your reply.  I parse it as: you prefer prohibiting
>>  any extension that can be ENABLEd from appearing in the initial
>>  (pre-authentication) CAPABILITY response because this way clients
>>  can't use the initial CAPABILITY response to determine what is or is
>>  not ENABLEd?
>
>  It's extremely simple: If the availabity of an extension is sufficient for it
>  to appear in the CAPABILITY response then that response cannot be used as an
>  indication of whether or not the extension is enabled.
>
>  I suppose you could change the response in some way, but I have to 
> wonder why a
>  client would care about the existance of an extension that it didn't bother
>  trying to enable.

Thanks, I see the source of my confusion now: the term "initial 
CAPABILITY response".  I took it to mean the pre-authentication 
CAPABILITY response, but I see now you only talking about 
post-authentication.

>>  True, but it does force any client that uses ENABLE to issue it after
>>  authenticating and before issuing the post-authentication CAPABILITY
>>  command (unless the client wants to issue a third CAPABILITY command,
>>  which seems pointless).
>
>  Correct, but IMO this is a very good thing. Limiting the places where enable
>  can be used results in a tremendous reduction in the number of places where a
>  state transition can occur. (Unfortunately it doesn't reduce the number of
>  actual protocol states, but nothing short of a redesign of the way responses
>  are structured so they can be extended at any time can accomplish that.)



>
>>  So the required command sequence becomes:
>
>>       1: CAPABILITY (only to determine if TLS and which authentication
>>           mechanisms are supported)
>>       2: TLS (if being used) and authentication
>>       3: ENABLE (with all desired ENABLEable extensions)
>>       4: CAPABILITY (to see which ENABLEable extensions were turned
>>           on, and which other extensions are supported)
>
>  Yep, that's it.

This makes sense.  If an extension that is normally ENABLE-able is 
sent by the client in ENABLE, but for some reason fails, the server 
omits it from the CAPABILITY response in step 4.  This is reasonable 
because in reality it isn't actually available just at the moment for 
whatever reason, even though the server does support it.  This might 
change the next time the client connects, but that's always the case. 
This is different from how I am used to thinking of the CAPABILITY 
response, but is simpler for the client, I think.


>>   >>  At 10:25 AM -0800 11/10/07, Ned Freed wrote:
>>>>>    Nothing prevents us from requiring ENABLE in order to use 
>>>>> extensions that
>>>>>    change command response syntax. In fact I think such a
>>>>>  requirement would be a
>>>>>    very good idea.
>>>
>>>>   I agree, but this requires a revision to CONDSTORE that deprecates
>>>>   the current extension and defines a new one, doesn't it?
>>>
>>>   Yes, but IMO that's a good thing.
>
>>  It would make things much cleaner, so long-term would be helpful.  Is
>>  there support in the group for doing this?  Are there deployments of
>>  CONDSTORE?
>
>  That's the real question. If there's significant deployment we pretty much
>  have no choice but to do this by adding additional response inforation to
>  enable, which adds client complexity.

-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly-selected tag: ---------------
You think it's a conspiracy by the networks to put bad shows on TV. But
the shows are bad because that's what people want. It's not like
Windows users don't have any power. I think they are happy with
Windows, and that's an incredibly depressing thought.
                                                           --Steve Jobs



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAKJqWA2025068 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Nov 2007 12:52:32 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAKJqWEu025067; Tue, 20 Nov 2007 12:52:32 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAKJqVK5025059 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Tue, 20 Nov 2007 12:52:32 -0700 (MST) (envelope-from MRC@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout5.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAKJqQAd019734 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 20 Nov 2007 11:52:26 -0800
X-Auth-Received: from D-128-208-197-44.dhcp4.washington.edu (D-128-208-197-44.dhcp4.washington.edu [128.208.197.44]) (authenticated authid=mrc) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAKJqQA2023243 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 20 Nov 2007 11:52:26 -0800
Date: Tue, 20 Nov 2007 11:52:42 -0800 (PST)
From: Mark Crispin <MRC@CAC.Washington.EDU>
To: Dan Karp <dkarp@zimbra.com>
cc: Ned Freed <ned.freed@mrochek.com>, Randall Gellens <randy@qualcomm.com>, lemonade@ietf.org, Peter Coates <peter.coates@sun.com>, ietf-imapext@imc.org, Alexey Melnikov <alexey.melnikov@isode.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
In-Reply-To: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com>
Message-ID: <alpine.LN8.0.99999.0711201152180.4086@Nokia-N800-39>
References: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com>
User-Agent: Alpine 0.99999 (LN8 824 2007-11-19)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.20.113138
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='BODY_SIZE_900_999 0, __CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __LINES_OF_YELLING 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0'
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

+1

On Tue, 20 Nov 2007, Dan Karp wrote:

>>> Why do you prefer not having ENABLEable extensions in the initial
>>> CAPABILITY response?
>>
>> Because it removes the ability to use the response to determine what
>> is or is not enabled.
>
> If that is the point of this, we should stop trying to be tricky and
> just add an untagged ENABLED response:
>
>   A001 ENABLE X-UNKNOWN-EXTENSION QRESYNC CONDSTORE
>   * ENABLED QRESYNC CONDSTORE
>   A001 OK ENABLE completed
>
> I don't like changing the semantics of CAPABILITY just to avoid having
> a new untagged response.
>
>
> _______________________________________________
> lemonade mailing list
> lemonade@ietf.org
> https://www1.ietf.org/mailman/listinfo/lemonade
> Supplemental Web Site:
> http://www.standardstrack.com/ietf/lemonade
>

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAKJnU3Q024786 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Nov 2007 12:49:30 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAKJnUBd024785; Tue, 20 Nov 2007 12:49:30 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mta01.zimbra.com (mta01.zimbra.com [77.67.121.29]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAKJnRoU024776 for <ietf-imapext@imc.org>; Tue, 20 Nov 2007 12:49:30 -0700 (MST) (envelope-from dkarp@zimbra.com)
Received: from dogfood.zimbra.com (dsl092-025-198.sfo1.dsl.speakeasy.net [66.92.25.198]) by mta01.zimbra.com (Postfix) with ESMTP id 50CDBDE92BB; Tue, 20 Nov 2007 11:49:26 -0800 (PST)
Received: from localhost (localhost.localdomain [127.0.0.1]) by dogfood.zimbra.com (Postfix) with ESMTP id 442C31D5576; Tue, 20 Nov 2007 11:49:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at dogfood.zimbra.com
Received: from dogfood.zimbra.com ([127.0.0.1]) by localhost (dogfood.zimbra.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p9AFLOV2dPcV; Tue, 20 Nov 2007 11:49:19 -0800 (PST)
Received: from dogfood.zimbra.com (localhost.localdomain [127.0.0.1]) by dogfood.zimbra.com (Postfix) with ESMTP id 45DF41D53EF; Tue, 20 Nov 2007 11:49:19 -0800 (PST)
Date: Tue, 20 Nov 2007 11:49:19 -0800 (PST)
From: Dan Karp <dkarp@zimbra.com>
To: Ned Freed <ned.freed@mrochek.com>
Cc: lemonade@ietf.org, Alexey Melnikov <alexey.melnikov@isode.com>, Peter Coates <peter.coates@sun.com>, Ned Freed <ned.freed@mrochek.com>, ietf-imapext@imc.org, Randall Gellens <randy@qualcomm.com>
Message-ID: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com>
In-Reply-To: <01MNY336A8QY00GULE@mauve.mrochek.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [70.130.205.227]
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

> > Why do you prefer not having ENABLEable extensions in the initial
> > CAPABILITY response?
> 
> Because it removes the ability to use the response to determine what
> is or is not enabled.

If that is the point of this, we should stop trying to be tricky and 
just add an untagged ENABLED response:

   A001 ENABLE X-UNKNOWN-EXTENSION QRESYNC CONDSTORE
   * ENABLED QRESYNC CONDSTORE
   A001 OK ENABLE completed

I don't like changing the semantics of CAPABILITY just to avoid having 
a new untagged response.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAKJQobv023081 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Nov 2007 12:26:50 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAKJQoT4023080; Tue, 20 Nov 2007 12:26:50 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from ithilien.qualcomm.com (ithilien.qualcomm.com [129.46.51.59]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAKJQnSs023074 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Tue, 20 Nov 2007 12:26:49 -0700 (MST) (envelope-from randy@qualcomm.com)
Received: from totoro.qualcomm.com (totoro.qualcomm.com [129.46.61.158]) by ithilien.qualcomm.com (8.13.6/8.12.5/1.0) with ESMTP id lAKJQiQP025833 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 20 Nov 2007 11:26:45 -0800
Received: from [192.168.1.13] (vpn-10-50-16-37.qualcomm.com [10.50.16.37]) by totoro.qualcomm.com (8.13.6/8.13.6/1.0) with ESMTP id lAKJQgO5026382; Tue, 20 Nov 2007 11:26:43 -0800 (PST)
Mime-Version: 1.0
Message-Id: <p06240604c368e187f3f1@[192.168.1.13]>
In-Reply-To: <01MNY336A8QY00GULE@mauve.mrochek.com>
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <01a601c822f5$7c13bf60$743b3e20$%coates@sun.com> <4734AEF8.4090201@isode.com> <p06240602c368d49cecb9@[192.168.1.13]> <01MNY336A8QY00GULE@mauve.mrochek.com>
X-Mailer: Eudora for Mac OS X
X-message-flag: Warning: Outlook in use.  Upgrade to Eudora: <http://www.eudora.com>
Date: Tue, 20 Nov 2007 11:22:56 -0800
To: Ned Freed <ned.freed@mrochek.com>
From: Randall Gellens <randy@qualcomm.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: lemonade@ietf.org, Alexey Melnikov <alexey.melnikov@isode.com>, Peter Coates <peter.coates@sun.com>, Ned Freed <ned.freed@mrochek.com>, ietf-imapext@imc.org
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Random-Sig-Tag: 1.0b28
X-PerlMx: Message inspected by PerlMx
X-PerlMx: Message inspected by PerlMx
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

At 10:40 AM -0800 11/20/07, Ned Freed wrote:

>>  Why do you prefer not having ENABLEable extensions in the initial
>>  CAPABILITY response?
>
>  Because it removes the ability to use the response to determine what is or is
>  not enabled.

I don't understand your reply.  I parse it as: you prefer prohibiting 
any extension that can be ENABLEd from appearing in the initial 
(pre-authentication) CAPABILITY response because this way clients 
can't use the initial CAPABILITY response to determine what is or is 
not ENABLEd?

Do you mean that you want to keep all non-TLS non-authentication 
extensions out of the initial CAPABILITY response to avoid revealing 
information to an unauthenticated client?

Or do you mean that you want to prevent clients from assuming that 
any ENABLEable extension listed in the initial CAPABILITY response 
and included in the ENABLE command was successfully ENABLEd, without 
looking at the post-ENABLE CAPABILITY response?


>>  At 7:59 AM -0800 11/10/07, Ned Freed wrote:
>>>   One problem is that this presumes that enable will always succeed
>>>  for anything
>>>   that was previousliy listed as a capability. This strikes me as 
>>> risky - there
>>>   could be things where the server cannot tell there's  a problem 
>>> enabling it
>>>   until it actually goes through the steps of doing so.
>>>
>>>   I strongly prefer a model where it is possible to check to see 
>>> what's turned
>>>   on and what is not.
>
>>   >  In my approach the client authenticates and then sends the 
>> enable command
>>>   followed by a capability command to see the results of the enable.
>
>>  So ENABLE returns OK even if some extensions are not known or
>>  couldn't be turned on for whatever reason (temporary failure of a
>>  resource perhaps).  The post-authentication post-ENABLE CAPABILITY
>>  response omits anything that failed during ENABLE.  So a
>>  post-authentication pre-ENABLE CAPABILITY response may be different
>>  from a post-authentication post-ENABLE CAPABILITY response.  That
>>  seems a little odd, but it may be easier on the client, since the
>>  client only has to parse the CAPABILITY response, not the ENABLE
>>  response.  But it does effectively force the sequence
>>  CAPABILITY-authentication-ENABLE-CAPABILITY.
>
>  Correct, but clients already have to look at capabilitiez after 
> authentication
>  so this adds no overhead.

True, but it does force any client that uses ENABLE to issue it after 
authenticating and before issuing the post-authentication CAPABILITY 
command (unless the client wants to issue a third CAPABILITY command, 
which seems pointless).

So the required command sequence becomes:

     1: CAPABILITY (only to determine if TLS and which authentication
         mechanisms are supported)
     2: TLS (if being used) and authentication
     3: ENABLE (with all desired ENABLEable extensions)
     4: CAPABILITY (to see which ENABLEable extensions were turned
         on, and which other extensions are supported)


>>  At 10:25 AM -0800 11/10/07, Ned Freed wrote:
>>>   Nothing prevents us from requiring ENABLE in order to use extensions that
>>>   change command response syntax. In fact I think such a 
>>> requirement would be a
>>>   very good idea.
>
>>  I agree, but this requires a revision to CONDSTORE that deprecates
>>  the current extension and defines a new one, doesn't it?
>
>  Yes, but IMO that's a good thing.

It would make things much cleaner, so long-term would be helpful.  Is 
there support in the group for doing this?  Are there deployments of 
CONDSTORE?
-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly-selected tag: ---------------
Note that although IBM 'invented' virtual memory in 1972 it had
been available in a multi-processor multi-tasking environment on
the Burroughs B5000 line since 1963 and the B6000 line since 1968.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAKIZ5Ij017987 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Nov 2007 11:35:05 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAKIZ5M2017986; Tue, 20 Nov 2007 11:35:05 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from ithilien.qualcomm.com (ithilien.qualcomm.com [129.46.51.59]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAKIZ4Jn017978 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Tue, 20 Nov 2007 11:35:05 -0700 (MST) (envelope-from randy@qualcomm.com)
Received: from neophyte.qualcomm.com (neophyte.qualcomm.com [129.46.61.149]) by ithilien.qualcomm.com (8.13.6/8.12.5/1.0) with ESMTP id lAKIYkSO018200 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 20 Nov 2007 10:34:46 -0800
Received: from [192.168.1.13] (vpn-10-50-16-37.qualcomm.com [10.50.16.37]) by neophyte.qualcomm.com (8.13.6/8.13.6/1.0) with ESMTP id lAKIYhvA024559; Tue, 20 Nov 2007 10:34:44 -0800
Mime-Version: 1.0
Message-Id: <p06240602c368d49cecb9@[192.168.1.13]>
In-Reply-To: <4734AEF8.4090201@isode.com>
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <01a601c822f5$7c13bf60$743b3e20$%coates@sun.com> <4734AEF8.4090201@isode.com>
X-Mailer: Eudora for Mac OS X
X-message-flag: Warning: Outlook in use.  Upgrade to Eudora: <http://www.eudora.com>
Date: Tue, 20 Nov 2007 10:33:16 -0800
To: Alexey Melnikov <alexey.melnikov@isode.com>, Peter Coates <peter.coates@sun.com>, Ned Freed <ned.freed@mrochek.com>
From: Randall Gellens <randy@qualcomm.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: lemonade@ietf.org, ietf-imapext@imc.org
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Random-Sig-Tag: 1.0b28
X-PerlMx: Message inspected by PerlMx
X-PerlMx: Message inspected by PerlMx
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

At 7:03 PM +0000 11/9/07, Alexey Melnikov wrote:

>>  Thus the sequence should be either
>>  C: t1 CAPABILITY
>>  S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
>>  S: t1 OK foo
>>  C: t2 ENABLE CONDSTORE X-GOOD-IDEA
>>  S: t2 OK foo
>>  C: t3 CAPABILITY
>>  S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
>>  CONDSTORE
>>  S: t3 OK foo again
>>
>  I dislike that, because you now implicitly saying that there are 
> magic extensions which don't work unless the client knows how to 
> enable them. Really, the server should have advertised the 
> CONDSTORE extension to begin with.

I agree.

The client shouldn't have to parse both the CAPABILITY response and 
the ENABLE response to learn if an extension has been negotiated.  If 
we put all ENABLEable extensions in the CAPABILITY response, then the 
response to ENABLE can be OK even if it contains unknown extensions.

At 2:42 PM -0800 11/9/07, Ned Freed wrote:
>  My personal preference is to have the initial capability list not list things
>  that can be enabled, have enable turn on whatit can and ignore the rest, and
>  have any enabled changes show up in subsequent capability lists. This
>  leverages existing protocol features and doesn't invent new syntax or
>  require multiple commands.

Why do you prefer not having ENABLEable extensions in the initial 
CAPABILITY response?

At 7:59 AM -0800 11/10/07, Ned Freed wrote:
>  One problem is that this presumes that enable will always succeed 
> for anything
>  that was previousliy listed as a capability. This strikes me as risky - there
>  could be things where the server cannot tell there's  a problem enabling it
>  until it actually goes through the steps of doing so.
>
>  I strongly prefer a model where it is possible to check to see what's turned
>  on and what is not.

>  In my approach the client authenticates and then sends the enable command
>  followed by a capability command to see the results of the enable.

So ENABLE returns OK even if some extensions are not known or 
couldn't be turned on for whatever reason (temporary failure of a 
resource perhaps).  The post-authentication post-ENABLE CAPABILITY 
response omits anything that failed during ENABLE.  So a 
post-authentication pre-ENABLE CAPABILITY response may be different 
from a post-authentication post-ENABLE CAPABILITY response.  That 
seems a little odd, but it may be easier on the client, since the 
client only has to parse the CAPABILITY response, not the ENABLE 
response.  But it does effectively force the sequence 
CAPABILITY-authentication-ENABLE-CAPABILITY.

At 10:25 AM -0800 11/10/07, Ned Freed wrote:
>  Nothing prevents us from requiring ENABLE in order to use extensions that
>  change command response syntax. In fact I think such a requirement would be a
>  very good idea.

I agree, but this requires a revision to CONDSTORE that deprecates 
the current extension and defines a new one, doesn't it?

-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly-selected tag: ---------------
No one would choose a friendless existence even if they had
all other good things in the world.             --Aristotle



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAF9V8JY026286 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 15 Nov 2007 02:31:08 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAF9V8ZF026285; Thu, 15 Nov 2007 02:31:08 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAF9V7Qc026277 for <ietf-imapext@imc.org>; Thu, 15 Nov 2007 02:31:08 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzwR2ABBVFzn@rufus.isode.com>; Thu, 15 Nov 2007 09:31:05 +0000
Message-ID: <473C1193.8090204@isode.com>
Date: Thu, 15 Nov 2007 09:29:55 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Mark Crispin <MRC@CAC.Washington.EDU>
CC: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: Updated IMAP I18N document
References: <473B16CF.7060600@isode.com> <alpine.WNT.0.99999.0711140754530.5152@Shimo-Tomobiki.Panda.COM> <473B3743.7060205@isode.com> <alpine.WNT.0.99999.0711141637400.4728@Tomobiki-Cho.CAC.Washignton.EDU>
In-Reply-To: <alpine.WNT.0.99999.0711141637400.4728@Tomobiki-Cho.CAC.Washignton.EDU>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Mark Crispin wrote:

> I am uneasy about having COMPARATOR and UNICASEMAP as separate 
> capabilities, especially since COMPARATOR implies but does not require 
> UNICASEMAP.  This means that a client that only cares about UNICASEMAP 
> capability must test for both requirements.
>
> As an alternative, how about I18NLEVEL=<version #>, where version 1 
> means UNICASEMAP capability and version 2 means COMPARATOR?  This 
> implies that any subsequent additions will be additive with all 
> previous ones being mandatory-to-implement; but I think that is the 
> right thing in this case.

Let me think about this for a bit.

> On Wed, 14 Nov 2007, Alexey Melnikov wrote:
>
>>> I think that there should be some informative text to the effect 
>>> that the current IMAP specification specifies i;ascii-casemap, but 
>>> that for some time most servers have actually implemented 
>>> i;unicode-casemap.  So there may be legacy servers that still do 
>>> i;ascii-casemap.
>>
>> Sure. If you suggest some text I will add it ;-).
>
> How about:
>
> x. Compatibility Notes
>
>     Several server implementations deployed prior to the publication of
>     this specification comply with I18NLEVEL=1, but do not advertise
>     that.  Other legacy servers use the i;ascii-casemap (see [RFC4790])
>     comparator.
>
>     There is no good way for a client to know which comparator that a
>     legacy server uses.  If the client has to assume the worst, it may
>     end up doing expensive local operations to obtain i;unicode-casemap
>     comparisons even though the server implements it.
>
>     Legacy server implementations which comply with I18NLEVEL=1 should
>     be updated to advertise I18NLEVEL=1.  All server implementations
>     should eventually be updated to comply with I18NLEVEL=2.

Ok, this would work. I like your text.

>> An IMAP server that implements the i;unicode-casemap comparator [UCM]
>> and satisfies all requirements specified in sections 4, 4.1 and 4.2
>> of this document, but doesn't implement the COMPARATOR command and
>> response, SHOULD advertise the UNICASEMAP capability in the CAPABILITY
>> response.
>
> This is awkward: "this and this, but not that, should do the other 
> thing." Ugh.
>
> Also, 4.3 is not part of this but "section 4" implies otherwise (you 
> actually intend the introduction of section 4).

Yes, I should have moved the introduction to a subsection of section 4.1

> If we do I18NLEVEL, then the current introduction to section 4, 
> section 4.1, and section 4.2 would be the requirements of I18NLEVEL=1, 
> and I18NLEVEL=1 plus the former section 4.3 (should be a new major 
> section) would be the requirements of I18NLEVEL=2.
>
> That seems cleaner to me.




Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAF0uOhk092388 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Nov 2007 17:56:24 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAF0uORj092387; Wed, 14 Nov 2007 17:56:24 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAF0uMS2092380 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Wed, 14 Nov 2007 17:56:23 -0700 (MST) (envelope-from MRC@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.7] (may be forged)) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAF0uLAt027007 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 14 Nov 2007 16:56:21 -0800
X-Auth-Received: from Tomobiki-Cho.CAC.Washignton.EDU (tomobiki-cho.cac.washington.edu [128.95.135.58]) (authenticated authid=mrc) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAF0uLuu032031 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 14 Nov 2007 16:56:21 -0800
Date: Wed, 14 Nov 2007 16:55:50 -0800 (Pacific Standard Time)
From: Mark Crispin <MRC@CAC.Washington.EDU>
To: Alexey Melnikov <alexey.melnikov@isode.com>
cc: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: Updated IMAP I18N document
In-Reply-To: <473B3743.7060205@isode.com>
Message-ID: <alpine.WNT.0.99999.0711141637400.4728@Tomobiki-Cho.CAC.Washignton.EDU>
References: <473B16CF.7060600@isode.com>            <alpine.WNT.0.99999.0711140754530.5152@Shimo-Tomobiki.Panda.COM> <473B3743.7060205@isode.com>
User-Agent: Alpine 0.99999 (WNT 813 2007-11-14)
Organization: Networks & Distributed Computing
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.14.163556
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0'
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

I am uneasy about having COMPARATOR and UNICASEMAP as separate 
capabilities, especially since COMPARATOR implies but does not require 
UNICASEMAP.  This means that a client that only cares about UNICASEMAP 
capability must test for both requirements.

As an alternative, how about I18NLEVEL=<version #>, where version 1 means 
UNICASEMAP capability and version 2 means COMPARATOR?  This implies that 
any subsequent additions will be additive with all previous ones being 
mandatory-to-implement; but I think that is the right thing in this case.

On Wed, 14 Nov 2007, Alexey Melnikov wrote:
>> I think that there should be some informative text to the effect that the 
>> current IMAP specification specifies i;ascii-casemap, but that for some 
>> time most servers have actually implemented i;unicode-casemap.  So there 
>> may be legacy servers that still do i;ascii-casemap.
> Sure. If you suggest some text I will add it ;-).

How about:

x. Compatibility Notes

     Several server implementations deployed prior to the publication of
     this specification comply with I18NLEVEL=1, but do not advertise
     that.  Other legacy servers use the i;ascii-casemap (see [RFC4790])
     comparator.

     There is no good way for a client to know which comparator that a
     legacy server uses.  If the client has to assume the worst, it may
     end up doing expensive local operations to obtain i;unicode-casemap
     comparisons even though the server implements it.

     Legacy server implementations which comply with I18NLEVEL=1 should
     be updated to advertise I18NLEVEL=1.  All server implementations
     should eventually be updated to comply with I18NLEVEL=2.

> An IMAP server that implements the i;unicode-casemap comparator [UCM]
> and satisfies all requirements specified in sections 4, 4.1 and 4.2
> of this document, but doesn't implement the COMPARATOR command and
> response, SHOULD advertise the UNICASEMAP capability in the CAPABILITY
> response.

This is awkward: "this and this, but not that, should do the other thing." 
Ugh.

Also, 4.3 is not part of this but "section 4" implies otherwise (you 
actually intend the introduction of section 4).

If we do I18NLEVEL, then the current introduction to section 4, section 
4.1, and section 4.2 would be the requirements of I18NLEVEL=1, and 
I18NLEVEL=1 plus the former section 4.3 (should be a new major section) 
would be the requirements of I18NLEVEL=2.

That seems cleaner to me.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAELF4ZJ074021 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Nov 2007 14:15:04 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAELF4nn074020; Wed, 14 Nov 2007 14:15:04 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from ns0.neustar.com (ns0.neustar.com [156.154.16.158]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAELF2M7074008 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Wed, 14 Nov 2007 14:15:03 -0700 (MST) (envelope-from ietf@ietf.org)
Received: from stiedprstage1.ietf.org (stiedprstage1.va.neustar.com [10.31.47.10]) by ns0.neustar.com (Postfix) with ESMTP id E5D0B32987; Wed, 14 Nov 2007 21:15:01 +0000 (GMT)
Received: from ietf by stiedprstage1.ietf.org with local (Exim 4.43) id 1IsPZd-0008Gu-Qv; Wed, 14 Nov 2007 16:15:01 -0500
Content-Type: Multipart/Mixed; Boundary="NextPart"
Mime-Version: 1.0
To: i-d-announce@ietf.org
Cc: ietf-imapext@imc.org
From: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-imapext-i18n-13.txt 
Message-Id: <E1IsPZd-0008Gu-Qv@stiedprstage1.ietf.org>
Date: Wed, 14 Nov 2007 16:15:01 -0500
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts 
directories.
This draft is a work item of the Internet Message Access Protocol Extension Working Group of the IETF.

	Title		: Internet Message Access Protocol Internationalization
	Author(s)	: C. Newman, et al.
	Filename	: draft-ietf-imapext-i18n-13.txt
	Pages		: 18
	Date		: 2007-11-14
	
Internet Message Access Protocol (IMAP) version 4rev1 has basic
    support for non-ASCII characters in mailbox names and search
    substrings.  It also supports non-ASCII message headers and content
    encoded as specified by Multipurpose Internet Mail Extensions
    (MIME).  This specification defines a collection of IMAP extensions
    which improve international support including comparator negotiation
    for search, sort and thread, language negotiation for international
    error text, and translations for namespace prefixes.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-imapext-i18n-13.txt

To remove yourself from the I-D Announcement list, send a message to 
i-d-announce-request@ietf.org with the word unsubscribe in the body of 
the message. 
You can also visit https://www1.ietf.org/mailman/listinfo/I-D-announce 
to change your subscription settings.

Internet-Drafts are also available by anonymous FTP. Login with the 
username "anonymous" and a password of your e-mail address. After 
logging in, type "cd internet-drafts" and then 
"get draft-ietf-imapext-i18n-13.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt

Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-imapext-i18n-13.txt".
	
NOTE:	The mail server at ietf.org can return the document in
	MIME-encoded form by using the "mpack" utility.  To use this
	feature, insert the command "ENCODING mime" before the "FILE"
	command.  To decode the response(s), you will need "munpack" or
	a MIME-compliant mail reader.  Different MIME-compliant mail readers
	exhibit different behavior, especially when dealing with
	"multipart" MIME messages (i.e. documents which have been split
	up into multiple messages), so check your local documentation on
	how to manipulate these messages.

Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Multipart/Alternative; Boundary="OtherAccess"

--OtherAccess
Content-Type: Message/External-body;
	access-type="mail-server";
	server="mailserv@ietf.org"

Content-Type: text/plain
Content-ID:	<2007-11-14150746.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-imapext-i18n-13.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-imapext-i18n-13.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID:	<2007-11-14150746.I-D@ietf.org>

--OtherAccess--

--NextPart--



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAEHwmGj051099 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Nov 2007 10:58:48 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAEHwm32051098; Wed, 14 Nov 2007 10:58:48 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAEHwkWT051090 for <ietf-imapext@imc.org>; Wed, 14 Nov 2007 10:58:47 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <Rzs3UwBBVJ86@rufus.isode.com>; Wed, 14 Nov 2007 17:58:44 +0000
Message-ID: <473B3743.7060205@isode.com>
Date: Wed, 14 Nov 2007 17:58:27 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Mark Crispin <MRC@CAC.Washington.EDU>
CC: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: Updated IMAP I18N document
References: <473B16CF.7060600@isode.com> <alpine.WNT.0.99999.0711140754530.5152@Shimo-Tomobiki.Panda.COM>
In-Reply-To: <alpine.WNT.0.99999.0711140754530.5152@Shimo-Tomobiki.Panda.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Mark Crispin wrote:

> On Wed, 14 Nov 2007, Alexey Melnikov wrote:
>
>> 1). i;unicode-casemap is the mandatory to implement collation now. I 
>> also removed any requirements to implement i;octet or 
>> i;ascii-casemap, as there was no consensus to keep them.
>
> So how are i;octet and i;ascii-casemap referenced now?

They aren't. (i;octet is only references in the section which describes 
SEARCH behavior)

> I think that there should be some informative text to the effect that 
> the current IMAP specification specifies i;ascii-casemap, but that for 
> some time most servers have actually implemented i;unicode-casemap.  
> So there may be legacy servers that still do i;ascii-casemap.

Sure. If you suggest some text I will add it ;-).

> Since i;unicode-casemap references i;octet, that means that some form 
> of i;octet has to be implemented

True, but it doesn't have to be selectable using the COMPARATOR command.

> (if only as part of i;unicode-casemap). i;octet is basically memcmp() 
> with unsigned octets.
>
>> 3). Added the UNICASEMAP capability, which basically means support 
>> i;unicode-casemap + SEARCH behavior as described by the COMPARATOR 
>> extension.
>
> Also SORT and THREAD, correct?

Yes, that was the intent.
If you find that the new text is unclear, please let me know:

An IMAP server that implements the i;unicode-casemap comparator [UCM]
and satisfies all requirements specified in sections 4, 4.1 and 4.2
of this document, but doesn't implement the COMPARATOR command and
response, SHOULD advertise the UNICASEMAP capability in the CAPABILITY
response.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAEGO0n5040578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Nov 2007 09:24:00 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAEGO0dZ040577; Wed, 14 Nov 2007 09:24:00 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAEGNwLr040571 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Wed, 14 Nov 2007 09:23:59 -0700 (MST) (envelope-from MRC@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.141] (may be forged)) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAEGNvf2018757 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 14 Nov 2007 08:23:58 -0800
X-Auth-Received: from Shimo-Tomobiki.Panda.COM (panda.com [206.124.149.114]) (authenticated authid=mrc) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAEGNuTY025715 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Wed, 14 Nov 2007 08:23:57 -0800
Date: Wed, 14 Nov 2007 08:23:54 -0800
From: Mark Crispin <MRC@CAC.Washington.EDU>
To: Alexey Melnikov <alexey.melnikov@isode.com>
cc: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: Updated IMAP I18N document
In-Reply-To: <473B16CF.7060600@isode.com>
Message-ID: <alpine.WNT.0.99999.0711140754530.5152@Shimo-Tomobiki.Panda.COM>
References: <473B16CF.7060600@isode.com>
User-Agent: Alpine 0.99999 (WNT 813 2007-11-14)
Organization: Networks & Distributed Computing
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.14.80026
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0'
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

On Wed, 14 Nov 2007, Alexey Melnikov wrote:
> 1). i;unicode-casemap is the mandatory to implement collation now. I also 
> removed any requirements to implement i;octet or i;ascii-casemap, as there 
> was no consensus to keep them.

So how are i;octet and i;ascii-casemap referenced now?

I think that there should be some informative text to the effect that the 
current IMAP specification specifies i;ascii-casemap, but that for some 
time most servers have actually implemented i;unicode-casemap.  So there 
may be legacy servers that still do i;ascii-casemap.

Since i;unicode-casemap references i;octet, that means that some form of 
i;octet has to be implemented (if only as part of i;unicode-casemap). 
i;octet is basically memcmp() with unsigned octets.

> 3). Added the UNICASEMAP capability, which basically means support 
> i;unicode-casemap + SEARCH behavior as described by the COMPARATOR extension.

Also SORT and THREAD, correct?

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAEFjl5t036138 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Nov 2007 08:45:47 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAEFjlA5036137; Wed, 14 Nov 2007 08:45:47 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAEFjkQ3036131 for <ietf-imapext@imc.org>; Wed, 14 Nov 2007 08:45:47 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzsYKABBVAQP@rufus.isode.com>; Wed, 14 Nov 2007 15:45:45 +0000
Message-ID: <473B181F.6090502@isode.com>
Date: Wed, 14 Nov 2007 15:45:35 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Mark Crispin <MRC@CAC.Washington.EDU>
CC: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: error in draft-ietf-imapext-i18n-12.txt
References: <alpine.WNT.0.9999.0710091643120.5004@Tomobiki-Cho.CAC.Washignton.EDU>
In-Reply-To: <alpine.WNT.0.9999.0710091643120.5004@Tomobiki-Cho.CAC.Washignton.EDU>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Mark Crispin wrote:

> The word "presently" is used twice in this document.
>
> The English word "presently" means "soon"/"after a short time", as in 
> "I will wash the dishes presently."  The use of "presently" to mean 
> "currently" (which in context seems to be the intended meaning) is 
> American English slang and not accepted by all authorities.
>
> In the name of unambiguity and good diction, please change "presently" 
> to "currently" or "at present".  Thanks

I forgot to change this in -13, but this will be changed in -14.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAEFeBI7035692 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Nov 2007 08:40:11 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAEFeBgN035691; Wed, 14 Nov 2007 08:40:11 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAEFeANn035684 for <ietf-imapext@imc.org>; Wed, 14 Nov 2007 08:40:11 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzsW1wBBVK3U@rufus.isode.com>; Wed, 14 Nov 2007 15:40:08 +0000
Message-ID: <473B16CF.7060600@isode.com>
Date: Wed, 14 Nov 2007 15:39:59 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Updated IMAP I18N document
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

I've just posted -13, it should be announced in a couple of days. The 
following changes to the document were made:

1). i;unicode-casemap is the mandatory to implement collation now. I 
also removed any requirements to implement i;octet or i;ascii-casemap, 
as there was no consensus to keep them.

2). Updated text about use of collations in SEARCH/SORT/THREAD. This 
pretty much replaces section 4.2. Please review and let me know if you 
happy with the new text.

3). Added the UNICASEMAP capability, which basically means support 
i;unicode-casemap + SEARCH behavior as described by the COMPARATOR 
extension.

4). Updated references.

=======
Note that some other changes were discussed on the mailing list, but 
they will have to wait till -14.

Regards,
Alexey



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACJZFl0026050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Nov 2007 12:35:15 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lACJZFT8026049; Mon, 12 Nov 2007 12:35:15 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACJZDMl026043 for <ietf-imapext@imc.org>; Mon, 12 Nov 2007 12:35:14 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <Rziq7gBBVC3m@rufus.isode.com>; Mon, 12 Nov 2007 19:35:12 +0000
Message-ID: <4738AABA.5080401@isode.com>
Date: Mon, 12 Nov 2007 19:34:18 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Ned Freed <ned.freed@mrochek.com>
CC: Dan Karp <dkarp@zimbra.com>, Peter Coates <peter.coates@sun.com>, lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <1679890550.110521194650065847.JavaMail.root@dogfood.zimbra.com> <260231135.117501194665728404.JavaMail.root@dogfood.zimbra.com> <01MNJYDCJNVE00BDC1@mauve.mrochek.com>
In-Reply-To: <01MNJYDCJNVE00BDC1@mauve.mrochek.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Ned Freed wrote:

>>>>Why not just have ENABLE fail unless all the requested capabilities
>>>>are implemented and enable-able?  This would generally require waiting
>>>>until after authentication to call ENABLE, but I'm not even sure why
>>>>it's ever useful in the NOT AUTHENTICATED state...
>>>>        
>>>>
>>>Because clients can have have both features they require and features
>>>they can use if available. If things work this way a client would have
>>>to issue one ENABLE for the required stuff and then a separate ENABLE
>>>for each optional thing they can use.      
>>>
>>Why?  Authenticate, issue CAPABILITY (or get an unsolicited one from the
>>authentication step), check to see if it includes all the required
>>capabilities, and issue a single ENABLE containing all the capabilities
>>(required and desired) that you want to enable.    
>>
>One problem is that this presumes that enable will always succeed for anything
>that was previousliy listed as a capability. This strikes me as risky - there
>could be things where the server cannot tell there's  a problem enabling it
>until it actually goes through the steps of doing so.
>  
>
Can you think of an example when enabling would fail for any reason 
other than the feature not being supported?

>I strongly prefer a model where it is possible to check to see what's turned 
>on and what is not.
>
Agreed.
(The CAPABILITY response code works for that).




Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACHTDdO015064 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Nov 2007 10:29:13 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lACHTDqJ015063; Mon, 12 Nov 2007 10:29:13 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACHTBKJ015053 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Mon, 12 Nov 2007 10:29:12 -0700 (MST) (envelope-from mrc@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lACHT6gK031184 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 12 Nov 2007 09:29:06 -0800
X-Auth-Received: from pangtzu.panda.com (pangtzu.panda.com [206.124.149.117]) (authenticated authid=mrc) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lACHT5fF004184 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 12 Nov 2007 09:29:06 -0800
Date: Mon, 12 Nov 2007 09:29:04 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Alexey Melnikov <alexey.melnikov@isode.com>
cc: Ned Freed <ned.freed@mrochek.com>, lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
In-Reply-To: <47385714.6030506@isode.com>
Message-ID: <alpine.OSX.0.99999.0711120926070.23348@pangtzu.panda.com>
References: <01MNJYDCJNVE00BDC1@mauve.mrochek.com> <1441926969.141961194713882140.JavaMail.root@dogfood.zimbra.com> <01MNK37NMXWY00BDC1@mauve.mrochek.com> <47385714.6030506@isode.com>
User-Agent: Alpine 0.99999 (OSX 810 2007-11-10)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.12.91042
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0'
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

On Mon, 12 Nov 2007, Alexey Melnikov wrote:
> Many years ago, when I was still an IMAP client developer, I thought that the 
> CAPABILITY response is immutable for the duration of an IMAP connection (e.g. 
> before and after AUTHENTICATE/LOGIN). This doesn't seem to be the case in 
> real world now.

Nor was it ever the case.

> Many servers advertise different capabilities upon connection 
> (in the CAPABILITY response code) and after authentication.

Yes.

> However this is not explicitly defined in RFC 3501. It only says that the 
> list of capabilities can change after STARTTLS or AUTHENTICATE/LOGIN. RFC 
> 3501 is silent if the list of capabilities can change at any other moment.

I certainly hope not.  If it does, someone badly misdesigned something.

> The document is also silent on whether CAPABILITY responses/response codes 
> are additive or not (i.e. if * "CAPABILITY FOO" followed by "* CAPABILITY 
> BAR" is the same as "* CAPABILITY FOO BAR"). I think these things should be 
> clarified for the sake of existing and future client developers.

I hope that this question never comes up in real life; but I don't think 
that capabilities should be additive.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACDbwNW093468 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Nov 2007 06:37:58 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lACDbw13093466; Mon, 12 Nov 2007 06:37:58 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACDbuof093460 for <ietf-imapext@imc.org>; Mon, 12 Nov 2007 06:37:57 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzhXMgBBVI8P@rufus.isode.com>; Mon, 12 Nov 2007 13:37:55 +0000
Message-ID: <47385714.6030506@isode.com>
Date: Mon, 12 Nov 2007 13:37:24 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Ned Freed <ned.freed@mrochek.com>
CC: Dan Karp <dkarp@zimbra.com>, lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <01MNJYDCJNVE00BDC1@mauve.mrochek.com> <1441926969.141961194713882140.JavaMail.root@dogfood.zimbra.com> <01MNK37NMXWY00BDC1@mauve.mrochek.com>
In-Reply-To: <01MNK37NMXWY00BDC1@mauve.mrochek.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Ned Freed wrote:

>>>>That's about as simple as you can make it if some servers won't
>>>>return a full capability list until after authentication.        
>>>>
>>>Well, let's see. In your approach the client authenticates, sends a
>>>capability command, checks the result to make sure the stuff that's
>>>required is there, and then constructs a enable command depending
>>>on that response.
>>>
>>>In my approach the client authenticates and then sends the enable
>>>command followed by a capability command to see the results of the
>>>enable.
>>>
Ned, while I agree that your proposal is simpler (when I saw your 
message I was about to reply to Dan saying that he moved complexity from 
the server end to the client end), I have to agree with Dan that what 
you propose is not what existing mail clients do.

>>Yeah, but that's not how IMAP or CONDSTORE work.
>>
>
>We get to define how IMAP and CONDSTORE work.
>
We can redefine how IMAP works with new extensions, but I don't think we 
can change CONDSTORE now, as it is an RFC for more than a year now. (But 
we still can change QRESYNC, if needed)

>>If a server supports a capability, it must come back in a
>>post-authentication CAPABILITY response. 
>>
I agree with Dan. Note that this actually doesn't contradict what you've 
suggested.

>I quite simply disagree. This may be how things have been done in the past but
>it isn't necessarily how things need to work in the future.
>
Yes, we can change how this works, but I frankly don't think that the 
client should ask for the list of available capabilities yet again after 
issuing the ENABLE command.

Many years ago, when I was still an IMAP client developer, I thought 
that the CAPABILITY response is immutable for the duration of an IMAP 
connection (e.g. before and after AUTHENTICATE/LOGIN). This doesn't seem 
to be the case in real world now. Many servers advertise different 
capabilities upon connection (in the CAPABILITY response code) and after 
authentication.
However this is not explicitly defined in RFC 3501. It only says that 
the list of capabilities can change after STARTTLS or 
AUTHENTICATE/LOGIN. RFC 3501 is silent if the list of capabilities can 
change at any other moment. The document is also silent on whether 
CAPABILITY responses/response codes are additive or not (i.e. if * 
"CAPABILITY FOO" followed by "* CAPABILITY BAR" is the same as "* 
CAPABILITY FOO BAR"). I think these things should be clarified for the 
sake of existing and future client developers.

>>Not every client will support ENABLE.  When you have extensions like CONDSTORE
>>that can be enabled either explicitly via ENABLE or implicitly via certain
>>command arguments, a non-ENABLE-savvy client will have no idea that it can use
>>CONDSTORE.
>>    
>>
>
>Nothing prevents us from requiring ENABLE in order to use extensions that
>change command response syntax. In fact I think such a requirement would be a
>very good idea.
>
I agree with this statement. But I think this is an orthogonal issue to 
whether something needs to be advertised in the CAPABILITY response or not.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACDPLug092517 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Nov 2007 06:25:21 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lACDPLt8092516; Mon, 12 Nov 2007 06:25:21 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACDPKpl092510 for <ietf-imapext@imc.org>; Mon, 12 Nov 2007 06:25:20 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzhUPABBVEet@rufus.isode.com>; Mon, 12 Nov 2007 13:25:19 +0000
Message-ID: <4738541E.7060408@isode.com>
Date: Mon, 12 Nov 2007 13:24:46 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: ietf-imapext@imc.org
Subject: [Fwd: Request to discuss draft-ietf-imapext-i18n at the Lemonade WG         meeting in Vancouver]
Content-Type: multipart/mixed; boundary="------------000608020702030204090502"
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

--------------000608020702030204090502
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

I meant to send this to the IMAPEXT mailing list.


--------------000608020702030204090502
Content-Type: message/rfc822;
 name="Request to discuss draft-ietf-imapext-i18n at the Lemonade WG         meetingin Vancouver"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Request to discuss draft-ietf-imapext-i18n at the Lemonade WG         meetingin Vancouver"

Return-Path: <alexey.melnikov@isode.com>
Received: from rufus.isode.com ([62.3.217.251])
	by canine.isode.net (Isode M-Box/14.1v1) with LMTP; Mon, 12 Nov 2007 13:20:55 +0000 (GMT)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250]) 
          by rufus.isode.com (submission channel) via TCP with ESMTPA 
          id <RzhTNABBVLyI@rufus.isode.com>; Mon, 12 Nov 2007 13:20:54 +0000
Message-ID: <47385317.501@isode.com>
Date: Mon, 12 Nov 2007 13:20:23 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12)
            Gecko/20050915
X-Accept-Language: en-us, en
To: Lemonade WG <lemonade@ietf.org>, IMAP Mailing List <imap@u.washington.edu>
Subject: Request to discuss draft-ietf-imapext-i18n at the Lemonade WG
         meeting in Vancouver
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi everybody,

The IMAPEXT WG is not going to meet in Vancouver. Lemonade Profile Bis 
currently depends on draft-ietf-imapext-i18n (via LISTEXT and METADATA). 
Any objections to quickly discussing open issue with 
draft-ietf-imapext-i18n at the Lemonade WG meeting in Vancouver?

Regards,
Alexey


--------------000608020702030204090502--



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACDI2Jx091826 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Nov 2007 06:18:02 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lACDI2Qu091825; Mon, 12 Nov 2007 06:18:02 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACDI1df091819 for <ietf-imapext@imc.org>; Mon, 12 Nov 2007 06:18:02 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzhShwBBVINy@rufus.isode.com>; Mon, 12 Nov 2007 13:18:00 +0000
Message-ID: <4738526A.4030707@isode.com>
Date: Mon, 12 Nov 2007 13:17:30 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Arnt Gulbrandsen <arnt@oryx.com>
CC: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <D4lWhk9l/Lzk7eHKA9GvDg.md5@libertango.oryx.com> <47384D95.4050800@isode.com> <luXtAg7LN5PPeCaJqjaYRA.md5@libertango.oryx.com>
In-Reply-To: <luXtAg7LN5PPeCaJqjaYRA.md5@libertango.oryx.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Arnt Gulbrandsen wrote:

> Alexey Melnikov writes:
>
>> As it turned out we weren't. I though Peter disliked probing for 
>> available extensions using ENABLE, but he didn't. After reading this 
>> thread it looks like Ken and myself dislike probing, but I am not 
>> sure who else dislikes it.
>
> I dislike probing.
>
> My _personal_ preferences would be for an ENABLE which is usable only 
> after login, which can be used any time, but where all the examples 
> show it being used as part of connection startup. I'm neutral on 
> whether ENABLE CONDSTORE should fail on a CONDSTORE-ignorant server. 

I prefer that the server just ignores extensions that it doesn't 
recognize or which can't be enabled.
There are ways for the client to figure out which extensions were 
enabled and which were not.

> (I'm happy with the text there now, but it's not exactly what I would 
> have put in if it were only up to me.)




Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACDCAuC091243 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Nov 2007 06:12:10 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lACDCAa6091241; Mon, 12 Nov 2007 06:12:10 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from kalyani.oryx.com (kalyani.oryx.com [195.30.37.30]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACDC8AQ091235 for <ietf-imapext@imc.org>; Mon, 12 Nov 2007 06:12:09 -0700 (MST) (envelope-from arnt@oryx.com)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id 82C854AC2B; Mon, 12 Nov 2007 14:12:21 +0100 (CET)
Message-Id: <luXtAg7LN5PPeCaJqjaYRA.md5@libertango.oryx.com>
Date: Mon, 12 Nov 2007 14:12:48 +0100
From: Arnt Gulbrandsen <arnt@oryx.com>
To: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: Alexey Melnikov <alexey.melnikov@isode.com>
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <D4lWhk9l/Lzk7eHKA9GvDg.md5@libertango.oryx.com> <47384D95.4050800@isode.com>
In-Reply-To: <47384D95.4050800@isode.com>
Content-Type: text/plain; format=flowed
MIME-Version: 1.0
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Alexey Melnikov writes:
> As it turned out we weren't. I though Peter disliked probing for 
> available extensions using ENABLE, but he didn't. After reading this 
> thread it looks like Ken and myself dislike probing, but I am not 
> sure who else dislikes it.

I dislike probing.

My _personal_ preferences would be for an ENABLE which is usable only 
after login, which can be used any time, but where all the examples 
show it being used as part of connection startup. I'm neutral on 
whether ENABLE CONDSTORE should fail on a CONDSTORE-ignorant server. 
(I'm happy with the text there now, but it's not exactly what I would 
have put in if it were only up to me.)

Arnt



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACCvSi4089388 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Nov 2007 05:57:28 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lACCvSI3089387; Mon, 12 Nov 2007 05:57:28 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACCvROA089380 for <ietf-imapext@imc.org>; Mon, 12 Nov 2007 05:57:27 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzhNswBBVG-s@rufus.isode.com>; Mon, 12 Nov 2007 12:57:24 +0000
Message-ID: <47384D95.4050800@isode.com>
Date: Mon, 12 Nov 2007 12:56:53 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Arnt Gulbrandsen <arnt@oryx.com>
CC: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <D4lWhk9l/Lzk7eHKA9GvDg.md5@libertango.oryx.com>
In-Reply-To: <D4lWhk9l/Lzk7eHKA9GvDg.md5@libertango.oryx.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Arnt Gulbrandsen wrote:

> Alexey Melnikov writes:
>
>> Arnt Gulbrandsen wrote:
>>
>>>> I also don't like the fact that we're documenting that ENABLE can 
>>>> be used to probe for extensions (as per paragraph 2 in section 5).  
>>>> We already have a command to list extensions.
>>>
>>> I'm perfectly happy taking that out, if that would be appropriate. I 
>>> thought this sort of thing was supposed to be listed in security 
>>> considerations.
>>
>> Based on various off-list discussions I got impression that several 
>> people really disliked that.
>
> Are we talking about the same thing?

As it turned out we weren't. I though Peter disliked probing for 
available extensions using ENABLE, but he didn't.
After reading this thread it looks like Ken and myself dislike probing, 
but I am not sure who else dislikes it.

> I thought Peter referred to the security considerations, but now you 
> suggest changing something else.





Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACCrOOi088989 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Nov 2007 05:53:24 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lACCrOMb088988; Mon, 12 Nov 2007 05:53:24 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from kalyani.oryx.com (kalyani.oryx.com [195.30.37.30]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACCrNm1088978 for <ietf-imapext@imc.org>; Mon, 12 Nov 2007 05:53:24 -0700 (MST) (envelope-from arnt@oryx.com)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id 844E14ACC1; Mon, 12 Nov 2007 13:53:35 +0100 (CET)
Message-Id: <D4lWhk9l/Lzk7eHKA9GvDg.md5@libertango.oryx.com>
Date: Mon, 12 Nov 2007 13:54:02 +0100
From: Arnt Gulbrandsen <arnt@oryx.com>
To: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: Alexey Melnikov <alexey.melnikov@isode.com>
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com>
In-Reply-To: <473487D3.4020002@isode.com>
Content-Type: text/plain; format=flowed
MIME-Version: 1.0
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Alexey Melnikov writes:
> Arnt Gulbrandsen wrote:
>
>>> I also don't like the fact that we're documenting that ENABLE can be 
>>> used to probe for extensions (as per paragraph 2 in section 5).  We 
>>> already have a command to list extensions.
>>
>> I'm perfectly happy taking that out, if that would be appropriate. I 
>> thought this sort of thing was supposed to be listed in security 
>> considerations.
>
> Based on various off-list discussions I got impression that several 
> people really disliked that.

Are we talking about the same thing? I thought Peter referred to the 
security considerations, but now you suggest changing something else.

Arnt



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAAIunHe026127 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 10 Nov 2007 11:56:49 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAAIunis026126; Sat, 10 Nov 2007 11:56:49 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAAIuj0L026120 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Sat, 10 Nov 2007 11:56:48 -0700 (MST) (envelope-from mrc@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAAIuh21002149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 10 Nov 2007 10:56:43 -0800
X-Auth-Received: from pangtzu.panda.com (pangtzu.panda.com [206.124.149.117]) (authenticated authid=mrc) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAAIufdg013399 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 10 Nov 2007 10:56:42 -0800
Date: Sat, 10 Nov 2007 10:56:40 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Ned Freed <ned.freed@mrochek.com>
cc: Dan Karp <dkarp@zimbra.com>, lemonade@ietf.org, ietf-imapext@imc.org, Peter Coates <peter.coates@sun.com>, Alexey Melnikov <alexey.melnikov@isode.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
In-Reply-To: <01MNK37NMXWY00BDC1@mauve.mrochek.com>
Message-ID: <alpine.OSX.0.99999.0711101039240.23348@pangtzu.panda.com>
References: <01MNJYDCJNVE00BDC1@mauve.mrochek.com> <1441926969.141961194713882140.JavaMail.root@dogfood.zimbra.com> <01MNK37NMXWY00BDC1@mauve.mrochek.com>
User-Agent: Alpine 0.99999 (OSX 810 2007-11-10)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.10.102925
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_NAME_BODY 0, __CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0'
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

On Sat, 10 Nov 2007, Ned Freed wrote:
> We get to define how IMAP and CONDSTORE work.

Slight note of unpleasant reality:

IMAP is a very large and complex protocol, even at its base level.  It is 
difficult to implement correctly; and fewer people are trying.

The IMAP client world is dominated by programs such as Outlook and 
Thunderbird, which use only a tiny fraction of the base specification 
facilities and (with the possible exception of UIDPLUS) none of the 
extensions.

The IMAP server world is being taken over by Exchange and GMail, neither 
of which implement more than a fraction (as in one or two) of the current 
set of extensions.  What's more, Exchange's implementation of the base 
specification is buggy, and GMail's implementation of the base 
specification is incomplete.  There are numerous other servers which have 
incomplete and/or incorrect implementations of the base specification, and 
it gets worse when you get to extensions.

Pine/Alpine is rapidly becoming less viable in the world, not because it 
is text based but because it depends upon servers that offer full and 
correct implementation of the base specification and of any extensions.

I am currently fighting a losing battle on deployment of [censored] server 
which does not correctly implement IMAP (and thus breaks Pine/Alpine) with 
the counter-argument being "it works fine for Outlook and Thunderbird."

That's right, boys and girls, you (meaning the IETF) are no longer 
defining IMAP.  Microsoft, Mozilla, Google, etc. are who defines IMAP 
today.  They may pay lip service to your definition, but they ignore it in 
real life.

It bewilders me that you are still talking about making IMAP large and 
more complex.  Do you really think that the tide is going to be turned 
back?

I now return you back to your fascinating discussion.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAAGwAc6017842 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 10 Nov 2007 09:58:10 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAAGwAhO017841; Sat, 10 Nov 2007 09:58:10 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mta01.zimbra.com (mta01.zimbra.com [77.67.121.29]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAAGw9wr017833 for <ietf-imapext@imc.org>; Sat, 10 Nov 2007 09:58:09 -0700 (MST) (envelope-from dkarp@zimbra.com)
Received: from dogfood.zimbra.com (dsl092-025-198.sfo1.dsl.speakeasy.net [66.92.25.198]) by mta01.zimbra.com (Postfix) with ESMTP id 65D03DE842F; Sat, 10 Nov 2007 08:58:09 -0800 (PST)
Received: from localhost (localhost.localdomain [127.0.0.1]) by dogfood.zimbra.com (Postfix) with ESMTP id 36A5F1D5585; Sat, 10 Nov 2007 08:58:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at dogfood.zimbra.com
Received: from dogfood.zimbra.com ([127.0.0.1]) by localhost (dogfood.zimbra.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cCbUtdsC3C7E; Sat, 10 Nov 2007 08:58:02 -0800 (PST)
Received: from dogfood.zimbra.com (localhost.localdomain [127.0.0.1]) by dogfood.zimbra.com (Postfix) with ESMTP id 6EF2E1D5581; Sat, 10 Nov 2007 08:58:02 -0800 (PST)
Date: Sat, 10 Nov 2007 08:58:02 -0800 (PST)
From: Dan Karp <dkarp@zimbra.com>
To: Ned Freed <ned.freed@mrochek.com>
Cc: Ned Freed <ned.freed@mrochek.com>, Peter Coates <peter.coates@Sun.COM>, lemonade@ietf.org, ietf-imapext@imc.org, Alexey Melnikov <alexey.melnikov@isode.com>
Message-ID: <1441926969.141961194713882140.JavaMail.root@dogfood.zimbra.com>
In-Reply-To: <01MNJYDCJNVE00BDC1@mauve.mrochek.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [70.130.132.81]
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

> > That's about as simple as you can make it if some servers won't
> > return a full capability list until after authentication.
> 
> Well, let's see. In your approach the client authenticates, sends a
> capability command, checks the result to make sure the stuff that's
> required is there, and then constructs a enable command depending
> on that response.
> 
> In my approach the client authenticates and then sends the enable
> command followed by a capability command to see the results of the
> enable.

Yeah, but that's not how IMAP or CONDSTORE work.  If a server supports a capability, it must come back in a post-authentication CAPABILITY response.  Not every client will support ENABLE.  When you have extensions like CONDSTORE that can be enabled either explicitly via ENABLE or implicitly via certain command arguments, a non-ENABLE-savvy client will have no idea that it can use CONDSTORE.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAADs8B9002612 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 10 Nov 2007 06:54:08 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAADs8KD002611; Sat, 10 Nov 2007 06:54:08 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from dovecot.org (dovecot.org [82.118.211.50]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAADs6sT002603 for <ietf-imapext@imc.org>; Sat, 10 Nov 2007 06:54:07 -0700 (MST) (envelope-from tss@iki.fi)
Received: from [192.168.10.2] (82-203-162-146.dsl.gohome.fi [82.203.162.146]) by dovecot.org (Postfix) with ESMTP id 4BC99FA8A68; Sat, 10 Nov 2007 15:54:03 +0200 (EET)
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
From: Timo Sirainen <tss@iki.fi>
To: Dan Karp <dkarp@zimbra.com>
Cc: Peter Coates <peter.coates@Sun.COM>, lemonade@ietf.org, ietf-imapext@imc.org, Alexey Melnikov <alexey.melnikov@isode.com>, Arnt Gulbrandsen <arnt@oryx.com>
In-Reply-To: <90089910.86811194630213289.JavaMail.root@dogfood.zimbra.com>
References: <90089910.86811194630213289.JavaMail.root@dogfood.zimbra.com>
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-7On8w524wMwiKs5SaFt3"
Date: Sat, 10 Nov 2007 15:54:02 +0200
Message-Id: <1194702842.25921.939.camel@hurina>
Mime-Version: 1.0
X-Mailer: Evolution 2.12.0 
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

--=-7On8w524wMwiKs5SaFt3
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Fri, 2007-11-09 at 09:43 -0800, Dan Karp wrote:
> I think that we're unnecessarily complicating a fundamentally simple
> idea.  Why not just have ENABLE fail unless all the requested
> capabilities are implemented and enable-able?  This would generally
> require waiting until after authentication to call ENABLE, but I'm not
> even sure why it's ever useful in the NOT AUTHENTICATED state...

I'd really like if it worked only after authentication. I think NOT
AUTHENTICATED state should be as simple as possible. The user is still
untrusted at that point, so the less features server needs to worry
about at that point, the less chances there are for bugs/security holes.


--=-7On8w524wMwiKs5SaFt3
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBHNbf6yUhSUUBViskRApg6AKCBIxzVS4mJmhmEfMxCoMizI1qn6gCgiZVH
sJdkuJg+zHMg7cqt62gxa/I=
=HLxP
-----END PGP SIGNATURE-----

--=-7On8w524wMwiKs5SaFt3--



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAA3ZcHs063492 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Nov 2007 20:35:38 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAA3ZcLf063491; Fri, 9 Nov 2007 20:35:38 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mta01.zimbra.com (mta01.zimbra.com [77.67.121.29]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAA3ZaJ9063485 for <ietf-imapext@imc.org>; Fri, 9 Nov 2007 20:35:37 -0700 (MST) (envelope-from dkarp@zimbra.com)
Received: from dogfood.zimbra.com (dogfood.zimbra.com [10.10.130.20]) by mta01.zimbra.com (Postfix) with ESMTP id 861B4DE8E4C; Fri,  9 Nov 2007 19:35:36 -0800 (PST)
Received: from localhost (localhost.localdomain [127.0.0.1]) by dogfood.zimbra.com (Postfix) with ESMTP id 53EC21D5571; Fri,  9 Nov 2007 19:35:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at dogfood.zimbra.com
Received: from dogfood.zimbra.com ([127.0.0.1]) by localhost (dogfood.zimbra.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QWev1XetcJeF; Fri,  9 Nov 2007 19:35:28 -0800 (PST)
Received: from dogfood.zimbra.com (localhost.localdomain [127.0.0.1]) by dogfood.zimbra.com (Postfix) with ESMTP id 7E6891D5574; Fri,  9 Nov 2007 19:35:28 -0800 (PST)
Date: Fri, 9 Nov 2007 19:35:28 -0800 (PST)
From: Dan Karp <dkarp@zimbra.com>
To: Ned Freed <ned.freed@mrochek.com>
Cc: Peter Coates <peter.coates@Sun.COM>, lemonade@ietf.org, ietf-imapext@imc.org, Alexey Melnikov <alexey.melnikov@isode.com>
Message-ID: <260231135.117501194665728404.JavaMail.root@dogfood.zimbra.com>
In-Reply-To: <1679890550.110521194650065847.JavaMail.root@dogfood.zimbra.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [70.130.132.81]
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

> > Why not just have ENABLE fail unless all the requested capabilities
> > are implemented and enable-able?  This would generally require waiting
> > until after authentication to call ENABLE, but I'm not even sure why
> > it's ever useful in the NOT AUTHENTICATED state...
> 
> Because clients can have have both features they require and features
> they can use if available. If things work this way a client would have
> to issue one ENABLE for the required stuff and then a separate ENABLE
> for each optional thing they can use.

Why?  Authenticate, issue CAPABILITY (or get an unsolicited one from the authentication step), check to see if it includes all the required capabilities, and issue a single ENABLE containing all the capabilities (required and desired) that you want to enable.

That's about as simple as you can make it if some servers won't return a full capability list until after authentication.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA9J46Uv031193 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Nov 2007 12:04:06 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA9J46XT031192; Fri, 9 Nov 2007 12:04:06 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA9J44EV031183 for <ietf-imapext@imc.org>; Fri, 9 Nov 2007 12:04:05 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzSvIQAnN7KU@rufus.isode.com>; Fri, 9 Nov 2007 19:04:03 +0000
Message-ID: <4734AEF8.4090201@isode.com>
Date: Fri, 09 Nov 2007 19:03:20 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Peter Coates <peter.coates@sun.com>
CC: "'Arnt Gulbrandsen'" <arnt@oryx.com>, lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <01a601c822f5$7c13bf60$743b3e20$%coates@sun.com>
In-Reply-To: <01a601c822f5$7c13bf60$743b3e20$%coates@sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Peter Coates wrote:

>What?  If Enabling an extension does not affect the CAPABILITY vector, and
>if the ENABLE command silenty ignores extensions the server does not want to
>allow or which it does not know, then after the sequence
>
> C: t1 CAPABILITY
> S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
> S: t1 OK foo
> C: t2 ENABLE CONDSTORE X-GOOD-IDEA
> S: t2 OK foo
>
>the client does not know whether CONDSTORE is enabled or not.
>
>I assert that either the enable command has to tell the client which things worked (or
>which things didn't), or the capability vector has to change
>  
>
Agreed, but this can (and I think should) be done in a way which doesn't 
contradict text I've suggested. See below.

>Thus the sequence should be either
> C: t1 CAPABILITY
> S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
> S: t1 OK foo
> C: t2 ENABLE CONDSTORE X-GOOD-IDEA
> S: t2 OK foo
> C: t3 CAPABILITY
> S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
>CONDSTORE
> S: t3 OK foo again
>  
>
I dislike that, because you now implicitly saying that there are magic 
extensions which don't work unless the client knows how to enable them. 
Really, the server should have advertised the CONDSTORE extension to 
begin with.

>Or
> C: t1 CAPABILITY
> S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
> S: t1 OK foo
> C: t2 ENABLE CONDSTORE X-GOOD-IDEA
> S: * OK [ENABLED CONDSTORE] or some variant of this
>  
>
(Or just use the CAPABILITY response code: it serves the same purpose + 
can save a round trip in this case.)

So if you insist on being able to change the capability list, it is much 
better to return the updated list using the CAPABILITY response code. 
Clients should already be able to handle unsolicited updates, in 
particular because the CAPABILITY response code payload frequently 
changes after LOGIN/AUTHENTICATE.
This allows the client to figure out if an extension can be enabled 
after all.

> S: t2 OK foo
> C: t3 CAPABILITY
> S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
> S: t3 OK foo again
>  
>
>Peter
>
>
>-----Original Message-----
>From: owner-ietf-imapext@mail.imc.org
>[mailto:owner-ietf-imapext@mail.imc.org] On Behalf Of Alexey Melnikov
>Sent: November 9, 2007 08:16
>To: Arnt Gulbrandsen
>Cc: lemonade@ietf.org; ietf-imapext@imc.org
>Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
>
>
>Arnt Gulbrandsen wrote:
>  
>
>>>I also don't like the fact that we're documenting that ENABLE can be 
>>>used to probe for extensions (as per paragraph 2 in section 5).  We 
>>>already have a command to list extensions.
>>>      
>>>
>>I'm perfectly happy taking that out, if that would be appropriate. I 
>>thought this sort of thing was supposed to be listed in security 
>>considerations.
>>    
>>
>Based on various off-list discussions I got impression that several 
>people really disliked that.
>So I am suggesting the following change:
>
>Replace:
> The server MUST NOT change the CAPABILITY list as a result of
> executing ENABLE.
>
>With:
> The server MUST NOT change the CAPABILITY list as a result of
> executing ENABLE, i.e. a CAPABILITY command issued right after
> an ENABLE command MUST list the same capabilities as a CAPABILITY
> command issued before the ENABLE command. The following example
> demonstrates that:
> 
> C: t1 CAPABILITY
> S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
> S: t1 OK foo
> C: t2 ENABLE CONDSTORE X-GOOD-IDEA
> S: t2 OK foo
> C: t3 CAPABILITY
> S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
> S: t3 OK foo again
> 
>and also add:
> 
> Note that according to [RFC3501] the list of advertised capabilities MAY
> change after a STARTTLS and/or AUTHENTICATE/LOGIN command. The ENABLE 
> command doesn't change that.
>  
>



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA9HhfKv023879 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Nov 2007 10:43:41 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA9Hhfnk023878; Fri, 9 Nov 2007 10:43:41 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mta01.zimbra.com (mta01.zimbra.com [77.67.121.29]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA9HhePM023871 for <ietf-imapext@imc.org>; Fri, 9 Nov 2007 10:43:40 -0700 (MST) (envelope-from dkarp@zimbra.com)
Received: from dogfood.zimbra.com (dsl092-025-198.sfo1.dsl.speakeasy.net [66.92.25.198]) by mta01.zimbra.com (Postfix) with ESMTP id 17C7CDE9324; Fri,  9 Nov 2007 09:43:40 -0800 (PST)
Received: from localhost (localhost.localdomain [127.0.0.1]) by dogfood.zimbra.com (Postfix) with ESMTP id B39601D5571; Fri,  9 Nov 2007 09:43:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at dogfood.zimbra.com
Received: from dogfood.zimbra.com ([127.0.0.1]) by localhost (dogfood.zimbra.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TYO08Jbmgy7z; Fri,  9 Nov 2007 09:43:33 -0800 (PST)
Received: from dogfood.zimbra.com (localhost.localdomain [127.0.0.1]) by dogfood.zimbra.com (Postfix) with ESMTP id 70E861D5572; Fri,  9 Nov 2007 09:43:33 -0800 (PST)
Date: Fri, 9 Nov 2007 09:43:33 -0800 (PST)
From: Dan Karp <dkarp@zimbra.com>
To: Peter Coates <peter.coates@sun.com>
Cc: lemonade@ietf.org, ietf-imapext@imc.org, Alexey Melnikov <alexey.melnikov@isode.com>, Arnt Gulbrandsen <arnt@oryx.com>
Message-ID: <90089910.86811194630213289.JavaMail.root@dogfood.zimbra.com>
In-Reply-To: <1680368567.86531194630050060.JavaMail.root@dogfood.zimbra.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [70.130.132.81]
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

> I assert that either the enable command has to tell the client which
> things worked (or which things didn't), or the capability vector has
> to change.

I think that we're unnecessarily complicating a fundamentally simple idea.  Why not just have ENABLE fail unless all the requested capabilities are implemented and enable-able?  This would generally require waiting until after authentication to call ENABLE, but I'm not even sure why it's ever useful in the NOT AUTHENTICATED state...

I'm told that the "ignore unknown capabilities" behavior was added so one client author could use a static ENABLE request, but simpler is probably better here.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA9HQKQT022459 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Nov 2007 10:26:20 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA9HQK8t022458; Fri, 9 Nov 2007 10:26:20 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from brmea-mail-3.sun.com (brmea-mail-3.Sun.COM [192.18.98.34]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA9HQHTX022446 for <ietf-imapext@imc.org>; Fri, 9 Nov 2007 10:26:18 -0700 (MST) (envelope-from peter.coates@sun.com)
Received: from fe-amer-10.sun.com ([192.18.109.80]) by brmea-mail-3.sun.com (8.13.6+Sun/8.12.9) with ESMTP id lA9HQHeh012185 for <ietf-imapext@imc.org>; Fri, 9 Nov 2007 17:26:17 GMT
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JR90060119K1Z00@mail-amer.sun.com> (original mail from peter.coates@sun.com) for ietf-imapext@imc.org; Fri, 09 Nov 2007 10:26:17 -0700 (MST)
Received: from kluane ([199.247.229.42]) by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JR9009D11QLJL50@mail-amer.sun.com>; Fri, 09 Nov 2007 10:26:06 -0700 (MST)
Date: Fri, 09 Nov 2007 09:24:40 -0800
From: Peter Coates <peter.coates@sun.com>
Subject: RE: [lemonade] draft-gulbrandsen-imap-enable-03
In-reply-to: <473487D3.4020002@isode.com>
To: "'Alexey Melnikov'" <alexey.melnikov@isode.com>, "'Arnt Gulbrandsen'" <arnt@oryx.com>
Cc: lemonade@ietf.org, ietf-imapext@imc.org
Message-id: <01a601c822f5$7c13bf60$743b3e20$%coates@sun.com>
MIME-version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Content-type: text/plain; charset=us-ascii
Content-language: en-ca
Content-transfer-encoding: 7BIT
Thread-index: Acgi7mapDZxScV0TRK6OP6mgBJ9ZmQAAWyYQ
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com>
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

What?  If Enabling an extension does not affect the CAPABILITY vector, and
if the ENABLE command silenty ignores extensions the server does not wan to
allow or which it doe not know, then after the sequence

 C: t1 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
 S: t1 OK foo
 C: t2 ENABLE CONDSTORE X-GOOD-IDEA
 S: t2 OK foo

the client does not know whether CONDSTORE is enabled or not.  I assert that
either the enable command has to tell the client which things worked (or
which things didn't), or the capability vector has to change

Thus the sequence should be either
 C: t1 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
 S: t1 OK foo
 C: t2 ENABLE CONDSTORE X-GOOD-IDEA
 S: t2 OK foo
 C: t3 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
CONDSTORE
 S: t3 OK foo again

Or
 C: t1 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
 S: t1 OK foo
 C: t2 ENABLE CONDSTORE X-GOOD-IDEA
 S: * OK [ENABLED CONDSTORE] or some variant of this
 S: t2 OK foo
 C: t3 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
 S: t3 OK foo again

Peter


-----Original Message-----
From: owner-ietf-imapext@mail.imc.org
[mailto:owner-ietf-imapext@mail.imc.org] On Behalf Of Alexey Melnikov
Sent: November 9, 2007 08:16
To: Arnt Gulbrandsen
Cc: lemonade@ietf.org; ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03


Arnt Gulbrandsen wrote:

>> I also don't like the fact that we're documenting that ENABLE can be 
>> used to probe for extensions (as per paragraph 2 in section 5).  We 
>> already have a command to list extensions.
>
> I'm perfectly happy taking that out, if that would be appropriate. I 
> thought this sort of thing was supposed to be listed in security 
> considerations.

Based on various off-list discussions I got impression that several 
people really disliked that.
So I am suggesting the following change:

Replace:
 The server MUST NOT change the CAPABILITY list as a result of
 executing ENABLE.

With:
 The server MUST NOT change the CAPABILITY list as a result of
 executing ENABLE, i.e. a CAPABILITY command issued right after
 an ENABLE command MUST list the same capabilities as a CAPABILITY
 command issued before the ENABLE command. The following example
 demonstrates that:
 
 C: t1 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
 S: t1 OK foo
 C: t2 ENABLE CONDSTORE X-GOOD-IDEA
 S: t2 OK foo
 C: t3 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
 S: t3 OK foo again
 
and also add:
 
 Note that according to [RFC3501] the list of advertised capabilities MAY
 change after a STARTTLS and/or AUTHENTICATE/LOGIN command. The ENABLE 
command
 doesn't change that.




Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA9GGtna015108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Nov 2007 09:16:55 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA9GGt9P015107; Fri, 9 Nov 2007 09:16:55 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA9GGrjM015099 for <ietf-imapext@imc.org>; Fri, 9 Nov 2007 09:16:54 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzSH8wAnNyZW@rufus.isode.com>; Fri, 9 Nov 2007 16:16:52 +0000
Message-ID: <473487D3.4020002@isode.com>
Date: Fri, 09 Nov 2007 16:16:19 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Arnt Gulbrandsen <arnt@oryx.com>
CC: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com>
In-Reply-To: <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Arnt Gulbrandsen wrote:

>> I also don't like the fact that we're documenting that ENABLE can be 
>> used to probe for extensions (as per paragraph 2 in section 5).  We 
>> already have a command to list extensions.
>
> I'm perfectly happy taking that out, if that would be appropriate. I 
> thought this sort of thing was supposed to be listed in security 
> considerations.

Based on various off-list discussions I got impression that several 
people really disliked that.
So I am suggesting the following change:

Replace:
 The server MUST NOT change the CAPABILITY list as a result of
 executing ENABLE.

With:
 The server MUST NOT change the CAPABILITY list as a result of
 executing ENABLE, i.e. a CAPABILITY command issued right after
 an ENABLE command MUST list the same capabilities as a CAPABILITY
 command issued before the ENABLE command. The following example
 demonstrates that:
 
 C: t1 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
 S: t1 OK foo
 C: t2 ENABLE CONDSTORE X-GOOD-IDEA
 S: t2 OK foo
 C: t3 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
 S: t3 OK foo again
 
and also add:
 
 Note that according to [RFC3501] the list of advertised capabilities MAY
 change after a STARTTLS and/or AUTHENTICATE/LOGIN command. The ENABLE 
command
 doesn't change that.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA72N1Cv037572 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 6 Nov 2007 19:23:02 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA72N16k037571; Tue, 6 Nov 2007 19:23:01 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from ithilien.qualcomm.com (ithilien.qualcomm.com [129.46.51.59]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA72N0QS037564 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Tue, 6 Nov 2007 19:23:01 -0700 (MST) (envelope-from randy@qualcomm.com)
Received: from neophyte.qualcomm.com (neophyte.qualcomm.com [129.46.61.149]) by ithilien.qualcomm.com (8.13.6/8.12.5/1.0) with ESMTP id lA72MwrQ019958 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 6 Nov 2007 18:22:58 -0800
Received: from [192.168.1.13] (vpn-10-50-16-40.qualcomm.com [10.50.16.40]) by neophyte.qualcomm.com (8.13.6/8.13.6/1.0) with ESMTP id lA72MuPp032004; Tue, 6 Nov 2007 18:22:57 -0800
Mime-Version: 1.0
Message-Id: <p06240603c356d0aef899@[192.168.1.13]>
In-Reply-To: <JfnQwso3qD0ZzN8bP+nR+Q.md5@libertango.oryx.com>
References: <472B04FD.9020100@andrew.cmu.edu> <472B090D.1060303@andrew.cmu.edu> <JfnQwso3qD0ZzN8bP+nR+Q.md5@libertango.oryx.com>
X-Mailer: Eudora for Mac OS X
X-message-flag: Warning: Outlook in use.  Upgrade to Eudora: <http://www.eudora.com>
Date: Tue, 6 Nov 2007 18:20:52 -0800
To: Arnt Gulbrandsen <arnt@oryx.com>, lemonade@ietf.org, ietf-imapext@imc.org
From: Randall Gellens <randy@qualcomm.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Random-Sig-Tag: 1.0b28
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

At 11:50 AM +0100 11/4/07, Arnt Gulbrandsen wrote:

>  If so, then a server handling unauthenticated connections would 
> have to know what capabilities will be available to that user after 
> authentication.

I think it is worth mentioning this in the draft, as a clarification 
for the response not indicating which capabilities were/will be 
enabled.  It'll save readers wondering about it.

>
>>  What is the final result of the command?
>
>  'ENABLE CONDSTORE' before authentication has no immediate effect. 
> It takes effect only after authentication, at which point it has 
> acted as a 'condstore enabling command'.

This also is worth mentioning in the draft.

In the case of CONDSTORE, the server could internally enable it right 
away; it just won't have any effect until after a mailbox is 
selected, which can't be until after authentication.
-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly-selected tag: ---------------
Good night to spend with family, but avoid arguments with your
mate's new lover.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA4AoBnO011728 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 4 Nov 2007 03:50:11 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA4AoBCm011727; Sun, 4 Nov 2007 03:50:11 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from kalyani.oryx.com (kalyani.oryx.com [195.30.37.30]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA4AoA9N011720 for <ietf-imapext@imc.org>; Sun, 4 Nov 2007 03:50:10 -0700 (MST) (envelope-from arnt@oryx.com)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id B10FB4AC9A; Sun,  4 Nov 2007 11:50:26 +0100 (CET)
Message-Id: <JfnQwso3qD0ZzN8bP+nR+Q.md5@libertango.oryx.com>
Date: Sun, 4 Nov 2007 11:50:33 +0100
From: Arnt Gulbrandsen <arnt@oryx.com>
To: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: Ken Murchison <murch@andrew.cmu.edu>
References: <472B04FD.9020100@andrew.cmu.edu> <472B090D.1060303@andrew.cmu.edu>
In-Reply-To: <472B090D.1060303@andrew.cmu.edu>
Content-Type: text/plain; format=flowed
MIME-Version: 1.0
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Ken Murchison writes:
> One more thing:
>
> What is supposed to happen if a client does 'ENABLE CONDSTORE THREAD' 
> on a server that supports both extensions?

BAD if the server is careful, because THREAD isn't ENABLE-ish.

> Should we use untagged OK responses to tell the client which 
> extensions were enabled?

If so, then a server handling unauthenticated connections would have to 
know what capabilities will be available to that user after 
authentication.

> What is the final result of the command?

'ENABLE CONDSTORE' before authentication has no immediate effect. It 
takes effect only after authentication, at which point it has acted as 
a 'condstore enabling command'.

Arnt



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA4AimsL011262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 4 Nov 2007 03:44:48 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA4AimAv011261; Sun, 4 Nov 2007 03:44:48 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from kalyani.oryx.com (kalyani.oryx.com [195.30.37.30]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA4Aii7n011216 for <ietf-imapext@imc.org>; Sun, 4 Nov 2007 03:44:47 -0700 (MST) (envelope-from arnt@oryx.com)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id 7B8744AC9A; Sun,  4 Nov 2007 11:45:00 +0100 (CET)
Message-Id: <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com>
Date: Sun, 4 Nov 2007 11:45:06 +0100
From: Arnt Gulbrandsen <arnt@oryx.com>
To: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: Ken Murchison <murch@andrew.cmu.edu>
References: <472B04FD.9020100@andrew.cmu.edu>
In-Reply-To: <472B04FD.9020100@andrew.cmu.edu>
Content-Type: text/plain; format=flowed
MIME-Version: 1.0
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Ken Murchison writes:
> After looking at the current draft on my way towards implementing 
> QRESYNC, I'm wondering why ENABLE is allowed to be used blindly.  I 
> don't see any reason why ENABLE should be allowed before the client 
> knows that a particular extension is supported (via CAPABILITY).

Two reasons.

1. It allows the client to use a single invariant enable command. The 
client doesn't have to do any string concatenation, it can just do "if 
( server supports enable ) send its enable command".

2. It allows the client to send a single enable command early, even 
though the server it's talking to (before authentication) may not even 
know the complete list of capabilities that will be available after 
authentication.

People asked for both of these properties.

> In particular, the second example in section 3 seems strange to me, 
> and AFAICT, doing ENABLE before CAPABILITY doesn't gain anything in 
> terms of round trips.

That's right.

> I also don't like the fact that we're documenting that ENABLE can be 
> used to probe for extensions (as per paragraph 2 in section 5).  We 
> already have a command to list extensions.

I'm perfectly happy taking that out, if that would be appropriate. I 
thought this sort of thing was supposed to be listed in security 
considerations.

> If we specify that a client MUST NOT try to enable an extension that 
> isn't listed by CAPABILITY, then all the server has to worry about 
> parsing are those extensions that it supports and are enable-able. 
> Trying to ENABLE any other other extensions, whether unknown, 
> unenable-able, or unsupported can all result in BAD.

Please discuss that with Peter Coates.

Arnt



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA2FGxYh045755 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 Nov 2007 08:16:59 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA2FGxfk045754; Fri, 2 Nov 2007 08:16:59 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from brmea-mail-3.sun.com (brmea-mail-3.Sun.COM [192.18.98.34]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA2FGw2o045745 for <ietf-imapext@imc.org>; Fri, 2 Nov 2007 08:16:58 -0700 (MST) (envelope-from peter.coates@sun.com)
Received: from fe-amer-09.sun.com ([192.18.109.79]) by brmea-mail-3.sun.com (8.13.6+Sun/8.12.9) with ESMTP id lA2FGw6j006634 for <ietf-imapext@imc.org>; Fri, 2 Nov 2007 15:16:58 GMT
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JQV00G01WCM9G00@mail-amer.sun.com> (original mail from peter.coates@sun.com) for ietf-imapext@imc.org; Fri, 02 Nov 2007 09:16:58 -0600 (MDT)
Received: from kluane ([129.150.37.23]) by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JQV00I7SX3XEM90@mail-amer.sun.com>; Fri, 02 Nov 2007 09:16:46 -0600 (MDT)
Date: Fri, 02 Nov 2007 08:16:20 -0700
From: Peter Coates <peter.coates@sun.com>
Subject: RE: draft-gulbrandsen-imap-enable-03
In-reply-to: <472B04FD.9020100@andrew.cmu.edu>
To: "'Ken Murchison'" <murch@andrew.cmu.edu>, lemonade@ietf.org, "'IMAP Extensions WG'" <ietf-imapext@imc.org>
Message-id: <013f01c81d63$53778a10$fa669e30$%coates@sun.com>
MIME-version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Content-type: text/plain; charset=us-ascii
Content-language: en-ca
Content-transfer-encoding: 7BIT
Thread-index: AcgdQ4Yb1/MCvpl2Sh6JSH6CxQYciQAHJ3Gw
References: <472B04FD.9020100@andrew.cmu.edu>
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Let's consider ENABLE and QRESYNC.

Is the QRESYNC capability is in effect for a session, the responses sent by
the server are different from those that would otherwise be sent.  VANISHED
instead of EXPUNGED, for instance.  So, it is important that the server not
use QRESYNC features until told to by the client.

I am really against any extension that can change the protocol during the
life of the session.  I would like to see the protocol negotiated at the
start of the session.

Thus, the server does not advertise QRESYNC initially.  If the client issues
an ENABLE command, and then issues a CAPABILITY command it can try to turn
on the feature and see if the server supported it.

S: * OK [CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS
CHILDREN 
   BINARY UNSELECT SORT IDLE URLAUTH LANGUAGE ESEARCH THREAD=ORDEREDSUBJECT 
   THREAD=REFERENCES CONDSTORE ENABLE CONTEXT WITHIN XSENDER X-NETSCAPE
XSERVERINFO
   X-SUN-SORT ANNOTATE-EXPERIMENT-1 X-UNAUTHENTICATE X-SUN-IMAP
X-ANNOTATEMORE XUM1
   AUTH=PLAIN] sandman.red.iplanet.com IMAP4 service (Sun Java(tm) System
Messaging
   Server 7.0-0.01 32bit (built Oct 26 2007))
C: 1 login YYYYY XXXXX
S: 1 OK User logged in
C: 2 enable qresync foobar
S: 2 OK Completed
C: 3 capability
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS
CHILDREN 
   BINARY UNSELECT SORT CATENATE URLAUTH LANGUAGE ESEARCH
THREAD=ORDEREDSUBJECT
   THREAD=REFERENCES IDLE ENABLE CONTEXT WITHIN XSENDER X-NETSCAPE
XSERVERINFO
   X-SUN-SORT ANNOTATE-EXPERIMENT-1 X-UNAUTHENTICATE X-SUN-IMAP
X-ANNOTATEMORE XUM1
   CONDSTORE QRESYNC
S: 3 OK Completed

The new capability vector sent after the enable command reflect the new
negotiated protocol level.  I would have liked CONDSTORE to have to be
enabled, but it was too late to do that, and we are stuck with 42 different
ways that the CONDSTORE extension can be enabled. (note that turning on
QRESYNC implies turning on CONDSTORE)

I have argued that the enable command only be allowed near the start of a
session, only at the first command, or as the first command after
authentication, but I do not think I have achieved much traction on that
idea as it implies another state for the protocol engine.  I can see that
that is an attractive argument for some, but if feels a bit academic and
pedantic to me.


Peter

-----Original Message-----
From: owner-ietf-imapext@mail.imc.org
[mailto:owner-ietf-imapext@mail.imc.org] On Behalf Of Ken Murchison
Sent: November 2, 2007 04:08
To: lemonade@ietf.org; IMAP Extensions WG
Subject: draft-gulbrandsen-imap-enable-03


After looking at the current draft on my way towards implementing 
QRESYNC, I'm wondering why ENABLE is allowed to be used blindly.  I 
don't see any reason why ENABLE should be allowed before the client 
knows that a particular extension is supported (via CAPABILITY).

In particular, the second example in section 3 seems strange to me, and 
AFAICT, doing ENABLE before CAPABILITY doesn't gain anything in terms of 
round trips.  I also don't like the fact that we're documenting that 
ENABLE can be used to probe for extensions (as per paragraph 2 in 
section 5).  We already have a command to list extensions.

If we specify that a client MUST NOT try to enable an extension that 
isn't listed by CAPABILITY, then all the server has to worry about 
parsing are those extensions that it supports and are enable-able. 
Trying to ENABLE any other other extensions, whether unknown, 
unenable-able, or unsupported can all result in BAD.

-- 
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University




Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA2BPYgN019228 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 Nov 2007 04:25:34 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA2BPYag019227; Fri, 2 Nov 2007 04:25:34 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from smtp.andrew.cmu.edu (SMTP.andrew.cmu.edu [128.2.10.212]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA2BPWqX019220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <ietf-imapext@imc.org>; Fri, 2 Nov 2007 04:25:33 -0700 (MST) (envelope-from murch@andrew.cmu.edu)
Received: from [192.168.137.23] (cpe-69-207-86-125.buffalo.res.rr.com [69.207.86.125]) (user=murch mech=PLAIN (0 bits)) by smtp.andrew.cmu.edu (8.13.8/8.13.8) with ESMTP id lA2BPADE006622 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 2 Nov 2007 07:25:10 -0400
Message-ID: <472B090D.1060303@andrew.cmu.edu>
Date: Fri, 02 Nov 2007 07:25:01 -0400
From: Ken Murchison <murch@andrew.cmu.edu>
Organization: Carnegie Mellon University
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
To: lemonade@ietf.org, IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <472B04FD.9020100@andrew.cmu.edu>
In-Reply-To: <472B04FD.9020100@andrew.cmu.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.60 on 128.2.10.212
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Ken Murchison wrote:
> After looking at the current draft on my way towards implementing 
> QRESYNC, I'm wondering why ENABLE is allowed to be used blindly.  I 
> don't see any reason why ENABLE should be allowed before the client 
> knows that a particular extension is supported (via CAPABILITY).
> 
> In particular, the second example in section 3 seems strange to me, and 
> AFAICT, doing ENABLE before CAPABILITY doesn't gain anything in terms of 
> round trips.  I also don't like the fact that we're documenting that 
> ENABLE can be used to probe for extensions (as per paragraph 2 in 
> section 5).  We already have a command to list extensions.
> 
> If we specify that a client MUST NOT try to enable an extension that 
> isn't listed by CAPABILITY, then all the server has to worry about 
> parsing are those extensions that it supports and are enable-able. 
> Trying to ENABLE any other other extensions, whether unknown, 
> unenable-able, or unsupported can all result in BAD.

One more thing:

What is supposed to happen if a client does 'ENABLE CONDSTORE THREAD' on 
a server that supports both extensions?  Should we use untagged OK 
responses to tell the client which extensions were enabled?  What is the 
final result of the command?


-- 
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA2B7sMQ016973 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 Nov 2007 04:07:55 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA2B7sE1016972; Fri, 2 Nov 2007 04:07:54 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from smtp.andrew.cmu.edu (SMTP.andrew.cmu.edu [128.2.10.212]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA2B7pd6016966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <ietf-imapext@imc.org>; Fri, 2 Nov 2007 04:07:52 -0700 (MST) (envelope-from murch@andrew.cmu.edu)
Received: from [192.168.137.23] (cpe-69-207-86-125.buffalo.res.rr.com [69.207.86.125]) (user=murch mech=PLAIN (0 bits)) by smtp.andrew.cmu.edu (8.13.8/8.13.8) with ESMTP id lA2B7nGV005776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 2 Nov 2007 07:07:50 -0400
Message-ID: <472B04FD.9020100@andrew.cmu.edu>
Date: Fri, 02 Nov 2007 07:07:41 -0400
From: Ken Murchison <murch@andrew.cmu.edu>
Organization: Carnegie Mellon University
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
To: lemonade@ietf.org, IMAP Extensions WG <ietf-imapext@imc.org>
Subject: draft-gulbrandsen-imap-enable-03
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.60 on 128.2.10.212
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

After looking at the current draft on my way towards implementing 
QRESYNC, I'm wondering why ENABLE is allowed to be used blindly.  I 
don't see any reason why ENABLE should be allowed before the client 
knows that a particular extension is supported (via CAPABILITY).

In particular, the second example in section 3 seems strange to me, and 
AFAICT, doing ENABLE before CAPABILITY doesn't gain anything in terms of 
round trips.  I also don't like the fact that we're documenting that 
ENABLE can be used to probe for extensions (as per paragraph 2 in 
section 5).  We already have a command to list extensions.

If we specify that a client MUST NOT try to enable an extension that 
isn't listed by CAPABILITY, then all the server has to worry about 
parsing are those extensions that it supports and are enable-able. 
Trying to ENABLE any other other extensions, whether unknown, 
unenable-able, or unsupported can all result in BAD.

-- 
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAUKJrfa087974 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 30 Nov 2007 13:19:53 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAUKJrvM087973; Fri, 30 Nov 2007 13:19:53 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from ithilien.qualcomm.com (ithilien.qualcomm.com [129.46.51.59]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAUKJqUi087966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Fri, 30 Nov 2007 13:19:52 -0700 (MST) (envelope-from randy@qualcomm.com)
Received: from hamtaro.qualcomm.com (hamtaro.qualcomm.com [129.46.61.157]) by ithilien.qualcomm.com (8.13.6/8.12.5/1.0) with ESMTP id lAUKJkxl009262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 30 Nov 2007 12:19:46 -0800
Received: from [192.168.1.13] (vpn-10-50-16-88.qualcomm.com [10.50.16.88]) by hamtaro.qualcomm.com (8.14.2/8.13.6/1.0) with ESMTP id lAUKJdOl025599; Fri, 30 Nov 2007 12:19:41 -0800 (PST)
Mime-Version: 1.0
Message-Id: <p06240602c3761d85e9f3@[192.168.1.13]>
In-Reply-To: <027201c83127$f13cfa50$6e02a8c0@DGCSonyFS>
References:  <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com><7YuRD8 XC5q7UzHD2142Juw.md5@libertango.oryx.com><4744168D.10304@isode.com> <e8fgllR+JjpB8gygcgacbw.md5@libertango.oryx.com> <027201c83127$f13cfa50$6e02a8c0@DGCSonyFS>
X-Mailer: Eudora for Mac OS X
X-message-flag: Warning: Outlook in use.  Upgrade to Eudora: <http://www.eudora.com>
Date: Fri, 30 Nov 2007 12:17:22 -0800
To: "Darryl Champagne" <dgc03052@adelphia.net>, "'Arnt Gulbrandsen'" <arnt@oryx.com>, <lemonade@ietf.org>, <ietf-imapext@imc.org>
From: Randall Gellens <randy@qualcomm.com>
Subject: RE: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: "'Alexey Melnikov'" <alexey.melnikov@isode.com>, "'Ned Freed'" <ned.freed@mrochek.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Random-Sig-Tag: 1.0b28
X-PerlMx: Message inspected by PerlMx
X-PerlMx: Message inspected by PerlMx
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

At 2:01 PM -0500 11/27/07, Darryl Champagne wrote:

>  Hi,
>  I'm a bit confused about where this has ended up.  Is this the current
>  status?
>
>  - Enable gets registered with IANA.
>  - Extensions do not get registered (although they might be described in
>  specific RFCs).

ENABLE, as an extension, gets registered with IANA at 
<http://www.iana.org/assignments/imap4-capabilities>.  So do new 
extensions.  ENABLE doesn't change this at all.  ENABLE is merely a 
clean way to flip a switch during an IMAP session that otherwise 
requires magic.  That is, ENABLE just makes state changes explicit 
(and maybe at a more constrained time) rather than having them occur 
at arbitrary points as a result of the client's use of certain 
command forms.

>  - One can enable arbitrary extensions.

Any ENABLE-able extension can be used with ENABLE, but that's a tautology.

>  - There is no indication if an extension is not supported (other than
>  potentially some change to other data returned).

Extensions still are listed in the CAPABILITY response -- ENABLE 
doesn't change that.  But the client needs to know which of them can 
be used with ENABLE.

>  - There is no way to disable an extension once it has been enabled.

Correct.

>  I'm not advocating anything here - solely asking if this is the current way
>  consensus thinks it should work.  Is this where it stands at the moment?
>
>  Also, isn't there another case where a client would care about what
>  extensions work - where there is some interaction between extensions?
>
>  For example, don't bother with X, Y, and Z unless all 3 work?

The client can examine the CAPABILITY response.  But I think there is 
still an open issue as to inclusion or exclusion of an extension 
which the client included in ENABLE but whose ENABLE-ment failed.

So, the standard/recommended command sequence might be:

a1 CAPABILITY (to see if TLS is and which authentication mechanisms 
are supported)
a2 STARTTLS (if supported)
a3 AUTHENTICATE
b1 ENABLE (to try and enable all desired mechanisms)
b2 CAPABILITY (to see which extensions are supported, and which 
extensions included in the NOTIFY command were in fact ENABLEd)

Or,

a1 CAPABILITY (to see if TLS is and which authentication mechanisms 
are supported)
a2 STARTTLS (if supported)
a3 AUTHENTICATE
b1 CAPABILITY (to see which extensions are supported)
b1 ENABLE (to try and enable all desired and supported mechanisms)

In the first case, the client learns from the post-authentication 
CAPABILITY response which extensions were successfully ENABLEd.  The 
second case, the ENABLE response needs to indicate this.
-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly-selected tag: ---------------
As soon as we started programming, we found to our surprise that it
wasn't as easy to get programs right as we had thought.  Debugging had
to be discovered.  I can remember the exact instant when I realized
that a large part of my life from then on was going to be spent in
finding mistakes in my own programs.
 --Maurice Wilkes discovers debugging, 1949 (courtesy of Paul Robinson)



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lARKonjP079726 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 27 Nov 2007 13:50:49 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lARKonwo079725; Tue, 27 Nov 2007 13:50:49 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lARKomI9079718 for <ietf-imapext@imc.org>; Tue, 27 Nov 2007 13:50:48 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <R0yDJgB-qAoy@rufus.isode.com>; Tue, 27 Nov 2007 20:50:46 +0000
Message-ID: <474C82DE.5070305@isode.com>
Date: Tue, 27 Nov 2007 20:49:34 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Darryl Champagne <dgc03052@adelphia.net>
CC: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com><7YuRD8XC5q7UzHD2142Juw.md5@libertango.oryx.com><4744168D.10304@isode.com> <e8fgllR+JjpB8gygcgacbw.md5@libertango.oryx.com> <027201c83127$f13cfa50$6e02a8c0@DGCSonyFS>
In-Reply-To: <027201c83127$f13cfa50$6e02a8c0@DGCSonyFS>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Darryl Champagne wrote:

>Hi,
>  
>
Hi Darryl,

>I'm a bit confused about where this has ended up.
>
I am not sure that the dust has settled yet. But here are my guesses 
where things are going:

>Is this the current status?
>
>- Enable gets registered with IANA.
>  
>
Not sure why this is important.

>- Extensions do not get registered (although they might be described in
>specific RFCs).
>  
>
Not sure what do you mean here. Registered where?

>- One can enable arbitrary extensions.
>  
>
Yes.

>- There is no indication if an extension is not supported (other than
>potentially some change to other data returned).
>  
>
The current CAPABILITY mechanism is still going to be used to find out 
if an extension is supported or not.

I think there is some form of consensus that a new response should be 
added to signal which extensions were successfully enabled.

>- There is no way to disable an extension once it has been enabled.
>  
>
Correct. The ability to disable extensions was discarded long time ago.

>I'm not advocating anything here - solely asking if this is the current way
>consensus thinks it should work.  Is this where it stands at the moment?
>
>Also, isn't there another case where a client would care about what
>extensions work - where there is some interaction between extensions?
>
>For example, don't bother with X, Y, and Z unless all 3 work?
>  
>
This should be possible: a client can construct an ENABLE command after 
checking CAPABILITY.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lARKkjxt079489 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 27 Nov 2007 13:46:45 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lARKkj7U079488; Tue, 27 Nov 2007 13:46:45 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lARKkito079481 for <ietf-imapext@imc.org>; Tue, 27 Nov 2007 13:46:44 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <R0yCMQB-qIwT@rufus.isode.com>; Tue, 27 Nov 2007 20:46:42 +0000
Message-ID: <474C81E9.8050204@isode.com>
Date: Tue, 27 Nov 2007 20:45:29 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: IMAP Extensions WG <ietf-imapext@imc.org>, Lemonade WG <lemonade@ietf.org>
Subject: "Friends of IMAP" dinner on Monday, December 3rd
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

There seem to be some interest in having [now traditional] "friends of 
IMAP" dinner in Vancouver on Monday, December 3rd.
People who didn't tell me before and who would like to come should email 
me directly, so that I can estimate how big the reservation should be.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lALJkCWk045787 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Nov 2007 12:46:12 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lALJkCpB045786; Wed, 21 Nov 2007 12:46:12 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lALJkBxP045779 for <ietf-imapext@imc.org>; Wed, 21 Nov 2007 12:46:11 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <R0SLAABBVL3J@rufus.isode.com>; Wed, 21 Nov 2007 19:46:09 +0000
Message-ID: <47448AE1.9010806@isode.com>
Date: Wed, 21 Nov 2007 19:45:37 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Fred Batty <fredb@Sun.COM>
CC: ietf-imapext@imc.org
Subject: Re: LIST-EXTENDED and child mailboxes
References: <47168BA1.3070109@sun.com>
In-Reply-To: <47168BA1.3070109@sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Hi Fred,
Sorry for slow response.

Fred Batty wrote:

>Hi. I am trying to implement LIST-EXTENDED and have a problem with this
>paragraph in section 3.5:
>
>   Note: Some servers allow for mailboxes to exist without requiring
>   their parent to exist.  For example, a mailbox "Customers/ABC" can
>   exist while the mailbox "Customers" does not.  As CHILDINFO extended
>   data item is not allowed if the RECURSIVEMATCH selection option is
>   not specified, such servers SHOULD use the "\NonExistent
>   \HasChildren" attribute pair to signal to the client that there is a
>   descendant mailbox that matches the selection criteria.
>
>Doesn't it force the server to do the same work as if the client had asked for
>RECURSIVEMATCH, even when the client didn't specify it, thus probably doesn't
>care?
>
No, this text doesn't require the server to do recursive matching.
It just says that *if* the server wants to tell the client that a 
particular level of mailbox hierarchy doesn't exist, then it should 
return \NonExistent.

>If so, wouldn't this be a serious problem if the selection criteria is
>expensive to determine, e.g. involving annotations?
>
>
>Also, I guess this is more minor but shouldn't the word 'exactly' in this
>section 3.1 paragraph be replaced by 'at most':
>
>   1.  Exactly one LIST response should be returned for each mailbox
>       name which matches the canonical LIST pattern.  Server
>       implementors must not assume that clients will be able to
>       assemble mailbox attributes and other information returned in
>       multiple LIST responses.
>  
>
Noted, thanks.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lALH84Kh027409 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Nov 2007 10:08:04 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lALH84xH027408; Wed, 21 Nov 2007 10:08:04 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mauve.mrochek.com (dsl-66-59-230-40.static.linkline.com [66.59.230.40]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lALH7wlL027391 for <ietf-imapext@imc.org>; Wed, 21 Nov 2007 10:08:03 -0700 (MST) (envelope-from ned.freed@mrochek.com)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01MNZDLDL63400C5KY@mauve.mrochek.com> for ietf-imapext@imc.org; Wed, 21 Nov 2007 09:07:55 -0800 (PST)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01MNWVHAV96800GULE@mauve.mrochek.com>; Wed, 21 Nov 2007 09:07:11 -0800 (PST)
Cc: lemonade@ietf.org, ietf-imapext@imc.org, Alexey Melnikov <alexey.melnikov@isode.com>, Ned Freed <ned.freed@mrochek.com>
Message-id: <01MNZDKI4K8200GULE@mauve.mrochek.com>
Date: Wed, 21 Nov 2007 08:50:58 -0800 (PST)
From: Ned Freed <ned.freed@mrochek.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
In-reply-to: "Your message dated Wed, 21 Nov 2007 12:43:22 +0100" <e8fgllR+JjpB8gygcgacbw.md5@libertango.oryx.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; format=flowed
References: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com> <7YuRD8XC5q7UzHD2142Juw.md5@libertango.oryx.com> <4744168D.10304@isode.com> <e8fgllR+JjpB8gygcgacbw.md5@libertango.oryx.com>
To: Arnt Gulbrandsen <arnt@oryx.com>
DKIM-Signature: a=rsa-sha1; c=nowsp; d=mrochek.com; s=mauve; t=1195664874; h=Date:	 From:Subject:MIME-version:Content-type; b=PUDBhq7P5Qgy5NjOn6lA2nVqz O6fLB6XOEKiei/Nzcl4YfRQkwaUFpPjTENUxHCYk9+dqdyP0tl5G3JCXWO1xg==
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

> Alexey Melnikov writes:
> > But can somebody please give me a useful use case of why a client
> > would need to know if something is enabled or not. The client still
> > needs to cope with a server that doesn't support an extension.

> I believe there won't be any such useful case with regular clients.

Not true. The obvious one is any extension which, once enabled, changes
response syntax in some way and for which an attempt to enable it can fail due
to some local condition on the server. So suppose a client tries to enable the
extension. The enable succeeds or fails but the client cannot tell from the
response which one it was. Now what? Does the client have to try some command
that should have an altered response in order to see if the enable worked? And
do this for each of several extensions? This is terrible protocol design,
nothing more and nothing less.

Even worse, the likely behavior of client writers will be to simply assume that
all enable actions succeed. Then when an enable doesn't work the client and
server get desynchronized.

> There could be three other kinds of cases:

> 1. A test suite client., which wants to test at the start that it has
> the same idea of state as the server.

This is getting close to another important case: Various sorts of proxies and
stateful firewalls. I'm not particularly fond of these sorts of things, but my
dislike doesn't change the fact that they are commonly used. And any time you
have a protocol that has lots of possible state changes that can occur at
various different times and for which it is even slightly difficult to
determine current state, you are pretty much guaranteed to have problems.

> 2. A client which can tell the user about the server it's using in a
> little dialog box:
>        Server host: <name>
>        Protocol: IMAP
>        Server name: <name and stuff from ID>
>        Using TLS: <Yes or no>
>        Logged in as: <login>
>        Extensions used: <list>
> That last list would be the ones the server offers and client uses that
> aren't ENABLE fodder, plus the ones from ENABLED.

> 3. Really badly written extensions. For example, if Peter makes a
> complete mess of his FAT NIL proposal, a client might need to know.

Mind you, the best way to solve these problems would be to devise
a response format whose syntax doesn't need to change in order to return
more stuff. But I don't think there's any desire to engage in such a
major redesign of IMAP at this point.

				Ned



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lALBhbAY094825 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Nov 2007 04:43:37 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lALBhblb094824; Wed, 21 Nov 2007 04:43:37 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from kalyani.oryx.com (kalyani.oryx.com [195.30.37.30]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lALBhXjo094816 for <ietf-imapext@imc.org>; Wed, 21 Nov 2007 04:43:36 -0700 (MST) (envelope-from arnt@oryx.com)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id 996D84ACDE; Wed, 21 Nov 2007 12:43:34 +0100 (CET)
Message-Id: <e8fgllR+JjpB8gygcgacbw.md5@libertango.oryx.com>
Date: Wed, 21 Nov 2007 12:43:22 +0100
From: Arnt Gulbrandsen <arnt@oryx.com>
To: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: Alexey Melnikov <alexey.melnikov@isode.com>, Ned Freed <ned.freed@mrochek.com>
References: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com> <7YuRD8XC5q7UzHD2142Juw.md5@libertango.oryx.com> <4744168D.10304@isode.com>
In-Reply-To: <4744168D.10304@isode.com>
Content-Type: text/plain; format=flowed
MIME-Version: 1.0
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Alexey Melnikov writes:
> But can somebody please give me a useful use case of why a client 
> would need to know if something is enabled or not. The client still 
> needs to cope with a server that doesn't support an extension.

I believe there won't be any such useful case with regular clients. 
There could be three other kinds of cases:

1. A test suite client., which wants to test at the start that it has 
the same idea of state as the server.

2. A client which can tell the user about the server it's using in a 
little dialog box:
       Server host: <name>
       Protocol: IMAP
       Server name: <name and stuff from ID>
       Using TLS: <Yes or no>
       Logged in as: <login>
       Extensions used: <list>
That last list would be the ones the server offers and client uses that 
aren't ENABLE fodder, plus the ones from ENABLED.

3. Really badly written extensions. For example, if Peter makes a 
complete mess of his FAT NIL proposal, a client might need to know.

IMO, 1 is a weak reason (we do this in a nonstandard way and that's 
perfect for testing), 2 is even weaker and 3 is laughable.

Arnt



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lALBTOYZ093943 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Nov 2007 04:29:24 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lALBTOBe093942; Wed, 21 Nov 2007 04:29:24 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lALBTMSq093934 for <ietf-imapext@imc.org>; Wed, 21 Nov 2007 04:29:22 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <R0QWjwBBVJ7w@rufus.isode.com>; Wed, 21 Nov 2007 11:29:20 +0000
Message-ID: <4744168D.10304@isode.com>
Date: Wed, 21 Nov 2007 11:29:17 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Arnt Gulbrandsen <arnt@oryx.com>
CC: lemonade@ietf.org, ietf-imapext@imc.org, Ned Freed <ned.freed@mrochek.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com> <7YuRD8XC5q7UzHD2142Juw.md5@libertango.oryx.com>
In-Reply-To: <7YuRD8XC5q7UzHD2142Juw.md5@libertango.oryx.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Arnt Gulbrandsen wrote:

> Dan Karp writes:
>
>> If that is the point of this, we should stop trying to be tricky and 
>> just add an untagged ENABLED response:
>
> Absolutely.
>
> Not sure I agree with the need for ENABLED, but it certainly is THE 
> straightforward and sensible solution to the perceived problem.

Agreed.

But can somebody please give me a useful use case of why a client would 
need to know if something is enabled or not. The client still needs to 
cope with a server that doesn't support an extension.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAL93xPk081998 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Nov 2007 02:03:59 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAL93xIS081997; Wed, 21 Nov 2007 02:03:59 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from kalyani.oryx.com (kalyani.oryx.com [195.30.37.30]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAL93wj9081982 for <ietf-imapext@imc.org>; Wed, 21 Nov 2007 02:03:58 -0700 (MST) (envelope-from arnt@oryx.com)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id 886734ACC2; Wed, 21 Nov 2007 10:04:06 +0100 (CET)
Message-Id: <7YuRD8XC5q7UzHD2142Juw.md5@libertango.oryx.com>
Date: Wed, 21 Nov 2007 10:03:55 +0100
From: Arnt Gulbrandsen <arnt@oryx.com>
To: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: Alexey Melnikov <alexey.melnikov@isode.com>, Ned Freed <ned.freed@mrochek.com>, Randall Gellens <randy@qualcomm.com>, Peter Coates <peter.coates@Sun.COM>, Dan Karp <dkarp@zimbra.com>
References: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com>
In-Reply-To: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com>
Content-Type: text/plain; format=flowed
MIME-Version: 1.0
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Dan Karp writes:
> If that is the point of this, we should stop trying to be tricky and 
> just add an untagged ENABLED response:

Absolutely.

Not sure I agree with the need for ENABLED, but it certainly is THE 
straightforward and sensible solution to the perceived problem.

Arnt



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAL5ZOtd067746 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Nov 2007 22:35:24 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAL5ZO9n067745; Tue, 20 Nov 2007 22:35:24 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mauve.mrochek.com (dsl-66-59-230-40.static.linkline.com [66.59.230.40]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAL5ZAZZ067724 for <ietf-imapext@imc.org>; Tue, 20 Nov 2007 22:35:11 -0700 (MST) (envelope-from ned.freed@mrochek.com)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01MNYBWNRZAO00GAM4@mauve.mrochek.com> for ietf-imapext@imc.org; Tue, 20 Nov 2007 15:08:58 -0800 (PST)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01MNWVHAV96800GULE@mauve.mrochek.com> (original mail from NED@mauve.mrochek.com) for ietf-imapext@imc.org; Tue, 20 Nov 2007 15:05:44 -0800 (PST)
From: ned.freed@mrochek.com
Cc: Ned Freed <ned.freed@mrochek.com>, lemonade@ietf.org, Alexey Melnikov <alexey.melnikov@isode.com>, Peter Coates <peter.coates@Sun.COM>, ietf-imapext@imc.org
Message-id: <01MNYBSP7BY600GULE@mauve.mrochek.com>
Date: Tue, 20 Nov 2007 14:52:28 -0800 (PST)
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
In-reply-to: "Your message dated Tue, 20 Nov 2007 11:22:56 -0800" <p06240604c368e187f3f1@[192.168.1.13]>
MIME-version: 1.0
Content-type: TEXT/PLAIN; format=flowed
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <01a601c822f5$7c13bf60$743b3e20$%coates@sun.com> <4734AEF8.4090201@isode.com> <p06240602c368d49cecb9@[192.168.1.13]> <01MNY336A8QY00GULE@mauve.mrochek.com> <p06240604c368e187f3f1@[192.168.1.13]>
To: Randall Gellens <randy@qualcomm.com>
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

> At 10:40 AM -0800 11/20/07, Ned Freed wrote:

> >>  Why do you prefer not having ENABLEable extensions in the initial
> >>  CAPABILITY response?
> >
> >  Because it removes the ability to use the response to determine what is or is
> >  not enabled.

> I don't understand your reply.  I parse it as: you prefer prohibiting
> any extension that can be ENABLEd from appearing in the initial
> (pre-authentication) CAPABILITY response because this way clients
> can't use the initial CAPABILITY response to determine what is or is
> not ENABLEd?

It's extremely simple: If the availabity of an extension is sufficient for it
to appear in the CAPABILITY response then that response cannot be used as an
indication of whether or not the extension is enabled.

I suppose you could change the response in some way, but I have to wonder why a
client would care about the existance of an extension that it didn't bother
trying to enable.

> Do you mean that you want to keep all non-TLS non-authentication
> extensions out of the initial CAPABILITY response to avoid revealing
> information to an unauthenticated client?

No, the pre-authentication response is completely irrelevant.

> Or do you mean that you want to prevent clients from assuming that
> any ENABLEable extension listed in the initial CAPABILITY response
> and included in the ENABLE command was successfully ENABLEd, without
> looking at the post-ENABLE CAPABILITY response?

Again, the initial capability response isn't relevant to any of this. The only
thing I can think of that would make it relevant is to misdesign enable so that
it's all or nothing. In that case you'd need to look at that response to find
out what you could put in your enable command. But in that case you still
shouldn't be paying attention to the pre-authentication response. Rather, you'd
need to CAPA-TLS-CAPA-AUTH-CAPA-ENABLE sequence. Blech.

> >>  At 7:59 AM -0800 11/10/07, Ned Freed wrote:
> >>>   One problem is that this presumes that enable will always succeed
> >>>  for anything
> >>>   that was previousliy listed as a capability. This strikes me as
> >>> risky - there
> >>>   could be things where the server cannot tell there's  a problem
> >>> enabling it
> >>>   until it actually goes through the steps of doing so.
> >>>
> >>>   I strongly prefer a model where it is possible to check to see
> >>> what's turned
> >>>   on and what is not.
> >
> >>   >  In my approach the client authenticates and then sends the
> >> enable command
> >>>   followed by a capability command to see the results of the enable.
> >
> >>  So ENABLE returns OK even if some extensions are not known or
> >>  couldn't be turned on for whatever reason (temporary failure of a
> >>  resource perhaps).  The post-authentication post-ENABLE CAPABILITY
> >>  response omits anything that failed during ENABLE.  So a
> >>  post-authentication pre-ENABLE CAPABILITY response may be different
> >>  from a post-authentication post-ENABLE CAPABILITY response.  That
> >>  seems a little odd, but it may be easier on the client, since the
> >>  client only has to parse the CAPABILITY response, not the ENABLE
> >>  response.  But it does effectively force the sequence
> >>  CAPABILITY-authentication-ENABLE-CAPABILITY.
> >
> >  Correct, but clients already have to look at capabilitiez after
> > authentication
> >  so this adds no overhead.

> True, but it does force any client that uses ENABLE to issue it after
> authenticating and before issuing the post-authentication CAPABILITY
> command (unless the client wants to issue a third CAPABILITY command,
> which seems pointless).

Correct, but IMO this is a very good thing. Limiting the places where enable
can be used results in a tremendous reduction in the number of places where a
state transition can occur. (Unfortunately it doesn't reduce the number of
actual protocol states, but nothing short of a redesign of the way responses
are structured so they can be extended at any time can accomplish that.)

> So the required command sequence becomes:

>      1: CAPABILITY (only to determine if TLS and which authentication
>          mechanisms are supported)
>      2: TLS (if being used) and authentication
>      3: ENABLE (with all desired ENABLEable extensions)
>      4: CAPABILITY (to see which ENABLEable extensions were turned
>          on, and which other extensions are supported)

Yep, that's it.

> >>  At 10:25 AM -0800 11/10/07, Ned Freed wrote:
> >>>   Nothing prevents us from requiring ENABLE in order to use extensions that
> >>>   change command response syntax. In fact I think such a
> >>> requirement would be a
> >>>   very good idea.
> >
> >>  I agree, but this requires a revision to CONDSTORE that deprecates
> >>  the current extension and defines a new one, doesn't it?
> >
> >  Yes, but IMO that's a good thing.

> It would make things much cleaner, so long-term would be helpful.  Is
> there support in the group for doing this?  Are there deployments of
> CONDSTORE?

That's the real question. If there's significant deployment we pretty much
have no choice but to do this by adding additional response inforation to
enable, which adds client complexity.

				Ned



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAL5ZGAP067736 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Nov 2007 22:35:16 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAL5ZGUY067735; Tue, 20 Nov 2007 22:35:16 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mauve.mrochek.com (dsl-66-59-230-40.static.linkline.com [66.59.230.40]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAL5ZAZb067724 for <ietf-imapext@imc.org>; Tue, 20 Nov 2007 22:35:11 -0700 (MST) (envelope-from ned.freed@mrochek.com)
Received: from dkim-sign.mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01MNY338117400G9Q4@mauve.mrochek.com> for ietf-imapext@imc.org; Tue, 20 Nov 2007 10:56:10 -0800 (PST)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01MNWVHAV96800GULE@mauve.mrochek.com> (original mail from NED@mauve.mrochek.com) for ietf-imapext@imc.org; Tue, 20 Nov 2007 10:56:06 -0800 (PST)
From: ned.freed@mrochek.com
Cc: Alexey Melnikov <alexey.melnikov@isode.com>, Peter Coates <peter.coates@sun.com>, Ned Freed <ned.freed@mrochek.com>, lemonade@ietf.org, ietf-imapext@imc.org
Message-id: <01MNY336A8QY00GULE@mauve.mrochek.com>
Date: Tue, 20 Nov 2007 10:40:42 -0800 (PST)
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
In-reply-to: "Your message dated Tue, 20 Nov 2007 10:33:16 -0800" <p06240602c368d49cecb9@[192.168.1.13]>
MIME-version: 1.0
Content-type: TEXT/PLAIN; format=flowed
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <01a601c822f5$7c13bf60$743b3e20$%coates@sun.com> <4734AEF8.4090201@isode.com> <p06240602c368d49cecb9@[192.168.1.13]>
To: Randall Gellens <randy@qualcomm.com>
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

> At 7:03 PM +0000 11/9/07, Alexey Melnikov wrote:

> >>  Thus the sequence should be either
> >>  C: t1 CAPABILITY
> >>  S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
> >>  S: t1 OK foo
> >>  C: t2 ENABLE CONDSTORE X-GOOD-IDEA
> >>  S: t2 OK foo
> >>  C: t3 CAPABILITY
> >>  S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
> >>  CONDSTORE
> >>  S: t3 OK foo again
> >>
> >  I dislike that, because you now implicitly saying that there are
> > magic extensions which don't work unless the client knows how to
> > enable them. Really, the server should have advertised the
> > CONDSTORE extension to begin with.

> I agree.

> The client shouldn't have to parse both the CAPABILITY response and
> the ENABLE response to learn if an extension has been negotiated.  If
> we put all ENABLEable extensions in the CAPABILITY response, then the
> response to ENABLE can be OK even if it contains unknown extensions.

> At 2:42 PM -0800 11/9/07, Ned Freed wrote:
> >  My personal preference is to have the initial capability list not list things
> >  that can be enabled, have enable turn on whatit can and ignore the rest, and
> >  have any enabled changes show up in subsequent capability lists. This
> >  leverages existing protocol features and doesn't invent new syntax or
> >  require multiple commands.

> Why do you prefer not having ENABLEable extensions in the initial
> CAPABILITY response?

Because it removes the ability to use the response to determine what is or is
not enabled.

> At 7:59 AM -0800 11/10/07, Ned Freed wrote:
> >  One problem is that this presumes that enable will always succeed
> > for anything
> >  that was previousliy listed as a capability. This strikes me as risky - there
> >  could be things where the server cannot tell there's  a problem enabling it
> >  until it actually goes through the steps of doing so.
> >
> >  I strongly prefer a model where it is possible to check to see what's turned
> >  on and what is not.

> >  In my approach the client authenticates and then sends the enable command
> >  followed by a capability command to see the results of the enable.

> So ENABLE returns OK even if some extensions are not known or
> couldn't be turned on for whatever reason (temporary failure of a
> resource perhaps).  The post-authentication post-ENABLE CAPABILITY
> response omits anything that failed during ENABLE.  So a
> post-authentication pre-ENABLE CAPABILITY response may be different
> from a post-authentication post-ENABLE CAPABILITY response.  That
> seems a little odd, but it may be easier on the client, since the
> client only has to parse the CAPABILITY response, not the ENABLE
> response.  But it does effectively force the sequence
> CAPABILITY-authentication-ENABLE-CAPABILITY.

Correct, but clients already have to look at capabilitiez after authentication
so this adds no overhead.

No matter how you slice it the client has to be able to determine what's
enabled - the present situation as I understand is unacceptable since
situations can arise where the client doesn't know what's on and what's off.
The three options as I seee it are:

(1) Have enable return this information as some sort of extended response.
(2) have the client send multiple enables and use the response status to
    determine success or failure.
(3) Piggyback this on the existing capabilities mechanism.

I believe (3) is the simplest by far from a client perspective. An existing,
compliant client need only add code to send a single enable command (which can
even have a fixed set of arguments). The client then uses the capability
response it already has to find out what extensions it can use, and more
importantly what changes those extenaions have made to the syntax and semantics
of server responses.

If we don't do (3) I think the only viable alternative is (1). (2) looks an
awful lot like telnet option negiation to me, which hasn't worked all that
well.

> At 10:25 AM -0800 11/10/07, Ned Freed wrote:
> >  Nothing prevents us from requiring ENABLE in order to use extensions that
> >  change command response syntax. In fact I think such a requirement would be a
> >  very good idea.

> I agree, but this requires a revision to CONDSTORE that deprecates
> the current extension and defines a new one, doesn't it?

Yes, but IMO that's a good thing.

				Ned



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAL08nvx045849 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Nov 2007 17:08:49 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAL08nJP045848; Tue, 20 Nov 2007 17:08:49 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from ithilien.qualcomm.com (ithilien.qualcomm.com [129.46.51.59]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAL08lM4045841 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Tue, 20 Nov 2007 17:08:48 -0700 (MST) (envelope-from randy@qualcomm.com)
Received: from neophyte.qualcomm.com (neophyte.qualcomm.com [129.46.61.149]) by ithilien.qualcomm.com (8.13.6/8.12.5/1.0) with ESMTP id lAL08j6C028959 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 20 Nov 2007 16:08:46 -0800
Received: from [192.168.1.13] (vpn-10-50-16-37.qualcomm.com [10.50.16.37]) by neophyte.qualcomm.com (8.13.6/8.13.6/1.0) with ESMTP id lAL08hls019611; Tue, 20 Nov 2007 16:08:43 -0800
Mime-Version: 1.0
Message-Id: <p06240609c369237a68c1@[192.168.1.13]>
In-Reply-To: <01MNYBSP7BY600GULE@mauve.mrochek.com>
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <01a601c822f5$7c13bf60$743b3e20$%coates@sun.com> <4734AEF8.4090201@isode.com> <p06240602c368d49cecb9@[192.168.1.13]> <01MNY336A8QY00GULE@mauve.mrochek.com> <p06240604c368e187f3f1@[192.168.1.13]> <01MNYBSP7BY600GULE@mauve.mrochek.com>
X-Mailer: Eudora for Mac OS X
X-message-flag: Warning: Outlook in use.  Upgrade to Eudora: <http://www.eudora.com>
Date: Tue, 20 Nov 2007 16:05:48 -0800
To: Ned Freed <ned.freed@mrochek.com>
From: Randall Gellens <randy@qualcomm.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: lemonade@ietf.org, Alexey Melnikov <alexey.melnikov@isode.com>, Peter Coates <peter.coates@Sun.COM>, Ned Freed <ned.freed@mrochek.com>, ietf-imapext@imc.org
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Random-Sig-Tag: 1.0b28
X-PerlMx: Message inspected by PerlMx
X-PerlMx: Message inspected by PerlMx
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

At 2:52 PM -0800 11/20/07, Ned Freed wrote:

>>  At 10:40 AM -0800 11/20/07, Ned Freed wrote:
>
>>   >>  Why do you prefer not having ENABLEable extensions in the initial
>>>>   CAPABILITY response?
>>>
>>>   Because it removes the ability to use the response to determine 
>>> what is or is
>>>   not enabled.
>
>>  I don't understand your reply.  I parse it as: you prefer prohibiting
>>  any extension that can be ENABLEd from appearing in the initial
>>  (pre-authentication) CAPABILITY response because this way clients
>>  can't use the initial CAPABILITY response to determine what is or is
>>  not ENABLEd?
>
>  It's extremely simple: If the availabity of an extension is sufficient for it
>  to appear in the CAPABILITY response then that response cannot be used as an
>  indication of whether or not the extension is enabled.
>
>  I suppose you could change the response in some way, but I have to 
> wonder why a
>  client would care about the existance of an extension that it didn't bother
>  trying to enable.

Thanks, I see the source of my confusion now: the term "initial 
CAPABILITY response".  I took it to mean the pre-authentication 
CAPABILITY response, but I see now you only talking about 
post-authentication.

>>  True, but it does force any client that uses ENABLE to issue it after
>>  authenticating and before issuing the post-authentication CAPABILITY
>>  command (unless the client wants to issue a third CAPABILITY command,
>>  which seems pointless).
>
>  Correct, but IMO this is a very good thing. Limiting the places where enable
>  can be used results in a tremendous reduction in the number of places where a
>  state transition can occur. (Unfortunately it doesn't reduce the number of
>  actual protocol states, but nothing short of a redesign of the way responses
>  are structured so they can be extended at any time can accomplish that.)



>
>>  So the required command sequence becomes:
>
>>       1: CAPABILITY (only to determine if TLS and which authentication
>>           mechanisms are supported)
>>       2: TLS (if being used) and authentication
>>       3: ENABLE (with all desired ENABLEable extensions)
>>       4: CAPABILITY (to see which ENABLEable extensions were turned
>>           on, and which other extensions are supported)
>
>  Yep, that's it.

This makes sense.  If an extension that is normally ENABLE-able is 
sent by the client in ENABLE, but for some reason fails, the server 
omits it from the CAPABILITY response in step 4.  This is reasonable 
because in reality it isn't actually available just at the moment for 
whatever reason, even though the server does support it.  This might 
change the next time the client connects, but that's always the case. 
This is different from how I am used to thinking of the CAPABILITY 
response, but is simpler for the client, I think.


>>   >>  At 10:25 AM -0800 11/10/07, Ned Freed wrote:
>>>>>    Nothing prevents us from requiring ENABLE in order to use 
>>>>> extensions that
>>>>>    change command response syntax. In fact I think such a
>>>>>  requirement would be a
>>>>>    very good idea.
>>>
>>>>   I agree, but this requires a revision to CONDSTORE that deprecates
>>>>   the current extension and defines a new one, doesn't it?
>>>
>>>   Yes, but IMO that's a good thing.
>
>>  It would make things much cleaner, so long-term would be helpful.  Is
>>  there support in the group for doing this?  Are there deployments of
>>  CONDSTORE?
>
>  That's the real question. If there's significant deployment we pretty much
>  have no choice but to do this by adding additional response inforation to
>  enable, which adds client complexity.

-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly-selected tag: ---------------
You think it's a conspiracy by the networks to put bad shows on TV. But
the shows are bad because that's what people want. It's not like
Windows users don't have any power. I think they are happy with
Windows, and that's an incredibly depressing thought.
                                                           --Steve Jobs



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAKJqWA2025068 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Nov 2007 12:52:32 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAKJqWEu025067; Tue, 20 Nov 2007 12:52:32 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAKJqVK5025059 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Tue, 20 Nov 2007 12:52:32 -0700 (MST) (envelope-from MRC@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout5.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAKJqQAd019734 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 20 Nov 2007 11:52:26 -0800
X-Auth-Received: from D-128-208-197-44.dhcp4.washington.edu (D-128-208-197-44.dhcp4.washington.edu [128.208.197.44]) (authenticated authid=mrc) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAKJqQA2023243 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 20 Nov 2007 11:52:26 -0800
Date: Tue, 20 Nov 2007 11:52:42 -0800 (PST)
From: Mark Crispin <MRC@CAC.Washington.EDU>
To: Dan Karp <dkarp@zimbra.com>
cc: Ned Freed <ned.freed@mrochek.com>, Randall Gellens <randy@qualcomm.com>, lemonade@ietf.org, Peter Coates <peter.coates@sun.com>, ietf-imapext@imc.org, Alexey Melnikov <alexey.melnikov@isode.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
In-Reply-To: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com>
Message-ID: <alpine.LN8.0.99999.0711201152180.4086@Nokia-N800-39>
References: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com>
User-Agent: Alpine 0.99999 (LN8 824 2007-11-19)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.20.113138
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='BODY_SIZE_900_999 0, __CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __LINES_OF_YELLING 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0'
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

+1

On Tue, 20 Nov 2007, Dan Karp wrote:

>>> Why do you prefer not having ENABLEable extensions in the initial
>>> CAPABILITY response?
>>
>> Because it removes the ability to use the response to determine what
>> is or is not enabled.
>
> If that is the point of this, we should stop trying to be tricky and
> just add an untagged ENABLED response:
>
>   A001 ENABLE X-UNKNOWN-EXTENSION QRESYNC CONDSTORE
>   * ENABLED QRESYNC CONDSTORE
>   A001 OK ENABLE completed
>
> I don't like changing the semantics of CAPABILITY just to avoid having
> a new untagged response.
>
>
> _______________________________________________
> lemonade mailing list
> lemonade@ietf.org
> https://www1.ietf.org/mailman/listinfo/lemonade
> Supplemental Web Site:
> http://www.standardstrack.com/ietf/lemonade
>

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAKJnU3Q024786 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Nov 2007 12:49:30 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAKJnUBd024785; Tue, 20 Nov 2007 12:49:30 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mta01.zimbra.com (mta01.zimbra.com [77.67.121.29]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAKJnRoU024776 for <ietf-imapext@imc.org>; Tue, 20 Nov 2007 12:49:30 -0700 (MST) (envelope-from dkarp@zimbra.com)
Received: from dogfood.zimbra.com (dsl092-025-198.sfo1.dsl.speakeasy.net [66.92.25.198]) by mta01.zimbra.com (Postfix) with ESMTP id 50CDBDE92BB; Tue, 20 Nov 2007 11:49:26 -0800 (PST)
Received: from localhost (localhost.localdomain [127.0.0.1]) by dogfood.zimbra.com (Postfix) with ESMTP id 442C31D5576; Tue, 20 Nov 2007 11:49:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at dogfood.zimbra.com
Received: from dogfood.zimbra.com ([127.0.0.1]) by localhost (dogfood.zimbra.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p9AFLOV2dPcV; Tue, 20 Nov 2007 11:49:19 -0800 (PST)
Received: from dogfood.zimbra.com (localhost.localdomain [127.0.0.1]) by dogfood.zimbra.com (Postfix) with ESMTP id 45DF41D53EF; Tue, 20 Nov 2007 11:49:19 -0800 (PST)
Date: Tue, 20 Nov 2007 11:49:19 -0800 (PST)
From: Dan Karp <dkarp@zimbra.com>
To: Ned Freed <ned.freed@mrochek.com>
Cc: lemonade@ietf.org, Alexey Melnikov <alexey.melnikov@isode.com>, Peter Coates <peter.coates@sun.com>, Ned Freed <ned.freed@mrochek.com>, ietf-imapext@imc.org, Randall Gellens <randy@qualcomm.com>
Message-ID: <1700927456.65461195588159131.JavaMail.root@dogfood.zimbra.com>
In-Reply-To: <01MNY336A8QY00GULE@mauve.mrochek.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [70.130.205.227]
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

> > Why do you prefer not having ENABLEable extensions in the initial
> > CAPABILITY response?
> 
> Because it removes the ability to use the response to determine what
> is or is not enabled.

If that is the point of this, we should stop trying to be tricky and 
just add an untagged ENABLED response:

   A001 ENABLE X-UNKNOWN-EXTENSION QRESYNC CONDSTORE
   * ENABLED QRESYNC CONDSTORE
   A001 OK ENABLE completed

I don't like changing the semantics of CAPABILITY just to avoid having 
a new untagged response.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAKJQobv023081 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Nov 2007 12:26:50 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAKJQoT4023080; Tue, 20 Nov 2007 12:26:50 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from ithilien.qualcomm.com (ithilien.qualcomm.com [129.46.51.59]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAKJQnSs023074 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Tue, 20 Nov 2007 12:26:49 -0700 (MST) (envelope-from randy@qualcomm.com)
Received: from totoro.qualcomm.com (totoro.qualcomm.com [129.46.61.158]) by ithilien.qualcomm.com (8.13.6/8.12.5/1.0) with ESMTP id lAKJQiQP025833 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 20 Nov 2007 11:26:45 -0800
Received: from [192.168.1.13] (vpn-10-50-16-37.qualcomm.com [10.50.16.37]) by totoro.qualcomm.com (8.13.6/8.13.6/1.0) with ESMTP id lAKJQgO5026382; Tue, 20 Nov 2007 11:26:43 -0800 (PST)
Mime-Version: 1.0
Message-Id: <p06240604c368e187f3f1@[192.168.1.13]>
In-Reply-To: <01MNY336A8QY00GULE@mauve.mrochek.com>
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <01a601c822f5$7c13bf60$743b3e20$%coates@sun.com> <4734AEF8.4090201@isode.com> <p06240602c368d49cecb9@[192.168.1.13]> <01MNY336A8QY00GULE@mauve.mrochek.com>
X-Mailer: Eudora for Mac OS X
X-message-flag: Warning: Outlook in use.  Upgrade to Eudora: <http://www.eudora.com>
Date: Tue, 20 Nov 2007 11:22:56 -0800
To: Ned Freed <ned.freed@mrochek.com>
From: Randall Gellens <randy@qualcomm.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: lemonade@ietf.org, Alexey Melnikov <alexey.melnikov@isode.com>, Peter Coates <peter.coates@sun.com>, Ned Freed <ned.freed@mrochek.com>, ietf-imapext@imc.org
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Random-Sig-Tag: 1.0b28
X-PerlMx: Message inspected by PerlMx
X-PerlMx: Message inspected by PerlMx
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

At 10:40 AM -0800 11/20/07, Ned Freed wrote:

>>  Why do you prefer not having ENABLEable extensions in the initial
>>  CAPABILITY response?
>
>  Because it removes the ability to use the response to determine what is or is
>  not enabled.

I don't understand your reply.  I parse it as: you prefer prohibiting 
any extension that can be ENABLEd from appearing in the initial 
(pre-authentication) CAPABILITY response because this way clients 
can't use the initial CAPABILITY response to determine what is or is 
not ENABLEd?

Do you mean that you want to keep all non-TLS non-authentication 
extensions out of the initial CAPABILITY response to avoid revealing 
information to an unauthenticated client?

Or do you mean that you want to prevent clients from assuming that 
any ENABLEable extension listed in the initial CAPABILITY response 
and included in the ENABLE command was successfully ENABLEd, without 
looking at the post-ENABLE CAPABILITY response?


>>  At 7:59 AM -0800 11/10/07, Ned Freed wrote:
>>>   One problem is that this presumes that enable will always succeed
>>>  for anything
>>>   that was previousliy listed as a capability. This strikes me as 
>>> risky - there
>>>   could be things where the server cannot tell there's  a problem 
>>> enabling it
>>>   until it actually goes through the steps of doing so.
>>>
>>>   I strongly prefer a model where it is possible to check to see 
>>> what's turned
>>>   on and what is not.
>
>>   >  In my approach the client authenticates and then sends the 
>> enable command
>>>   followed by a capability command to see the results of the enable.
>
>>  So ENABLE returns OK even if some extensions are not known or
>>  couldn't be turned on for whatever reason (temporary failure of a
>>  resource perhaps).  The post-authentication post-ENABLE CAPABILITY
>>  response omits anything that failed during ENABLE.  So a
>>  post-authentication pre-ENABLE CAPABILITY response may be different
>>  from a post-authentication post-ENABLE CAPABILITY response.  That
>>  seems a little odd, but it may be easier on the client, since the
>>  client only has to parse the CAPABILITY response, not the ENABLE
>>  response.  But it does effectively force the sequence
>>  CAPABILITY-authentication-ENABLE-CAPABILITY.
>
>  Correct, but clients already have to look at capabilitiez after 
> authentication
>  so this adds no overhead.

True, but it does force any client that uses ENABLE to issue it after 
authenticating and before issuing the post-authentication CAPABILITY 
command (unless the client wants to issue a third CAPABILITY command, 
which seems pointless).

So the required command sequence becomes:

     1: CAPABILITY (only to determine if TLS and which authentication
         mechanisms are supported)
     2: TLS (if being used) and authentication
     3: ENABLE (with all desired ENABLEable extensions)
     4: CAPABILITY (to see which ENABLEable extensions were turned
         on, and which other extensions are supported)


>>  At 10:25 AM -0800 11/10/07, Ned Freed wrote:
>>>   Nothing prevents us from requiring ENABLE in order to use extensions that
>>>   change command response syntax. In fact I think such a 
>>> requirement would be a
>>>   very good idea.
>
>>  I agree, but this requires a revision to CONDSTORE that deprecates
>>  the current extension and defines a new one, doesn't it?
>
>  Yes, but IMO that's a good thing.

It would make things much cleaner, so long-term would be helpful.  Is 
there support in the group for doing this?  Are there deployments of 
CONDSTORE?
-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly-selected tag: ---------------
Note that although IBM 'invented' virtual memory in 1972 it had
been available in a multi-processor multi-tasking environment on
the Burroughs B5000 line since 1963 and the B6000 line since 1968.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAKIZ5Ij017987 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Nov 2007 11:35:05 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAKIZ5M2017986; Tue, 20 Nov 2007 11:35:05 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from ithilien.qualcomm.com (ithilien.qualcomm.com [129.46.51.59]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAKIZ4Jn017978 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Tue, 20 Nov 2007 11:35:05 -0700 (MST) (envelope-from randy@qualcomm.com)
Received: from neophyte.qualcomm.com (neophyte.qualcomm.com [129.46.61.149]) by ithilien.qualcomm.com (8.13.6/8.12.5/1.0) with ESMTP id lAKIYkSO018200 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 20 Nov 2007 10:34:46 -0800
Received: from [192.168.1.13] (vpn-10-50-16-37.qualcomm.com [10.50.16.37]) by neophyte.qualcomm.com (8.13.6/8.13.6/1.0) with ESMTP id lAKIYhvA024559; Tue, 20 Nov 2007 10:34:44 -0800
Mime-Version: 1.0
Message-Id: <p06240602c368d49cecb9@[192.168.1.13]>
In-Reply-To: <4734AEF8.4090201@isode.com>
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <01a601c822f5$7c13bf60$743b3e20$%coates@sun.com> <4734AEF8.4090201@isode.com>
X-Mailer: Eudora for Mac OS X
X-message-flag: Warning: Outlook in use.  Upgrade to Eudora: <http://www.eudora.com>
Date: Tue, 20 Nov 2007 10:33:16 -0800
To: Alexey Melnikov <alexey.melnikov@isode.com>, Peter Coates <peter.coates@sun.com>, Ned Freed <ned.freed@mrochek.com>
From: Randall Gellens <randy@qualcomm.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: lemonade@ietf.org, ietf-imapext@imc.org
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Random-Sig-Tag: 1.0b28
X-PerlMx: Message inspected by PerlMx
X-PerlMx: Message inspected by PerlMx
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

At 7:03 PM +0000 11/9/07, Alexey Melnikov wrote:

>>  Thus the sequence should be either
>>  C: t1 CAPABILITY
>>  S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
>>  S: t1 OK foo
>>  C: t2 ENABLE CONDSTORE X-GOOD-IDEA
>>  S: t2 OK foo
>>  C: t3 CAPABILITY
>>  S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
>>  CONDSTORE
>>  S: t3 OK foo again
>>
>  I dislike that, because you now implicitly saying that there are 
> magic extensions which don't work unless the client knows how to 
> enable them. Really, the server should have advertised the 
> CONDSTORE extension to begin with.

I agree.

The client shouldn't have to parse both the CAPABILITY response and 
the ENABLE response to learn if an extension has been negotiated.  If 
we put all ENABLEable extensions in the CAPABILITY response, then the 
response to ENABLE can be OK even if it contains unknown extensions.

At 2:42 PM -0800 11/9/07, Ned Freed wrote:
>  My personal preference is to have the initial capability list not list things
>  that can be enabled, have enable turn on whatit can and ignore the rest, and
>  have any enabled changes show up in subsequent capability lists. This
>  leverages existing protocol features and doesn't invent new syntax or
>  require multiple commands.

Why do you prefer not having ENABLEable extensions in the initial 
CAPABILITY response?

At 7:59 AM -0800 11/10/07, Ned Freed wrote:
>  One problem is that this presumes that enable will always succeed 
> for anything
>  that was previousliy listed as a capability. This strikes me as risky - there
>  could be things where the server cannot tell there's  a problem enabling it
>  until it actually goes through the steps of doing so.
>
>  I strongly prefer a model where it is possible to check to see what's turned
>  on and what is not.

>  In my approach the client authenticates and then sends the enable command
>  followed by a capability command to see the results of the enable.

So ENABLE returns OK even if some extensions are not known or 
couldn't be turned on for whatever reason (temporary failure of a 
resource perhaps).  The post-authentication post-ENABLE CAPABILITY 
response omits anything that failed during ENABLE.  So a 
post-authentication pre-ENABLE CAPABILITY response may be different 
from a post-authentication post-ENABLE CAPABILITY response.  That 
seems a little odd, but it may be easier on the client, since the 
client only has to parse the CAPABILITY response, not the ENABLE 
response.  But it does effectively force the sequence 
CAPABILITY-authentication-ENABLE-CAPABILITY.

At 10:25 AM -0800 11/10/07, Ned Freed wrote:
>  Nothing prevents us from requiring ENABLE in order to use extensions that
>  change command response syntax. In fact I think such a requirement would be a
>  very good idea.

I agree, but this requires a revision to CONDSTORE that deprecates 
the current extension and defines a new one, doesn't it?

-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly-selected tag: ---------------
No one would choose a friendless existence even if they had
all other good things in the world.             --Aristotle



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAF9V8JY026286 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 15 Nov 2007 02:31:08 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAF9V8ZF026285; Thu, 15 Nov 2007 02:31:08 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAF9V7Qc026277 for <ietf-imapext@imc.org>; Thu, 15 Nov 2007 02:31:08 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzwR2ABBVFzn@rufus.isode.com>; Thu, 15 Nov 2007 09:31:05 +0000
Message-ID: <473C1193.8090204@isode.com>
Date: Thu, 15 Nov 2007 09:29:55 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Mark Crispin <MRC@CAC.Washington.EDU>
CC: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: Updated IMAP I18N document
References: <473B16CF.7060600@isode.com> <alpine.WNT.0.99999.0711140754530.5152@Shimo-Tomobiki.Panda.COM> <473B3743.7060205@isode.com> <alpine.WNT.0.99999.0711141637400.4728@Tomobiki-Cho.CAC.Washignton.EDU>
In-Reply-To: <alpine.WNT.0.99999.0711141637400.4728@Tomobiki-Cho.CAC.Washignton.EDU>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Mark Crispin wrote:

> I am uneasy about having COMPARATOR and UNICASEMAP as separate 
> capabilities, especially since COMPARATOR implies but does not require 
> UNICASEMAP.  This means that a client that only cares about UNICASEMAP 
> capability must test for both requirements.
>
> As an alternative, how about I18NLEVEL=<version #>, where version 1 
> means UNICASEMAP capability and version 2 means COMPARATOR?  This 
> implies that any subsequent additions will be additive with all 
> previous ones being mandatory-to-implement; but I think that is the 
> right thing in this case.

Let me think about this for a bit.

> On Wed, 14 Nov 2007, Alexey Melnikov wrote:
>
>>> I think that there should be some informative text to the effect 
>>> that the current IMAP specification specifies i;ascii-casemap, but 
>>> that for some time most servers have actually implemented 
>>> i;unicode-casemap.  So there may be legacy servers that still do 
>>> i;ascii-casemap.
>>
>> Sure. If you suggest some text I will add it ;-).
>
> How about:
>
> x. Compatibility Notes
>
>     Several server implementations deployed prior to the publication of
>     this specification comply with I18NLEVEL=1, but do not advertise
>     that.  Other legacy servers use the i;ascii-casemap (see [RFC4790])
>     comparator.
>
>     There is no good way for a client to know which comparator that a
>     legacy server uses.  If the client has to assume the worst, it may
>     end up doing expensive local operations to obtain i;unicode-casemap
>     comparisons even though the server implements it.
>
>     Legacy server implementations which comply with I18NLEVEL=1 should
>     be updated to advertise I18NLEVEL=1.  All server implementations
>     should eventually be updated to comply with I18NLEVEL=2.

Ok, this would work. I like your text.

>> An IMAP server that implements the i;unicode-casemap comparator [UCM]
>> and satisfies all requirements specified in sections 4, 4.1 and 4.2
>> of this document, but doesn't implement the COMPARATOR command and
>> response, SHOULD advertise the UNICASEMAP capability in the CAPABILITY
>> response.
>
> This is awkward: "this and this, but not that, should do the other 
> thing." Ugh.
>
> Also, 4.3 is not part of this but "section 4" implies otherwise (you 
> actually intend the introduction of section 4).

Yes, I should have moved the introduction to a subsection of section 4.1

> If we do I18NLEVEL, then the current introduction to section 4, 
> section 4.1, and section 4.2 would be the requirements of I18NLEVEL=1, 
> and I18NLEVEL=1 plus the former section 4.3 (should be a new major 
> section) would be the requirements of I18NLEVEL=2.
>
> That seems cleaner to me.




Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAF0uOhk092388 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Nov 2007 17:56:24 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAF0uORj092387; Wed, 14 Nov 2007 17:56:24 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAF0uMS2092380 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Wed, 14 Nov 2007 17:56:23 -0700 (MST) (envelope-from MRC@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.7] (may be forged)) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAF0uLAt027007 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 14 Nov 2007 16:56:21 -0800
X-Auth-Received: from Tomobiki-Cho.CAC.Washignton.EDU (tomobiki-cho.cac.washington.edu [128.95.135.58]) (authenticated authid=mrc) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAF0uLuu032031 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 14 Nov 2007 16:56:21 -0800
Date: Wed, 14 Nov 2007 16:55:50 -0800 (Pacific Standard Time)
From: Mark Crispin <MRC@CAC.Washington.EDU>
To: Alexey Melnikov <alexey.melnikov@isode.com>
cc: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: Updated IMAP I18N document
In-Reply-To: <473B3743.7060205@isode.com>
Message-ID: <alpine.WNT.0.99999.0711141637400.4728@Tomobiki-Cho.CAC.Washignton.EDU>
References: <473B16CF.7060600@isode.com>            <alpine.WNT.0.99999.0711140754530.5152@Shimo-Tomobiki.Panda.COM> <473B3743.7060205@isode.com>
User-Agent: Alpine 0.99999 (WNT 813 2007-11-14)
Organization: Networks & Distributed Computing
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.14.163556
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0'
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

I am uneasy about having COMPARATOR and UNICASEMAP as separate 
capabilities, especially since COMPARATOR implies but does not require 
UNICASEMAP.  This means that a client that only cares about UNICASEMAP 
capability must test for both requirements.

As an alternative, how about I18NLEVEL=<version #>, where version 1 means 
UNICASEMAP capability and version 2 means COMPARATOR?  This implies that 
any subsequent additions will be additive with all previous ones being 
mandatory-to-implement; but I think that is the right thing in this case.

On Wed, 14 Nov 2007, Alexey Melnikov wrote:
>> I think that there should be some informative text to the effect that the 
>> current IMAP specification specifies i;ascii-casemap, but that for some 
>> time most servers have actually implemented i;unicode-casemap.  So there 
>> may be legacy servers that still do i;ascii-casemap.
> Sure. If you suggest some text I will add it ;-).

How about:

x. Compatibility Notes

     Several server implementations deployed prior to the publication of
     this specification comply with I18NLEVEL=1, but do not advertise
     that.  Other legacy servers use the i;ascii-casemap (see [RFC4790])
     comparator.

     There is no good way for a client to know which comparator that a
     legacy server uses.  If the client has to assume the worst, it may
     end up doing expensive local operations to obtain i;unicode-casemap
     comparisons even though the server implements it.

     Legacy server implementations which comply with I18NLEVEL=1 should
     be updated to advertise I18NLEVEL=1.  All server implementations
     should eventually be updated to comply with I18NLEVEL=2.

> An IMAP server that implements the i;unicode-casemap comparator [UCM]
> and satisfies all requirements specified in sections 4, 4.1 and 4.2
> of this document, but doesn't implement the COMPARATOR command and
> response, SHOULD advertise the UNICASEMAP capability in the CAPABILITY
> response.

This is awkward: "this and this, but not that, should do the other thing." 
Ugh.

Also, 4.3 is not part of this but "section 4" implies otherwise (you 
actually intend the introduction of section 4).

If we do I18NLEVEL, then the current introduction to section 4, section 
4.1, and section 4.2 would be the requirements of I18NLEVEL=1, and 
I18NLEVEL=1 plus the former section 4.3 (should be a new major section) 
would be the requirements of I18NLEVEL=2.

That seems cleaner to me.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAELF4ZJ074021 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Nov 2007 14:15:04 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAELF4nn074020; Wed, 14 Nov 2007 14:15:04 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from ns0.neustar.com (ns0.neustar.com [156.154.16.158]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAELF2M7074008 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Wed, 14 Nov 2007 14:15:03 -0700 (MST) (envelope-from ietf@ietf.org)
Received: from stiedprstage1.ietf.org (stiedprstage1.va.neustar.com [10.31.47.10]) by ns0.neustar.com (Postfix) with ESMTP id E5D0B32987; Wed, 14 Nov 2007 21:15:01 +0000 (GMT)
Received: from ietf by stiedprstage1.ietf.org with local (Exim 4.43) id 1IsPZd-0008Gu-Qv; Wed, 14 Nov 2007 16:15:01 -0500
Content-Type: Multipart/Mixed; Boundary="NextPart"
Mime-Version: 1.0
To: i-d-announce@ietf.org
Cc: ietf-imapext@imc.org
From: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-imapext-i18n-13.txt 
Message-Id: <E1IsPZd-0008Gu-Qv@stiedprstage1.ietf.org>
Date: Wed, 14 Nov 2007 16:15:01 -0500
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts 
directories.
This draft is a work item of the Internet Message Access Protocol Extension Working Group of the IETF.

	Title		: Internet Message Access Protocol Internationalization
	Author(s)	: C. Newman, et al.
	Filename	: draft-ietf-imapext-i18n-13.txt
	Pages		: 18
	Date		: 2007-11-14
	
Internet Message Access Protocol (IMAP) version 4rev1 has basic
    support for non-ASCII characters in mailbox names and search
    substrings.  It also supports non-ASCII message headers and content
    encoded as specified by Multipurpose Internet Mail Extensions
    (MIME).  This specification defines a collection of IMAP extensions
    which improve international support including comparator negotiation
    for search, sort and thread, language negotiation for international
    error text, and translations for namespace prefixes.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-imapext-i18n-13.txt

To remove yourself from the I-D Announcement list, send a message to 
i-d-announce-request@ietf.org with the word unsubscribe in the body of 
the message. 
You can also visit https://www1.ietf.org/mailman/listinfo/I-D-announce 
to change your subscription settings.

Internet-Drafts are also available by anonymous FTP. Login with the 
username "anonymous" and a password of your e-mail address. After 
logging in, type "cd internet-drafts" and then 
"get draft-ietf-imapext-i18n-13.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt

Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-imapext-i18n-13.txt".
	
NOTE:	The mail server at ietf.org can return the document in
	MIME-encoded form by using the "mpack" utility.  To use this
	feature, insert the command "ENCODING mime" before the "FILE"
	command.  To decode the response(s), you will need "munpack" or
	a MIME-compliant mail reader.  Different MIME-compliant mail readers
	exhibit different behavior, especially when dealing with
	"multipart" MIME messages (i.e. documents which have been split
	up into multiple messages), so check your local documentation on
	how to manipulate these messages.

Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Multipart/Alternative; Boundary="OtherAccess"

--OtherAccess
Content-Type: Message/External-body;
	access-type="mail-server";
	server="mailserv@ietf.org"

Content-Type: text/plain
Content-ID:	<2007-11-14150746.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-imapext-i18n-13.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-imapext-i18n-13.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID:	<2007-11-14150746.I-D@ietf.org>

--OtherAccess--

--NextPart--



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAEHwmGj051099 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Nov 2007 10:58:48 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAEHwm32051098; Wed, 14 Nov 2007 10:58:48 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAEHwkWT051090 for <ietf-imapext@imc.org>; Wed, 14 Nov 2007 10:58:47 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <Rzs3UwBBVJ86@rufus.isode.com>; Wed, 14 Nov 2007 17:58:44 +0000
Message-ID: <473B3743.7060205@isode.com>
Date: Wed, 14 Nov 2007 17:58:27 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Mark Crispin <MRC@CAC.Washington.EDU>
CC: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: Updated IMAP I18N document
References: <473B16CF.7060600@isode.com> <alpine.WNT.0.99999.0711140754530.5152@Shimo-Tomobiki.Panda.COM>
In-Reply-To: <alpine.WNT.0.99999.0711140754530.5152@Shimo-Tomobiki.Panda.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Mark Crispin wrote:

> On Wed, 14 Nov 2007, Alexey Melnikov wrote:
>
>> 1). i;unicode-casemap is the mandatory to implement collation now. I 
>> also removed any requirements to implement i;octet or 
>> i;ascii-casemap, as there was no consensus to keep them.
>
> So how are i;octet and i;ascii-casemap referenced now?

They aren't. (i;octet is only references in the section which describes 
SEARCH behavior)

> I think that there should be some informative text to the effect that 
> the current IMAP specification specifies i;ascii-casemap, but that for 
> some time most servers have actually implemented i;unicode-casemap.  
> So there may be legacy servers that still do i;ascii-casemap.

Sure. If you suggest some text I will add it ;-).

> Since i;unicode-casemap references i;octet, that means that some form 
> of i;octet has to be implemented

True, but it doesn't have to be selectable using the COMPARATOR command.

> (if only as part of i;unicode-casemap). i;octet is basically memcmp() 
> with unsigned octets.
>
>> 3). Added the UNICASEMAP capability, which basically means support 
>> i;unicode-casemap + SEARCH behavior as described by the COMPARATOR 
>> extension.
>
> Also SORT and THREAD, correct?

Yes, that was the intent.
If you find that the new text is unclear, please let me know:

An IMAP server that implements the i;unicode-casemap comparator [UCM]
and satisfies all requirements specified in sections 4, 4.1 and 4.2
of this document, but doesn't implement the COMPARATOR command and
response, SHOULD advertise the UNICASEMAP capability in the CAPABILITY
response.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAEGO0n5040578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Nov 2007 09:24:00 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAEGO0dZ040577; Wed, 14 Nov 2007 09:24:00 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAEGNwLr040571 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Wed, 14 Nov 2007 09:23:59 -0700 (MST) (envelope-from MRC@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.141] (may be forged)) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAEGNvf2018757 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 14 Nov 2007 08:23:58 -0800
X-Auth-Received: from Shimo-Tomobiki.Panda.COM (panda.com [206.124.149.114]) (authenticated authid=mrc) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAEGNuTY025715 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Wed, 14 Nov 2007 08:23:57 -0800
Date: Wed, 14 Nov 2007 08:23:54 -0800
From: Mark Crispin <MRC@CAC.Washington.EDU>
To: Alexey Melnikov <alexey.melnikov@isode.com>
cc: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: Updated IMAP I18N document
In-Reply-To: <473B16CF.7060600@isode.com>
Message-ID: <alpine.WNT.0.99999.0711140754530.5152@Shimo-Tomobiki.Panda.COM>
References: <473B16CF.7060600@isode.com>
User-Agent: Alpine 0.99999 (WNT 813 2007-11-14)
Organization: Networks & Distributed Computing
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.14.80026
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0'
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

On Wed, 14 Nov 2007, Alexey Melnikov wrote:
> 1). i;unicode-casemap is the mandatory to implement collation now. I also 
> removed any requirements to implement i;octet or i;ascii-casemap, as there 
> was no consensus to keep them.

So how are i;octet and i;ascii-casemap referenced now?

I think that there should be some informative text to the effect that the 
current IMAP specification specifies i;ascii-casemap, but that for some 
time most servers have actually implemented i;unicode-casemap.  So there 
may be legacy servers that still do i;ascii-casemap.

Since i;unicode-casemap references i;octet, that means that some form of 
i;octet has to be implemented (if only as part of i;unicode-casemap). 
i;octet is basically memcmp() with unsigned octets.

> 3). Added the UNICASEMAP capability, which basically means support 
> i;unicode-casemap + SEARCH behavior as described by the COMPARATOR extension.

Also SORT and THREAD, correct?

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAEFjl5t036138 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Nov 2007 08:45:47 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAEFjlA5036137; Wed, 14 Nov 2007 08:45:47 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAEFjkQ3036131 for <ietf-imapext@imc.org>; Wed, 14 Nov 2007 08:45:47 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzsYKABBVAQP@rufus.isode.com>; Wed, 14 Nov 2007 15:45:45 +0000
Message-ID: <473B181F.6090502@isode.com>
Date: Wed, 14 Nov 2007 15:45:35 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Mark Crispin <MRC@CAC.Washington.EDU>
CC: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: error in draft-ietf-imapext-i18n-12.txt
References: <alpine.WNT.0.9999.0710091643120.5004@Tomobiki-Cho.CAC.Washignton.EDU>
In-Reply-To: <alpine.WNT.0.9999.0710091643120.5004@Tomobiki-Cho.CAC.Washignton.EDU>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Mark Crispin wrote:

> The word "presently" is used twice in this document.
>
> The English word "presently" means "soon"/"after a short time", as in 
> "I will wash the dishes presently."  The use of "presently" to mean 
> "currently" (which in context seems to be the intended meaning) is 
> American English slang and not accepted by all authorities.
>
> In the name of unambiguity and good diction, please change "presently" 
> to "currently" or "at present".  Thanks

I forgot to change this in -13, but this will be changed in -14.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAEFeBI7035692 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Nov 2007 08:40:11 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAEFeBgN035691; Wed, 14 Nov 2007 08:40:11 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAEFeANn035684 for <ietf-imapext@imc.org>; Wed, 14 Nov 2007 08:40:11 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzsW1wBBVK3U@rufus.isode.com>; Wed, 14 Nov 2007 15:40:08 +0000
Message-ID: <473B16CF.7060600@isode.com>
Date: Wed, 14 Nov 2007 15:39:59 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Updated IMAP I18N document
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

I've just posted -13, it should be announced in a couple of days. The 
following changes to the document were made:

1). i;unicode-casemap is the mandatory to implement collation now. I 
also removed any requirements to implement i;octet or i;ascii-casemap, 
as there was no consensus to keep them.

2). Updated text about use of collations in SEARCH/SORT/THREAD. This 
pretty much replaces section 4.2. Please review and let me know if you 
happy with the new text.

3). Added the UNICASEMAP capability, which basically means support 
i;unicode-casemap + SEARCH behavior as described by the COMPARATOR 
extension.

4). Updated references.

=======
Note that some other changes were discussed on the mailing list, but 
they will have to wait till -14.

Regards,
Alexey



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACJZFl0026050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Nov 2007 12:35:15 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lACJZFT8026049; Mon, 12 Nov 2007 12:35:15 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACJZDMl026043 for <ietf-imapext@imc.org>; Mon, 12 Nov 2007 12:35:14 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <Rziq7gBBVC3m@rufus.isode.com>; Mon, 12 Nov 2007 19:35:12 +0000
Message-ID: <4738AABA.5080401@isode.com>
Date: Mon, 12 Nov 2007 19:34:18 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Ned Freed <ned.freed@mrochek.com>
CC: Dan Karp <dkarp@zimbra.com>, Peter Coates <peter.coates@sun.com>, lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <1679890550.110521194650065847.JavaMail.root@dogfood.zimbra.com> <260231135.117501194665728404.JavaMail.root@dogfood.zimbra.com> <01MNJYDCJNVE00BDC1@mauve.mrochek.com>
In-Reply-To: <01MNJYDCJNVE00BDC1@mauve.mrochek.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Ned Freed wrote:

>>>>Why not just have ENABLE fail unless all the requested capabilities
>>>>are implemented and enable-able?  This would generally require waiting
>>>>until after authentication to call ENABLE, but I'm not even sure why
>>>>it's ever useful in the NOT AUTHENTICATED state...
>>>>        
>>>>
>>>Because clients can have have both features they require and features
>>>they can use if available. If things work this way a client would have
>>>to issue one ENABLE for the required stuff and then a separate ENABLE
>>>for each optional thing they can use.      
>>>
>>Why?  Authenticate, issue CAPABILITY (or get an unsolicited one from the
>>authentication step), check to see if it includes all the required
>>capabilities, and issue a single ENABLE containing all the capabilities
>>(required and desired) that you want to enable.    
>>
>One problem is that this presumes that enable will always succeed for anything
>that was previousliy listed as a capability. This strikes me as risky - there
>could be things where the server cannot tell there's  a problem enabling it
>until it actually goes through the steps of doing so.
>  
>
Can you think of an example when enabling would fail for any reason 
other than the feature not being supported?

>I strongly prefer a model where it is possible to check to see what's turned 
>on and what is not.
>
Agreed.
(The CAPABILITY response code works for that).




Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACHTDdO015064 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Nov 2007 10:29:13 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lACHTDqJ015063; Mon, 12 Nov 2007 10:29:13 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACHTBKJ015053 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Mon, 12 Nov 2007 10:29:12 -0700 (MST) (envelope-from mrc@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lACHT6gK031184 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 12 Nov 2007 09:29:06 -0800
X-Auth-Received: from pangtzu.panda.com (pangtzu.panda.com [206.124.149.117]) (authenticated authid=mrc) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lACHT5fF004184 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 12 Nov 2007 09:29:06 -0800
Date: Mon, 12 Nov 2007 09:29:04 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Alexey Melnikov <alexey.melnikov@isode.com>
cc: Ned Freed <ned.freed@mrochek.com>, lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
In-Reply-To: <47385714.6030506@isode.com>
Message-ID: <alpine.OSX.0.99999.0711120926070.23348@pangtzu.panda.com>
References: <01MNJYDCJNVE00BDC1@mauve.mrochek.com> <1441926969.141961194713882140.JavaMail.root@dogfood.zimbra.com> <01MNK37NMXWY00BDC1@mauve.mrochek.com> <47385714.6030506@isode.com>
User-Agent: Alpine 0.99999 (OSX 810 2007-11-10)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.12.91042
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0'
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

On Mon, 12 Nov 2007, Alexey Melnikov wrote:
> Many years ago, when I was still an IMAP client developer, I thought that the 
> CAPABILITY response is immutable for the duration of an IMAP connection (e.g. 
> before and after AUTHENTICATE/LOGIN). This doesn't seem to be the case in 
> real world now.

Nor was it ever the case.

> Many servers advertise different capabilities upon connection 
> (in the CAPABILITY response code) and after authentication.

Yes.

> However this is not explicitly defined in RFC 3501. It only says that the 
> list of capabilities can change after STARTTLS or AUTHENTICATE/LOGIN. RFC 
> 3501 is silent if the list of capabilities can change at any other moment.

I certainly hope not.  If it does, someone badly misdesigned something.

> The document is also silent on whether CAPABILITY responses/response codes 
> are additive or not (i.e. if * "CAPABILITY FOO" followed by "* CAPABILITY 
> BAR" is the same as "* CAPABILITY FOO BAR"). I think these things should be 
> clarified for the sake of existing and future client developers.

I hope that this question never comes up in real life; but I don't think 
that capabilities should be additive.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACDbwNW093468 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Nov 2007 06:37:58 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lACDbw13093466; Mon, 12 Nov 2007 06:37:58 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACDbuof093460 for <ietf-imapext@imc.org>; Mon, 12 Nov 2007 06:37:57 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzhXMgBBVI8P@rufus.isode.com>; Mon, 12 Nov 2007 13:37:55 +0000
Message-ID: <47385714.6030506@isode.com>
Date: Mon, 12 Nov 2007 13:37:24 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Ned Freed <ned.freed@mrochek.com>
CC: Dan Karp <dkarp@zimbra.com>, lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <01MNJYDCJNVE00BDC1@mauve.mrochek.com> <1441926969.141961194713882140.JavaMail.root@dogfood.zimbra.com> <01MNK37NMXWY00BDC1@mauve.mrochek.com>
In-Reply-To: <01MNK37NMXWY00BDC1@mauve.mrochek.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Ned Freed wrote:

>>>>That's about as simple as you can make it if some servers won't
>>>>return a full capability list until after authentication.        
>>>>
>>>Well, let's see. In your approach the client authenticates, sends a
>>>capability command, checks the result to make sure the stuff that's
>>>required is there, and then constructs a enable command depending
>>>on that response.
>>>
>>>In my approach the client authenticates and then sends the enable
>>>command followed by a capability command to see the results of the
>>>enable.
>>>
Ned, while I agree that your proposal is simpler (when I saw your 
message I was about to reply to Dan saying that he moved complexity from 
the server end to the client end), I have to agree with Dan that what 
you propose is not what existing mail clients do.

>>Yeah, but that's not how IMAP or CONDSTORE work.
>>
>
>We get to define how IMAP and CONDSTORE work.
>
We can redefine how IMAP works with new extensions, but I don't think we 
can change CONDSTORE now, as it is an RFC for more than a year now. (But 
we still can change QRESYNC, if needed)

>>If a server supports a capability, it must come back in a
>>post-authentication CAPABILITY response. 
>>
I agree with Dan. Note that this actually doesn't contradict what you've 
suggested.

>I quite simply disagree. This may be how things have been done in the past but
>it isn't necessarily how things need to work in the future.
>
Yes, we can change how this works, but I frankly don't think that the 
client should ask for the list of available capabilities yet again after 
issuing the ENABLE command.

Many years ago, when I was still an IMAP client developer, I thought 
that the CAPABILITY response is immutable for the duration of an IMAP 
connection (e.g. before and after AUTHENTICATE/LOGIN). This doesn't seem 
to be the case in real world now. Many servers advertise different 
capabilities upon connection (in the CAPABILITY response code) and after 
authentication.
However this is not explicitly defined in RFC 3501. It only says that 
the list of capabilities can change after STARTTLS or 
AUTHENTICATE/LOGIN. RFC 3501 is silent if the list of capabilities can 
change at any other moment. The document is also silent on whether 
CAPABILITY responses/response codes are additive or not (i.e. if * 
"CAPABILITY FOO" followed by "* CAPABILITY BAR" is the same as "* 
CAPABILITY FOO BAR"). I think these things should be clarified for the 
sake of existing and future client developers.

>>Not every client will support ENABLE.  When you have extensions like CONDSTORE
>>that can be enabled either explicitly via ENABLE or implicitly via certain
>>command arguments, a non-ENABLE-savvy client will have no idea that it can use
>>CONDSTORE.
>>    
>>
>
>Nothing prevents us from requiring ENABLE in order to use extensions that
>change command response syntax. In fact I think such a requirement would be a
>very good idea.
>
I agree with this statement. But I think this is an orthogonal issue to 
whether something needs to be advertised in the CAPABILITY response or not.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACDPLug092517 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Nov 2007 06:25:21 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lACDPLt8092516; Mon, 12 Nov 2007 06:25:21 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACDPKpl092510 for <ietf-imapext@imc.org>; Mon, 12 Nov 2007 06:25:20 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzhUPABBVEet@rufus.isode.com>; Mon, 12 Nov 2007 13:25:19 +0000
Message-ID: <4738541E.7060408@isode.com>
Date: Mon, 12 Nov 2007 13:24:46 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: ietf-imapext@imc.org
Subject: [Fwd: Request to discuss draft-ietf-imapext-i18n at the Lemonade WG         meeting in Vancouver]
Content-Type: multipart/mixed; boundary="------------000608020702030204090502"
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

--------------000608020702030204090502
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

I meant to send this to the IMAPEXT mailing list.


--------------000608020702030204090502
Content-Type: message/rfc822;
 name="Request to discuss draft-ietf-imapext-i18n at the Lemonade WG         meetingin Vancouver"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Request to discuss draft-ietf-imapext-i18n at the Lemonade WG         meetingin Vancouver"

Return-Path: <alexey.melnikov@isode.com>
Received: from rufus.isode.com ([62.3.217.251])
	by canine.isode.net (Isode M-Box/14.1v1) with LMTP; Mon, 12 Nov 2007 13:20:55 +0000 (GMT)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250]) 
          by rufus.isode.com (submission channel) via TCP with ESMTPA 
          id <RzhTNABBVLyI@rufus.isode.com>; Mon, 12 Nov 2007 13:20:54 +0000
Message-ID: <47385317.501@isode.com>
Date: Mon, 12 Nov 2007 13:20:23 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12)
            Gecko/20050915
X-Accept-Language: en-us, en
To: Lemonade WG <lemonade@ietf.org>, IMAP Mailing List <imap@u.washington.edu>
Subject: Request to discuss draft-ietf-imapext-i18n at the Lemonade WG
         meeting in Vancouver
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi everybody,

The IMAPEXT WG is not going to meet in Vancouver. Lemonade Profile Bis 
currently depends on draft-ietf-imapext-i18n (via LISTEXT and METADATA). 
Any objections to quickly discussing open issue with 
draft-ietf-imapext-i18n at the Lemonade WG meeting in Vancouver?

Regards,
Alexey


--------------000608020702030204090502--



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACDI2Jx091826 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Nov 2007 06:18:02 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lACDI2Qu091825; Mon, 12 Nov 2007 06:18:02 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACDI1df091819 for <ietf-imapext@imc.org>; Mon, 12 Nov 2007 06:18:02 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzhShwBBVINy@rufus.isode.com>; Mon, 12 Nov 2007 13:18:00 +0000
Message-ID: <4738526A.4030707@isode.com>
Date: Mon, 12 Nov 2007 13:17:30 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Arnt Gulbrandsen <arnt@oryx.com>
CC: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <D4lWhk9l/Lzk7eHKA9GvDg.md5@libertango.oryx.com> <47384D95.4050800@isode.com> <luXtAg7LN5PPeCaJqjaYRA.md5@libertango.oryx.com>
In-Reply-To: <luXtAg7LN5PPeCaJqjaYRA.md5@libertango.oryx.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Arnt Gulbrandsen wrote:

> Alexey Melnikov writes:
>
>> As it turned out we weren't. I though Peter disliked probing for 
>> available extensions using ENABLE, but he didn't. After reading this 
>> thread it looks like Ken and myself dislike probing, but I am not 
>> sure who else dislikes it.
>
> I dislike probing.
>
> My _personal_ preferences would be for an ENABLE which is usable only 
> after login, which can be used any time, but where all the examples 
> show it being used as part of connection startup. I'm neutral on 
> whether ENABLE CONDSTORE should fail on a CONDSTORE-ignorant server. 

I prefer that the server just ignores extensions that it doesn't 
recognize or which can't be enabled.
There are ways for the client to figure out which extensions were 
enabled and which were not.

> (I'm happy with the text there now, but it's not exactly what I would 
> have put in if it were only up to me.)




Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACDCAuC091243 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Nov 2007 06:12:10 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lACDCAa6091241; Mon, 12 Nov 2007 06:12:10 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from kalyani.oryx.com (kalyani.oryx.com [195.30.37.30]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACDC8AQ091235 for <ietf-imapext@imc.org>; Mon, 12 Nov 2007 06:12:09 -0700 (MST) (envelope-from arnt@oryx.com)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id 82C854AC2B; Mon, 12 Nov 2007 14:12:21 +0100 (CET)
Message-Id: <luXtAg7LN5PPeCaJqjaYRA.md5@libertango.oryx.com>
Date: Mon, 12 Nov 2007 14:12:48 +0100
From: Arnt Gulbrandsen <arnt@oryx.com>
To: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: Alexey Melnikov <alexey.melnikov@isode.com>
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <D4lWhk9l/Lzk7eHKA9GvDg.md5@libertango.oryx.com> <47384D95.4050800@isode.com>
In-Reply-To: <47384D95.4050800@isode.com>
Content-Type: text/plain; format=flowed
MIME-Version: 1.0
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Alexey Melnikov writes:
> As it turned out we weren't. I though Peter disliked probing for 
> available extensions using ENABLE, but he didn't. After reading this 
> thread it looks like Ken and myself dislike probing, but I am not 
> sure who else dislikes it.

I dislike probing.

My _personal_ preferences would be for an ENABLE which is usable only 
after login, which can be used any time, but where all the examples 
show it being used as part of connection startup. I'm neutral on 
whether ENABLE CONDSTORE should fail on a CONDSTORE-ignorant server. 
(I'm happy with the text there now, but it's not exactly what I would 
have put in if it were only up to me.)

Arnt



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACCvSi4089388 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Nov 2007 05:57:28 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lACCvSI3089387; Mon, 12 Nov 2007 05:57:28 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACCvROA089380 for <ietf-imapext@imc.org>; Mon, 12 Nov 2007 05:57:27 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzhNswBBVG-s@rufus.isode.com>; Mon, 12 Nov 2007 12:57:24 +0000
Message-ID: <47384D95.4050800@isode.com>
Date: Mon, 12 Nov 2007 12:56:53 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Arnt Gulbrandsen <arnt@oryx.com>
CC: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <D4lWhk9l/Lzk7eHKA9GvDg.md5@libertango.oryx.com>
In-Reply-To: <D4lWhk9l/Lzk7eHKA9GvDg.md5@libertango.oryx.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Arnt Gulbrandsen wrote:

> Alexey Melnikov writes:
>
>> Arnt Gulbrandsen wrote:
>>
>>>> I also don't like the fact that we're documenting that ENABLE can 
>>>> be used to probe for extensions (as per paragraph 2 in section 5).  
>>>> We already have a command to list extensions.
>>>
>>> I'm perfectly happy taking that out, if that would be appropriate. I 
>>> thought this sort of thing was supposed to be listed in security 
>>> considerations.
>>
>> Based on various off-list discussions I got impression that several 
>> people really disliked that.
>
> Are we talking about the same thing?

As it turned out we weren't. I though Peter disliked probing for 
available extensions using ENABLE, but he didn't.
After reading this thread it looks like Ken and myself dislike probing, 
but I am not sure who else dislikes it.

> I thought Peter referred to the security considerations, but now you 
> suggest changing something else.





Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACCrOOi088989 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 12 Nov 2007 05:53:24 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lACCrOMb088988; Mon, 12 Nov 2007 05:53:24 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from kalyani.oryx.com (kalyani.oryx.com [195.30.37.30]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lACCrNm1088978 for <ietf-imapext@imc.org>; Mon, 12 Nov 2007 05:53:24 -0700 (MST) (envelope-from arnt@oryx.com)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id 844E14ACC1; Mon, 12 Nov 2007 13:53:35 +0100 (CET)
Message-Id: <D4lWhk9l/Lzk7eHKA9GvDg.md5@libertango.oryx.com>
Date: Mon, 12 Nov 2007 13:54:02 +0100
From: Arnt Gulbrandsen <arnt@oryx.com>
To: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: Alexey Melnikov <alexey.melnikov@isode.com>
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com>
In-Reply-To: <473487D3.4020002@isode.com>
Content-Type: text/plain; format=flowed
MIME-Version: 1.0
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Alexey Melnikov writes:
> Arnt Gulbrandsen wrote:
>
>>> I also don't like the fact that we're documenting that ENABLE can be 
>>> used to probe for extensions (as per paragraph 2 in section 5).  We 
>>> already have a command to list extensions.
>>
>> I'm perfectly happy taking that out, if that would be appropriate. I 
>> thought this sort of thing was supposed to be listed in security 
>> considerations.
>
> Based on various off-list discussions I got impression that several 
> people really disliked that.

Are we talking about the same thing? I thought Peter referred to the 
security considerations, but now you suggest changing something else.

Arnt



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAAIunHe026127 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 10 Nov 2007 11:56:49 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAAIunis026126; Sat, 10 Nov 2007 11:56:49 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAAIuj0L026120 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Sat, 10 Nov 2007 11:56:48 -0700 (MST) (envelope-from mrc@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAAIuh21002149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 10 Nov 2007 10:56:43 -0800
X-Auth-Received: from pangtzu.panda.com (pangtzu.panda.com [206.124.149.117]) (authenticated authid=mrc) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lAAIufdg013399 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 10 Nov 2007 10:56:42 -0800
Date: Sat, 10 Nov 2007 10:56:40 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Ned Freed <ned.freed@mrochek.com>
cc: Dan Karp <dkarp@zimbra.com>, lemonade@ietf.org, ietf-imapext@imc.org, Peter Coates <peter.coates@sun.com>, Alexey Melnikov <alexey.melnikov@isode.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
In-Reply-To: <01MNK37NMXWY00BDC1@mauve.mrochek.com>
Message-ID: <alpine.OSX.0.99999.0711101039240.23348@pangtzu.panda.com>
References: <01MNJYDCJNVE00BDC1@mauve.mrochek.com> <1441926969.141961194713882140.JavaMail.root@dogfood.zimbra.com> <01MNK37NMXWY00BDC1@mauve.mrochek.com>
User-Agent: Alpine 0.99999 (OSX 810 2007-11-10)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.10.102925
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_NAME_BODY 0, __CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0'
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

On Sat, 10 Nov 2007, Ned Freed wrote:
> We get to define how IMAP and CONDSTORE work.

Slight note of unpleasant reality:

IMAP is a very large and complex protocol, even at its base level.  It is 
difficult to implement correctly; and fewer people are trying.

The IMAP client world is dominated by programs such as Outlook and 
Thunderbird, which use only a tiny fraction of the base specification 
facilities and (with the possible exception of UIDPLUS) none of the 
extensions.

The IMAP server world is being taken over by Exchange and GMail, neither 
of which implement more than a fraction (as in one or two) of the current 
set of extensions.  What's more, Exchange's implementation of the base 
specification is buggy, and GMail's implementation of the base 
specification is incomplete.  There are numerous other servers which have 
incomplete and/or incorrect implementations of the base specification, and 
it gets worse when you get to extensions.

Pine/Alpine is rapidly becoming less viable in the world, not because it 
is text based but because it depends upon servers that offer full and 
correct implementation of the base specification and of any extensions.

I am currently fighting a losing battle on deployment of [censored] server 
which does not correctly implement IMAP (and thus breaks Pine/Alpine) with 
the counter-argument being "it works fine for Outlook and Thunderbird."

That's right, boys and girls, you (meaning the IETF) are no longer 
defining IMAP.  Microsoft, Mozilla, Google, etc. are who defines IMAP 
today.  They may pay lip service to your definition, but they ignore it in 
real life.

It bewilders me that you are still talking about making IMAP large and 
more complex.  Do you really think that the tide is going to be turned 
back?

I now return you back to your fascinating discussion.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAAGwAc6017842 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 10 Nov 2007 09:58:10 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAAGwAhO017841; Sat, 10 Nov 2007 09:58:10 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mta01.zimbra.com (mta01.zimbra.com [77.67.121.29]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAAGw9wr017833 for <ietf-imapext@imc.org>; Sat, 10 Nov 2007 09:58:09 -0700 (MST) (envelope-from dkarp@zimbra.com)
Received: from dogfood.zimbra.com (dsl092-025-198.sfo1.dsl.speakeasy.net [66.92.25.198]) by mta01.zimbra.com (Postfix) with ESMTP id 65D03DE842F; Sat, 10 Nov 2007 08:58:09 -0800 (PST)
Received: from localhost (localhost.localdomain [127.0.0.1]) by dogfood.zimbra.com (Postfix) with ESMTP id 36A5F1D5585; Sat, 10 Nov 2007 08:58:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at dogfood.zimbra.com
Received: from dogfood.zimbra.com ([127.0.0.1]) by localhost (dogfood.zimbra.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cCbUtdsC3C7E; Sat, 10 Nov 2007 08:58:02 -0800 (PST)
Received: from dogfood.zimbra.com (localhost.localdomain [127.0.0.1]) by dogfood.zimbra.com (Postfix) with ESMTP id 6EF2E1D5581; Sat, 10 Nov 2007 08:58:02 -0800 (PST)
Date: Sat, 10 Nov 2007 08:58:02 -0800 (PST)
From: Dan Karp <dkarp@zimbra.com>
To: Ned Freed <ned.freed@mrochek.com>
Cc: Ned Freed <ned.freed@mrochek.com>, Peter Coates <peter.coates@Sun.COM>, lemonade@ietf.org, ietf-imapext@imc.org, Alexey Melnikov <alexey.melnikov@isode.com>
Message-ID: <1441926969.141961194713882140.JavaMail.root@dogfood.zimbra.com>
In-Reply-To: <01MNJYDCJNVE00BDC1@mauve.mrochek.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [70.130.132.81]
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

> > That's about as simple as you can make it if some servers won't
> > return a full capability list until after authentication.
> 
> Well, let's see. In your approach the client authenticates, sends a
> capability command, checks the result to make sure the stuff that's
> required is there, and then constructs a enable command depending
> on that response.
> 
> In my approach the client authenticates and then sends the enable
> command followed by a capability command to see the results of the
> enable.

Yeah, but that's not how IMAP or CONDSTORE work.  If a server supports a capability, it must come back in a post-authentication CAPABILITY response.  Not every client will support ENABLE.  When you have extensions like CONDSTORE that can be enabled either explicitly via ENABLE or implicitly via certain command arguments, a non-ENABLE-savvy client will have no idea that it can use CONDSTORE.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAADs8B9002612 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 10 Nov 2007 06:54:08 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAADs8KD002611; Sat, 10 Nov 2007 06:54:08 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from dovecot.org (dovecot.org [82.118.211.50]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAADs6sT002603 for <ietf-imapext@imc.org>; Sat, 10 Nov 2007 06:54:07 -0700 (MST) (envelope-from tss@iki.fi)
Received: from [192.168.10.2] (82-203-162-146.dsl.gohome.fi [82.203.162.146]) by dovecot.org (Postfix) with ESMTP id 4BC99FA8A68; Sat, 10 Nov 2007 15:54:03 +0200 (EET)
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
From: Timo Sirainen <tss@iki.fi>
To: Dan Karp <dkarp@zimbra.com>
Cc: Peter Coates <peter.coates@Sun.COM>, lemonade@ietf.org, ietf-imapext@imc.org, Alexey Melnikov <alexey.melnikov@isode.com>, Arnt Gulbrandsen <arnt@oryx.com>
In-Reply-To: <90089910.86811194630213289.JavaMail.root@dogfood.zimbra.com>
References: <90089910.86811194630213289.JavaMail.root@dogfood.zimbra.com>
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-7On8w524wMwiKs5SaFt3"
Date: Sat, 10 Nov 2007 15:54:02 +0200
Message-Id: <1194702842.25921.939.camel@hurina>
Mime-Version: 1.0
X-Mailer: Evolution 2.12.0 
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

--=-7On8w524wMwiKs5SaFt3
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Fri, 2007-11-09 at 09:43 -0800, Dan Karp wrote:
> I think that we're unnecessarily complicating a fundamentally simple
> idea.  Why not just have ENABLE fail unless all the requested
> capabilities are implemented and enable-able?  This would generally
> require waiting until after authentication to call ENABLE, but I'm not
> even sure why it's ever useful in the NOT AUTHENTICATED state...

I'd really like if it worked only after authentication. I think NOT
AUTHENTICATED state should be as simple as possible. The user is still
untrusted at that point, so the less features server needs to worry
about at that point, the less chances there are for bugs/security holes.


--=-7On8w524wMwiKs5SaFt3
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBHNbf6yUhSUUBViskRApg6AKCBIxzVS4mJmhmEfMxCoMizI1qn6gCgiZVH
sJdkuJg+zHMg7cqt62gxa/I=
=HLxP
-----END PGP SIGNATURE-----

--=-7On8w524wMwiKs5SaFt3--



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAA3ZcHs063492 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Nov 2007 20:35:38 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lAA3ZcLf063491; Fri, 9 Nov 2007 20:35:38 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mta01.zimbra.com (mta01.zimbra.com [77.67.121.29]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lAA3ZaJ9063485 for <ietf-imapext@imc.org>; Fri, 9 Nov 2007 20:35:37 -0700 (MST) (envelope-from dkarp@zimbra.com)
Received: from dogfood.zimbra.com (dogfood.zimbra.com [10.10.130.20]) by mta01.zimbra.com (Postfix) with ESMTP id 861B4DE8E4C; Fri,  9 Nov 2007 19:35:36 -0800 (PST)
Received: from localhost (localhost.localdomain [127.0.0.1]) by dogfood.zimbra.com (Postfix) with ESMTP id 53EC21D5571; Fri,  9 Nov 2007 19:35:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at dogfood.zimbra.com
Received: from dogfood.zimbra.com ([127.0.0.1]) by localhost (dogfood.zimbra.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QWev1XetcJeF; Fri,  9 Nov 2007 19:35:28 -0800 (PST)
Received: from dogfood.zimbra.com (localhost.localdomain [127.0.0.1]) by dogfood.zimbra.com (Postfix) with ESMTP id 7E6891D5574; Fri,  9 Nov 2007 19:35:28 -0800 (PST)
Date: Fri, 9 Nov 2007 19:35:28 -0800 (PST)
From: Dan Karp <dkarp@zimbra.com>
To: Ned Freed <ned.freed@mrochek.com>
Cc: Peter Coates <peter.coates@Sun.COM>, lemonade@ietf.org, ietf-imapext@imc.org, Alexey Melnikov <alexey.melnikov@isode.com>
Message-ID: <260231135.117501194665728404.JavaMail.root@dogfood.zimbra.com>
In-Reply-To: <1679890550.110521194650065847.JavaMail.root@dogfood.zimbra.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [70.130.132.81]
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

> > Why not just have ENABLE fail unless all the requested capabilities
> > are implemented and enable-able?  This would generally require waiting
> > until after authentication to call ENABLE, but I'm not even sure why
> > it's ever useful in the NOT AUTHENTICATED state...
> 
> Because clients can have have both features they require and features
> they can use if available. If things work this way a client would have
> to issue one ENABLE for the required stuff and then a separate ENABLE
> for each optional thing they can use.

Why?  Authenticate, issue CAPABILITY (or get an unsolicited one from the authentication step), check to see if it includes all the required capabilities, and issue a single ENABLE containing all the capabilities (required and desired) that you want to enable.

That's about as simple as you can make it if some servers won't return a full capability list until after authentication.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA9J46Uv031193 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Nov 2007 12:04:06 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA9J46XT031192; Fri, 9 Nov 2007 12:04:06 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA9J44EV031183 for <ietf-imapext@imc.org>; Fri, 9 Nov 2007 12:04:05 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzSvIQAnN7KU@rufus.isode.com>; Fri, 9 Nov 2007 19:04:03 +0000
Message-ID: <4734AEF8.4090201@isode.com>
Date: Fri, 09 Nov 2007 19:03:20 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Peter Coates <peter.coates@sun.com>
CC: "'Arnt Gulbrandsen'" <arnt@oryx.com>, lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com> <01a601c822f5$7c13bf60$743b3e20$%coates@sun.com>
In-Reply-To: <01a601c822f5$7c13bf60$743b3e20$%coates@sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Peter Coates wrote:

>What?  If Enabling an extension does not affect the CAPABILITY vector, and
>if the ENABLE command silenty ignores extensions the server does not want to
>allow or which it does not know, then after the sequence
>
> C: t1 CAPABILITY
> S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
> S: t1 OK foo
> C: t2 ENABLE CONDSTORE X-GOOD-IDEA
> S: t2 OK foo
>
>the client does not know whether CONDSTORE is enabled or not.
>
>I assert that either the enable command has to tell the client which things worked (or
>which things didn't), or the capability vector has to change
>  
>
Agreed, but this can (and I think should) be done in a way which doesn't 
contradict text I've suggested. See below.

>Thus the sequence should be either
> C: t1 CAPABILITY
> S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
> S: t1 OK foo
> C: t2 ENABLE CONDSTORE X-GOOD-IDEA
> S: t2 OK foo
> C: t3 CAPABILITY
> S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
>CONDSTORE
> S: t3 OK foo again
>  
>
I dislike that, because you now implicitly saying that there are magic 
extensions which don't work unless the client knows how to enable them. 
Really, the server should have advertised the CONDSTORE extension to 
begin with.

>Or
> C: t1 CAPABILITY
> S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
> S: t1 OK foo
> C: t2 ENABLE CONDSTORE X-GOOD-IDEA
> S: * OK [ENABLED CONDSTORE] or some variant of this
>  
>
(Or just use the CAPABILITY response code: it serves the same purpose + 
can save a round trip in this case.)

So if you insist on being able to change the capability list, it is much 
better to return the updated list using the CAPABILITY response code. 
Clients should already be able to handle unsolicited updates, in 
particular because the CAPABILITY response code payload frequently 
changes after LOGIN/AUTHENTICATE.
This allows the client to figure out if an extension can be enabled 
after all.

> S: t2 OK foo
> C: t3 CAPABILITY
> S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
> S: t3 OK foo again
>  
>
>Peter
>
>
>-----Original Message-----
>From: owner-ietf-imapext@mail.imc.org
>[mailto:owner-ietf-imapext@mail.imc.org] On Behalf Of Alexey Melnikov
>Sent: November 9, 2007 08:16
>To: Arnt Gulbrandsen
>Cc: lemonade@ietf.org; ietf-imapext@imc.org
>Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
>
>
>Arnt Gulbrandsen wrote:
>  
>
>>>I also don't like the fact that we're documenting that ENABLE can be 
>>>used to probe for extensions (as per paragraph 2 in section 5).  We 
>>>already have a command to list extensions.
>>>      
>>>
>>I'm perfectly happy taking that out, if that would be appropriate. I 
>>thought this sort of thing was supposed to be listed in security 
>>considerations.
>>    
>>
>Based on various off-list discussions I got impression that several 
>people really disliked that.
>So I am suggesting the following change:
>
>Replace:
> The server MUST NOT change the CAPABILITY list as a result of
> executing ENABLE.
>
>With:
> The server MUST NOT change the CAPABILITY list as a result of
> executing ENABLE, i.e. a CAPABILITY command issued right after
> an ENABLE command MUST list the same capabilities as a CAPABILITY
> command issued before the ENABLE command. The following example
> demonstrates that:
> 
> C: t1 CAPABILITY
> S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
> S: t1 OK foo
> C: t2 ENABLE CONDSTORE X-GOOD-IDEA
> S: t2 OK foo
> C: t3 CAPABILITY
> S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
> S: t3 OK foo again
> 
>and also add:
> 
> Note that according to [RFC3501] the list of advertised capabilities MAY
> change after a STARTTLS and/or AUTHENTICATE/LOGIN command. The ENABLE 
> command doesn't change that.
>  
>



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA9HhfKv023879 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Nov 2007 10:43:41 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA9Hhfnk023878; Fri, 9 Nov 2007 10:43:41 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mta01.zimbra.com (mta01.zimbra.com [77.67.121.29]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA9HhePM023871 for <ietf-imapext@imc.org>; Fri, 9 Nov 2007 10:43:40 -0700 (MST) (envelope-from dkarp@zimbra.com)
Received: from dogfood.zimbra.com (dsl092-025-198.sfo1.dsl.speakeasy.net [66.92.25.198]) by mta01.zimbra.com (Postfix) with ESMTP id 17C7CDE9324; Fri,  9 Nov 2007 09:43:40 -0800 (PST)
Received: from localhost (localhost.localdomain [127.0.0.1]) by dogfood.zimbra.com (Postfix) with ESMTP id B39601D5571; Fri,  9 Nov 2007 09:43:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at dogfood.zimbra.com
Received: from dogfood.zimbra.com ([127.0.0.1]) by localhost (dogfood.zimbra.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TYO08Jbmgy7z; Fri,  9 Nov 2007 09:43:33 -0800 (PST)
Received: from dogfood.zimbra.com (localhost.localdomain [127.0.0.1]) by dogfood.zimbra.com (Postfix) with ESMTP id 70E861D5572; Fri,  9 Nov 2007 09:43:33 -0800 (PST)
Date: Fri, 9 Nov 2007 09:43:33 -0800 (PST)
From: Dan Karp <dkarp@zimbra.com>
To: Peter Coates <peter.coates@sun.com>
Cc: lemonade@ietf.org, ietf-imapext@imc.org, Alexey Melnikov <alexey.melnikov@isode.com>, Arnt Gulbrandsen <arnt@oryx.com>
Message-ID: <90089910.86811194630213289.JavaMail.root@dogfood.zimbra.com>
In-Reply-To: <1680368567.86531194630050060.JavaMail.root@dogfood.zimbra.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [70.130.132.81]
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

> I assert that either the enable command has to tell the client which
> things worked (or which things didn't), or the capability vector has
> to change.

I think that we're unnecessarily complicating a fundamentally simple idea.  Why not just have ENABLE fail unless all the requested capabilities are implemented and enable-able?  This would generally require waiting until after authentication to call ENABLE, but I'm not even sure why it's ever useful in the NOT AUTHENTICATED state...

I'm told that the "ignore unknown capabilities" behavior was added so one client author could use a static ENABLE request, but simpler is probably better here.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA9HQKQT022459 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Nov 2007 10:26:20 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA9HQK8t022458; Fri, 9 Nov 2007 10:26:20 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from brmea-mail-3.sun.com (brmea-mail-3.Sun.COM [192.18.98.34]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA9HQHTX022446 for <ietf-imapext@imc.org>; Fri, 9 Nov 2007 10:26:18 -0700 (MST) (envelope-from peter.coates@sun.com)
Received: from fe-amer-10.sun.com ([192.18.109.80]) by brmea-mail-3.sun.com (8.13.6+Sun/8.12.9) with ESMTP id lA9HQHeh012185 for <ietf-imapext@imc.org>; Fri, 9 Nov 2007 17:26:17 GMT
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JR90060119K1Z00@mail-amer.sun.com> (original mail from peter.coates@sun.com) for ietf-imapext@imc.org; Fri, 09 Nov 2007 10:26:17 -0700 (MST)
Received: from kluane ([199.247.229.42]) by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JR9009D11QLJL50@mail-amer.sun.com>; Fri, 09 Nov 2007 10:26:06 -0700 (MST)
Date: Fri, 09 Nov 2007 09:24:40 -0800
From: Peter Coates <peter.coates@sun.com>
Subject: RE: [lemonade] draft-gulbrandsen-imap-enable-03
In-reply-to: <473487D3.4020002@isode.com>
To: "'Alexey Melnikov'" <alexey.melnikov@isode.com>, "'Arnt Gulbrandsen'" <arnt@oryx.com>
Cc: lemonade@ietf.org, ietf-imapext@imc.org
Message-id: <01a601c822f5$7c13bf60$743b3e20$%coates@sun.com>
MIME-version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Content-type: text/plain; charset=us-ascii
Content-language: en-ca
Content-transfer-encoding: 7BIT
Thread-index: Acgi7mapDZxScV0TRK6OP6mgBJ9ZmQAAWyYQ
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com> <473487D3.4020002@isode.com>
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

What?  If Enabling an extension does not affect the CAPABILITY vector, and
if the ENABLE command silenty ignores extensions the server does not wan to
allow or which it doe not know, then after the sequence

 C: t1 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
 S: t1 OK foo
 C: t2 ENABLE CONDSTORE X-GOOD-IDEA
 S: t2 OK foo

the client does not know whether CONDSTORE is enabled or not.  I assert that
either the enable command has to tell the client which things worked (or
which things didn't), or the capability vector has to change

Thus the sequence should be either
 C: t1 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
 S: t1 OK foo
 C: t2 ENABLE CONDSTORE X-GOOD-IDEA
 S: t2 OK foo
 C: t3 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
CONDSTORE
 S: t3 OK foo again

Or
 C: t1 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
 S: t1 OK foo
 C: t2 ENABLE CONDSTORE X-GOOD-IDEA
 S: * OK [ENABLED CONDSTORE] or some variant of this
 S: t2 OK foo
 C: t3 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
 S: t3 OK foo again

Peter


-----Original Message-----
From: owner-ietf-imapext@mail.imc.org
[mailto:owner-ietf-imapext@mail.imc.org] On Behalf Of Alexey Melnikov
Sent: November 9, 2007 08:16
To: Arnt Gulbrandsen
Cc: lemonade@ietf.org; ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03


Arnt Gulbrandsen wrote:

>> I also don't like the fact that we're documenting that ENABLE can be 
>> used to probe for extensions (as per paragraph 2 in section 5).  We 
>> already have a command to list extensions.
>
> I'm perfectly happy taking that out, if that would be appropriate. I 
> thought this sort of thing was supposed to be listed in security 
> considerations.

Based on various off-list discussions I got impression that several 
people really disliked that.
So I am suggesting the following change:

Replace:
 The server MUST NOT change the CAPABILITY list as a result of
 executing ENABLE.

With:
 The server MUST NOT change the CAPABILITY list as a result of
 executing ENABLE, i.e. a CAPABILITY command issued right after
 an ENABLE command MUST list the same capabilities as a CAPABILITY
 command issued before the ENABLE command. The following example
 demonstrates that:
 
 C: t1 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
 S: t1 OK foo
 C: t2 ENABLE CONDSTORE X-GOOD-IDEA
 S: t2 OK foo
 C: t3 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
 S: t3 OK foo again
 
and also add:
 
 Note that according to [RFC3501] the list of advertised capabilities MAY
 change after a STARTTLS and/or AUTHENTICATE/LOGIN command. The ENABLE 
command
 doesn't change that.




Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA9GGtna015108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Nov 2007 09:16:55 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA9GGt9P015107; Fri, 9 Nov 2007 09:16:55 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA9GGrjM015099 for <ietf-imapext@imc.org>; Fri, 9 Nov 2007 09:16:54 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RzSH8wAnNyZW@rufus.isode.com>; Fri, 9 Nov 2007 16:16:52 +0000
Message-ID: <473487D3.4020002@isode.com>
Date: Fri, 09 Nov 2007 16:16:19 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Arnt Gulbrandsen <arnt@oryx.com>
CC: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <472B04FD.9020100@andrew.cmu.edu> <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com>
In-Reply-To: <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Arnt Gulbrandsen wrote:

>> I also don't like the fact that we're documenting that ENABLE can be 
>> used to probe for extensions (as per paragraph 2 in section 5).  We 
>> already have a command to list extensions.
>
> I'm perfectly happy taking that out, if that would be appropriate. I 
> thought this sort of thing was supposed to be listed in security 
> considerations.

Based on various off-list discussions I got impression that several 
people really disliked that.
So I am suggesting the following change:

Replace:
 The server MUST NOT change the CAPABILITY list as a result of
 executing ENABLE.

With:
 The server MUST NOT change the CAPABILITY list as a result of
 executing ENABLE, i.e. a CAPABILITY command issued right after
 an ENABLE command MUST list the same capabilities as a CAPABILITY
 command issued before the ENABLE command. The following example
 demonstrates that:
 
 C: t1 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
 S: t1 OK foo
 C: t2 ENABLE CONDSTORE X-GOOD-IDEA
 S: t2 OK foo
 C: t3 CAPABILITY
 S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 ID LITERAL+ ENABLE
 S: t3 OK foo again
 
and also add:
 
 Note that according to [RFC3501] the list of advertised capabilities MAY
 change after a STARTTLS and/or AUTHENTICATE/LOGIN command. The ENABLE 
command
 doesn't change that.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA72N1Cv037572 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 6 Nov 2007 19:23:02 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA72N16k037571; Tue, 6 Nov 2007 19:23:01 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from ithilien.qualcomm.com (ithilien.qualcomm.com [129.46.51.59]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA72N0QS037564 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <ietf-imapext@imc.org>; Tue, 6 Nov 2007 19:23:01 -0700 (MST) (envelope-from randy@qualcomm.com)
Received: from neophyte.qualcomm.com (neophyte.qualcomm.com [129.46.61.149]) by ithilien.qualcomm.com (8.13.6/8.12.5/1.0) with ESMTP id lA72MwrQ019958 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 6 Nov 2007 18:22:58 -0800
Received: from [192.168.1.13] (vpn-10-50-16-40.qualcomm.com [10.50.16.40]) by neophyte.qualcomm.com (8.13.6/8.13.6/1.0) with ESMTP id lA72MuPp032004; Tue, 6 Nov 2007 18:22:57 -0800
Mime-Version: 1.0
Message-Id: <p06240603c356d0aef899@[192.168.1.13]>
In-Reply-To: <JfnQwso3qD0ZzN8bP+nR+Q.md5@libertango.oryx.com>
References: <472B04FD.9020100@andrew.cmu.edu> <472B090D.1060303@andrew.cmu.edu> <JfnQwso3qD0ZzN8bP+nR+Q.md5@libertango.oryx.com>
X-Mailer: Eudora for Mac OS X
X-message-flag: Warning: Outlook in use.  Upgrade to Eudora: <http://www.eudora.com>
Date: Tue, 6 Nov 2007 18:20:52 -0800
To: Arnt Gulbrandsen <arnt@oryx.com>, lemonade@ietf.org, ietf-imapext@imc.org
From: Randall Gellens <randy@qualcomm.com>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Random-Sig-Tag: 1.0b28
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

At 11:50 AM +0100 11/4/07, Arnt Gulbrandsen wrote:

>  If so, then a server handling unauthenticated connections would 
> have to know what capabilities will be available to that user after 
> authentication.

I think it is worth mentioning this in the draft, as a clarification 
for the response not indicating which capabilities were/will be 
enabled.  It'll save readers wondering about it.

>
>>  What is the final result of the command?
>
>  'ENABLE CONDSTORE' before authentication has no immediate effect. 
> It takes effect only after authentication, at which point it has 
> acted as a 'condstore enabling command'.

This also is worth mentioning in the draft.

In the case of CONDSTORE, the server could internally enable it right 
away; it just won't have any effect until after a mailbox is 
selected, which can't be until after authentication.
-- 
Randall Gellens
Opinions are personal;    facts are suspect;    I speak for myself only
-------------- Randomly-selected tag: ---------------
Good night to spend with family, but avoid arguments with your
mate's new lover.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA4AoBnO011728 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 4 Nov 2007 03:50:11 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA4AoBCm011727; Sun, 4 Nov 2007 03:50:11 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from kalyani.oryx.com (kalyani.oryx.com [195.30.37.30]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA4AoA9N011720 for <ietf-imapext@imc.org>; Sun, 4 Nov 2007 03:50:10 -0700 (MST) (envelope-from arnt@oryx.com)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id B10FB4AC9A; Sun,  4 Nov 2007 11:50:26 +0100 (CET)
Message-Id: <JfnQwso3qD0ZzN8bP+nR+Q.md5@libertango.oryx.com>
Date: Sun, 4 Nov 2007 11:50:33 +0100
From: Arnt Gulbrandsen <arnt@oryx.com>
To: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: Ken Murchison <murch@andrew.cmu.edu>
References: <472B04FD.9020100@andrew.cmu.edu> <472B090D.1060303@andrew.cmu.edu>
In-Reply-To: <472B090D.1060303@andrew.cmu.edu>
Content-Type: text/plain; format=flowed
MIME-Version: 1.0
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Ken Murchison writes:
> One more thing:
>
> What is supposed to happen if a client does 'ENABLE CONDSTORE THREAD' 
> on a server that supports both extensions?

BAD if the server is careful, because THREAD isn't ENABLE-ish.

> Should we use untagged OK responses to tell the client which 
> extensions were enabled?

If so, then a server handling unauthenticated connections would have to 
know what capabilities will be available to that user after 
authentication.

> What is the final result of the command?

'ENABLE CONDSTORE' before authentication has no immediate effect. It 
takes effect only after authentication, at which point it has acted as 
a 'condstore enabling command'.

Arnt



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA4AimsL011262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 4 Nov 2007 03:44:48 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA4AimAv011261; Sun, 4 Nov 2007 03:44:48 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from kalyani.oryx.com (kalyani.oryx.com [195.30.37.30]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA4Aii7n011216 for <ietf-imapext@imc.org>; Sun, 4 Nov 2007 03:44:47 -0700 (MST) (envelope-from arnt@oryx.com)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id 7B8744AC9A; Sun,  4 Nov 2007 11:45:00 +0100 (CET)
Message-Id: <iI49OBVsjABTB7dA9GtwCA.md5@libertango.oryx.com>
Date: Sun, 4 Nov 2007 11:45:06 +0100
From: Arnt Gulbrandsen <arnt@oryx.com>
To: lemonade@ietf.org, ietf-imapext@imc.org
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
Cc: Ken Murchison <murch@andrew.cmu.edu>
References: <472B04FD.9020100@andrew.cmu.edu>
In-Reply-To: <472B04FD.9020100@andrew.cmu.edu>
Content-Type: text/plain; format=flowed
MIME-Version: 1.0
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Ken Murchison writes:
> After looking at the current draft on my way towards implementing 
> QRESYNC, I'm wondering why ENABLE is allowed to be used blindly.  I 
> don't see any reason why ENABLE should be allowed before the client 
> knows that a particular extension is supported (via CAPABILITY).

Two reasons.

1. It allows the client to use a single invariant enable command. The 
client doesn't have to do any string concatenation, it can just do "if 
( server supports enable ) send its enable command".

2. It allows the client to send a single enable command early, even 
though the server it's talking to (before authentication) may not even 
know the complete list of capabilities that will be available after 
authentication.

People asked for both of these properties.

> In particular, the second example in section 3 seems strange to me, 
> and AFAICT, doing ENABLE before CAPABILITY doesn't gain anything in 
> terms of round trips.

That's right.

> I also don't like the fact that we're documenting that ENABLE can be 
> used to probe for extensions (as per paragraph 2 in section 5).  We 
> already have a command to list extensions.

I'm perfectly happy taking that out, if that would be appropriate. I 
thought this sort of thing was supposed to be listed in security 
considerations.

> If we specify that a client MUST NOT try to enable an extension that 
> isn't listed by CAPABILITY, then all the server has to worry about 
> parsing are those extensions that it supports and are enable-able. 
> Trying to ENABLE any other other extensions, whether unknown, 
> unenable-able, or unsupported can all result in BAD.

Please discuss that with Peter Coates.

Arnt



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA2FGxYh045755 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 Nov 2007 08:16:59 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA2FGxfk045754; Fri, 2 Nov 2007 08:16:59 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from brmea-mail-3.sun.com (brmea-mail-3.Sun.COM [192.18.98.34]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA2FGw2o045745 for <ietf-imapext@imc.org>; Fri, 2 Nov 2007 08:16:58 -0700 (MST) (envelope-from peter.coates@sun.com)
Received: from fe-amer-09.sun.com ([192.18.109.79]) by brmea-mail-3.sun.com (8.13.6+Sun/8.12.9) with ESMTP id lA2FGw6j006634 for <ietf-imapext@imc.org>; Fri, 2 Nov 2007 15:16:58 GMT
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JQV00G01WCM9G00@mail-amer.sun.com> (original mail from peter.coates@sun.com) for ietf-imapext@imc.org; Fri, 02 Nov 2007 09:16:58 -0600 (MDT)
Received: from kluane ([129.150.37.23]) by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JQV00I7SX3XEM90@mail-amer.sun.com>; Fri, 02 Nov 2007 09:16:46 -0600 (MDT)
Date: Fri, 02 Nov 2007 08:16:20 -0700
From: Peter Coates <peter.coates@sun.com>
Subject: RE: draft-gulbrandsen-imap-enable-03
In-reply-to: <472B04FD.9020100@andrew.cmu.edu>
To: "'Ken Murchison'" <murch@andrew.cmu.edu>, lemonade@ietf.org, "'IMAP Extensions WG'" <ietf-imapext@imc.org>
Message-id: <013f01c81d63$53778a10$fa669e30$%coates@sun.com>
MIME-version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Content-type: text/plain; charset=us-ascii
Content-language: en-ca
Content-transfer-encoding: 7BIT
Thread-index: AcgdQ4Yb1/MCvpl2Sh6JSH6CxQYciQAHJ3Gw
References: <472B04FD.9020100@andrew.cmu.edu>
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Let's consider ENABLE and QRESYNC.

Is the QRESYNC capability is in effect for a session, the responses sent by
the server are different from those that would otherwise be sent.  VANISHED
instead of EXPUNGED, for instance.  So, it is important that the server not
use QRESYNC features until told to by the client.

I am really against any extension that can change the protocol during the
life of the session.  I would like to see the protocol negotiated at the
start of the session.

Thus, the server does not advertise QRESYNC initially.  If the client issues
an ENABLE command, and then issues a CAPABILITY command it can try to turn
on the feature and see if the server supported it.

S: * OK [CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS
CHILDREN 
   BINARY UNSELECT SORT IDLE URLAUTH LANGUAGE ESEARCH THREAD=ORDEREDSUBJECT 
   THREAD=REFERENCES CONDSTORE ENABLE CONTEXT WITHIN XSENDER X-NETSCAPE
XSERVERINFO
   X-SUN-SORT ANNOTATE-EXPERIMENT-1 X-UNAUTHENTICATE X-SUN-IMAP
X-ANNOTATEMORE XUM1
   AUTH=PLAIN] sandman.red.iplanet.com IMAP4 service (Sun Java(tm) System
Messaging
   Server 7.0-0.01 32bit (built Oct 26 2007))
C: 1 login YYYYY XXXXX
S: 1 OK User logged in
C: 2 enable qresync foobar
S: 2 OK Completed
C: 3 capability
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS
CHILDREN 
   BINARY UNSELECT SORT CATENATE URLAUTH LANGUAGE ESEARCH
THREAD=ORDEREDSUBJECT
   THREAD=REFERENCES IDLE ENABLE CONTEXT WITHIN XSENDER X-NETSCAPE
XSERVERINFO
   X-SUN-SORT ANNOTATE-EXPERIMENT-1 X-UNAUTHENTICATE X-SUN-IMAP
X-ANNOTATEMORE XUM1
   CONDSTORE QRESYNC
S: 3 OK Completed

The new capability vector sent after the enable command reflect the new
negotiated protocol level.  I would have liked CONDSTORE to have to be
enabled, but it was too late to do that, and we are stuck with 42 different
ways that the CONDSTORE extension can be enabled. (note that turning on
QRESYNC implies turning on CONDSTORE)

I have argued that the enable command only be allowed near the start of a
session, only at the first command, or as the first command after
authentication, but I do not think I have achieved much traction on that
idea as it implies another state for the protocol engine.  I can see that
that is an attractive argument for some, but if feels a bit academic and
pedantic to me.


Peter

-----Original Message-----
From: owner-ietf-imapext@mail.imc.org
[mailto:owner-ietf-imapext@mail.imc.org] On Behalf Of Ken Murchison
Sent: November 2, 2007 04:08
To: lemonade@ietf.org; IMAP Extensions WG
Subject: draft-gulbrandsen-imap-enable-03


After looking at the current draft on my way towards implementing 
QRESYNC, I'm wondering why ENABLE is allowed to be used blindly.  I 
don't see any reason why ENABLE should be allowed before the client 
knows that a particular extension is supported (via CAPABILITY).

In particular, the second example in section 3 seems strange to me, and 
AFAICT, doing ENABLE before CAPABILITY doesn't gain anything in terms of 
round trips.  I also don't like the fact that we're documenting that 
ENABLE can be used to probe for extensions (as per paragraph 2 in 
section 5).  We already have a command to list extensions.

If we specify that a client MUST NOT try to enable an extension that 
isn't listed by CAPABILITY, then all the server has to worry about 
parsing are those extensions that it supports and are enable-able. 
Trying to ENABLE any other other extensions, whether unknown, 
unenable-able, or unsupported can all result in BAD.

-- 
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University




Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA2BPYgN019228 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 Nov 2007 04:25:34 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA2BPYag019227; Fri, 2 Nov 2007 04:25:34 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from smtp.andrew.cmu.edu (SMTP.andrew.cmu.edu [128.2.10.212]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA2BPWqX019220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <ietf-imapext@imc.org>; Fri, 2 Nov 2007 04:25:33 -0700 (MST) (envelope-from murch@andrew.cmu.edu)
Received: from [192.168.137.23] (cpe-69-207-86-125.buffalo.res.rr.com [69.207.86.125]) (user=murch mech=PLAIN (0 bits)) by smtp.andrew.cmu.edu (8.13.8/8.13.8) with ESMTP id lA2BPADE006622 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 2 Nov 2007 07:25:10 -0400
Message-ID: <472B090D.1060303@andrew.cmu.edu>
Date: Fri, 02 Nov 2007 07:25:01 -0400
From: Ken Murchison <murch@andrew.cmu.edu>
Organization: Carnegie Mellon University
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
To: lemonade@ietf.org, IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: [lemonade] draft-gulbrandsen-imap-enable-03
References: <472B04FD.9020100@andrew.cmu.edu>
In-Reply-To: <472B04FD.9020100@andrew.cmu.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.60 on 128.2.10.212
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Ken Murchison wrote:
> After looking at the current draft on my way towards implementing 
> QRESYNC, I'm wondering why ENABLE is allowed to be used blindly.  I 
> don't see any reason why ENABLE should be allowed before the client 
> knows that a particular extension is supported (via CAPABILITY).
> 
> In particular, the second example in section 3 seems strange to me, and 
> AFAICT, doing ENABLE before CAPABILITY doesn't gain anything in terms of 
> round trips.  I also don't like the fact that we're documenting that 
> ENABLE can be used to probe for extensions (as per paragraph 2 in 
> section 5).  We already have a command to list extensions.
> 
> If we specify that a client MUST NOT try to enable an extension that 
> isn't listed by CAPABILITY, then all the server has to worry about 
> parsing are those extensions that it supports and are enable-able. 
> Trying to ENABLE any other other extensions, whether unknown, 
> unenable-able, or unsupported can all result in BAD.

One more thing:

What is supposed to happen if a client does 'ENABLE CONDSTORE THREAD' on 
a server that supports both extensions?  Should we use untagged OK 
responses to tell the client which extensions were enabled?  What is the 
final result of the command?


-- 
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA2B7sMQ016973 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 Nov 2007 04:07:55 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id lA2B7sE1016972; Fri, 2 Nov 2007 04:07:54 -0700 (MST) (envelope-from owner-ietf-imapext@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from smtp.andrew.cmu.edu (SMTP.andrew.cmu.edu [128.2.10.212]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id lA2B7pd6016966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <ietf-imapext@imc.org>; Fri, 2 Nov 2007 04:07:52 -0700 (MST) (envelope-from murch@andrew.cmu.edu)
Received: from [192.168.137.23] (cpe-69-207-86-125.buffalo.res.rr.com [69.207.86.125]) (user=murch mech=PLAIN (0 bits)) by smtp.andrew.cmu.edu (8.13.8/8.13.8) with ESMTP id lA2B7nGV005776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 2 Nov 2007 07:07:50 -0400
Message-ID: <472B04FD.9020100@andrew.cmu.edu>
Date: Fri, 02 Nov 2007 07:07:41 -0400
From: Ken Murchison <murch@andrew.cmu.edu>
Organization: Carnegie Mellon University
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
To: lemonade@ietf.org, IMAP Extensions WG <ietf-imapext@imc.org>
Subject: draft-gulbrandsen-imap-enable-03
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.60 on 128.2.10.212
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

After looking at the current draft on my way towards implementing 
QRESYNC, I'm wondering why ENABLE is allowed to be used blindly.  I 
don't see any reason why ENABLE should be allowed before the client 
knows that a particular extension is supported (via CAPABILITY).

In particular, the second example in section 3 seems strange to me, and 
AFAICT, doing ENABLE before CAPABILITY doesn't gain anything in terms of 
round trips.  I also don't like the fact that we're documenting that 
ENABLE can be used to probe for extensions (as per paragraph 2 in 
section 5).  We already have a command to list extensions.

If we specify that a client MUST NOT try to enable an extension that 
isn't listed by CAPABILITY, then all the server has to worry about 
parsing are those extensions that it supports and are enable-able. 
Trying to ENABLE any other other extensions, whether unknown, 
unenable-able, or unsupported can all result in BAD.

-- 
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University


