
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 k1OH24NW002136; Fri, 24 Feb 2006 10:02: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 k1OH24AX002135; Fri, 24 Feb 2006 10:02: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 kalyani.oryx.com (kalyani.oryx.com [195.30.37.30]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k1OH22oL002128 for <ietf-imapext@imc.org>; Fri, 24 Feb 2006 10:02:03 -0700 (MST) (envelope-from arnt@gulbrandsen.priv.no)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id E87A14AC1B for <ietf-imapext@imc.org>; Fri, 24 Feb 2006 18:02:00 +0100 (CET)
Message-Id: <guEognolL8cXrVXfxSBGCg.md5@libertango.oryx.com>
Date: Fri, 24 Feb 2006 18:11:56 +0100
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: ietf-imapext@imc.org
Subject: collations: mismatch between equality and ordering
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>

Hi,

in the current collation draft, it is possible to sort strings that 
cannot be tested for equality: A collation has a domain. It can test 
any pair of strings for equality, provided both strings are within its 
domain. And it can order pair of strings, whether they are in its 
domain or not. I find that last bit highly dubious, and want to strike 
it.

I think that if a server wants to sort a set of strings and the chosen 
collation can't handle some, the server can fall back to i;octet for 
the rest. The collation itself does not need to define any behaviour 
outside its domain.

Striking it would also permit the number of dependences on i;octet to 
decrease. I believe I mentioned that a few weeks ago. I think that with 
this change, it should be possible to write a server which uses 
exclusively unicode internally and does not implement i;octet. (Not an 
IMAP server, of course. An IMAP server has to do i;octet.)

Comments? Pretty please?

In general news: Alexey Melnikov, Frank Ellermann and Mark Davis/the 
Unicode Technical Committee have gone over the draft. Long comments 
from all three. Good stuff. This issue is one I came across while 
pondering Mark's mail. I'll go on for another few hours today, 
hopefully I'll have a -07 before the end of the day.

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 k1MJpaKH085178; Wed, 22 Feb 2006 12:51:36 -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 k1MJpaSg085177; Wed, 22 Feb 2006 12:51:36 -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 k1MJpYnU085170 for <ietf-imapext@imc.org>; Wed, 22 Feb 2006 12:51:35 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.198] (shiny.isode.com [62.3.217.250])  by rufus.isode.com via TCP (submission) with ESMTPA; Wed, 22 Feb 2006 19:51:20 +0000
Message-ID: <43FCC0B8.10205@isode.com>
Date: Wed, 22 Feb 2006 19:51: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.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Dave Cridland <dave@cridland.net>
CC: Timo Sirainen <tss@iki.fi>, ietf-imapext@imc.org
Subject: Re: ACL once more
References: <1140520073.6334.12.camel@localhost.localdomain> <24385.1140531154.184132@peirce.dave.cridland.net> <1140531793.6334.24.camel@localhost.localdomain> <24385.1140541039.015138@peirce.dave.cridland.net>
In-Reply-To: <24385.1140541039.015138@peirce.dave.cridland.net>
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>

Dave Cridland wrote:

> On Tue Feb 21 14:23:13 2006, Timo Sirainen wrote:
>
>> On Tue, 2006-02-21 at 14:12 +0000, Dave Cridland wrote:
>> > On Tue Feb 21 11:07:53 2006, Timo Sirainen wrote:
>> > > > > Is SETACL id -<all rights> the same as DELETEACL id?
>> > > > > > > > No. SETACL id -<all rights> means id is denied all 
>> rights in some > specific manner.
>>
>> Isn't that SETACL -id <all rights>?
>>
>> Minusing rights only removes the rights from the ACL, so I'd think once
>> all of them are removed, the whole ACL could be deleted since there's
>> nothing left.
>
> Ah. Hmmm. Quite so.
>
> Options:
>
> 1) It's equivalent then to SETACL id "", because it's removing any 
> rights from the ACL entry for the id. Which might mean the same as 
> "this identifier has no rights", or might mean "the rights of this 
> identifier are not affected by this line", which is basically 
> DELETEACL id, depending on whether "most specific" ACL entires are 
> used, or "union" applies.
>
> 2) According to the first para of Section 3.1, it might mean the same 
> as SETACL -id lrswipkxeta anyway, because the access control list as a 
> whole is changed such that the identifier does not have the rights 
> removed.

No, the text in section 3.1 is saying that "SETACL id -<rights>" only 
affects the entry for "id", not the whole ACL. So interpretation #1 is 
the correct one.

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 k1LGvObP079679; Tue, 21 Feb 2006 09:57: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 k1LGvOgw079678; Tue, 21 Feb 2006 09:57: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 pythagoras.zen.co.uk (pythagoras.zen.co.uk [212.23.3.140]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k1LGvN1H079672 for <ietf-imapext@imc.org>; Tue, 21 Feb 2006 09:57:24 -0700 (MST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1FBapG-0005ED-E5; Tue, 21 Feb 2006 16:57:22 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 5D3DC498003; Tue, 21 Feb 2006 17:09:56 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10576-02; Tue, 21 Feb 2006 17:09:53 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id 7BB21498002; Tue, 21 Feb 2006 17:09:53 +0000 (GMT)
Date: Tue, 21 Feb 2006 16:57:18 +0000
Subject: Re: ACL once more
References: <1140520073.6334.12.camel@localhost.localdomain> <24385.1140531154.184132@peirce.dave.cridland.net> <1140531793.6334.24.camel@localhost.localdomain>
In-Reply-To: <1140531793.6334.24.camel@localhost.localdomain>
MIME-Version: 1.0
Message-Id: <24385.1140541039.015138@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Timo Sirainen <tss@iki.fi>
Cc: <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Pythagoras-IP: [217.155.137.60]
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 Tue Feb 21 14:23:13 2006, Timo Sirainen wrote:
> On Tue, 2006-02-21 at 14:12 +0000, Dave Cridland wrote:
> > On Tue Feb 21 11:07:53 2006, Timo Sirainen wrote:
> > > > > Is SETACL id -<all rights> the same as DELETEACL id?
> > > > > > > > No. SETACL id -<all rights> means id is denied all 
> rights in some > specific manner.
> 
> Isn't that SETACL -id <all rights>?
> 
> Minusing rights only removes the rights from the ACL, so I'd think 
> once
> all of them are removed, the whole ACL could be deleted since 
> there's
> nothing left.
> 
> 
> 
Ah. Hmmm. Quite so.

Options:

1) It's equivalent then to SETACL id "", because it's removing any 
rights from the ACL entry for the id. Which might mean the same as 
"this identifier has no rights", or might mean "the rights of this 
identifier are not affected by this line", which is basically 
DELETEACL id, depending on whether "most specific" ACL entires are 
used, or "union" applies.

2) According to the first para of Section 3.1, it might mean the same 
as SETACL -id lrswipkxeta anyway, because the access control list as 
a whole is changed such that the identifier does not have the rights 
removed.

So, erm, I really don't know. :-)

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



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 k1LENIiK060222; Tue, 21 Feb 2006 07:23:18 -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 k1LENIXw060221; Tue, 21 Feb 2006 07:23:18 -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 dmgw.movial.fi (dmgw.movial.fi [62.236.91.5]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k1LENH9q060205 for <ietf-imapext@imc.org>; Tue, 21 Feb 2006 07:23:17 -0700 (MST) (envelope-from tss@iki.fi)
Received: from movial.fi (hellmail.movial.fi [62.236.91.6]) by dmgw.movial.fi (Postfix) with ESMTP id 4E6EC27C; Tue, 21 Feb 2006 16:23:11 +0200 (EET)
Received: from localhost (hellmail.movial.fi [127.0.0.1]) by movial.fi (Postfix) with ESMTP id 30E2C8021B; Tue, 21 Feb 2006 16:23:11 +0200 (EET)
Received: from movial.fi ([127.0.0.1]) by localhost (hellmail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20134-06; Tue, 21 Feb 2006 16:23:11 +0200 (EET)
Received: from sd022.hel.movial.fi (sd022.hel.movial.fi [172.17.49.22]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by movial.fi (Postfix) with ESMTP id EE27380218; Tue, 21 Feb 2006 16:23:10 +0200 (EET)
Subject: Re: ACL once more
From: Timo Sirainen <tss@iki.fi>
To: Dave Cridland <dave@cridland.net>
Cc: ietf-imapext@imc.org
In-Reply-To: <24385.1140531154.184132@peirce.dave.cridland.net>
References: <1140520073.6334.12.camel@localhost.localdomain> <24385.1140531154.184132@peirce.dave.cridland.net>
Content-Type: text/plain
Date: Tue, 21 Feb 2006 16:23:13 +0200
Message-Id: <1140531793.6334.24.camel@localhost.localdomain>
Mime-Version: 1.0
X-Mailer: Evolution 2.0.4 
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at movial.fi
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 Tue, 2006-02-21 at 14:12 +0000, Dave Cridland wrote:
> On Tue Feb 21 11:07:53 2006, Timo Sirainen wrote:
> > 
> > Is SETACL id -<all rights> the same as DELETEACL id?
> > 
> > 
> > 
> No. SETACL id -<all rights> means id is denied all rights in some 
> specific manner.

Isn't that SETACL -id <all rights>?

Minusing rights only removes the rights from the ACL, so I'd think once
all of them are removed, the whole ACL could be deleted since there's
nothing left.




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 k1LECdZs058970; Tue, 21 Feb 2006 07:12:39 -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 k1LECdaf058969; Tue, 21 Feb 2006 07:12:39 -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 heisenberg.zen.co.uk (heisenberg.zen.co.uk [212.23.3.141]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k1LECcuc058963 for <ietf-imapext@imc.org>; Tue, 21 Feb 2006 07:12:39 -0700 (MST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by heisenberg.zen.co.uk with esmtp (Exim 4.30) id 1FBYFp-0004b8-7l; Tue, 21 Feb 2006 14:12:37 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 28CE8498003; Tue, 21 Feb 2006 14:25:10 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09661-09; Tue, 21 Feb 2006 14:25:07 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id 76CAC498002; Tue, 21 Feb 2006 14:25:07 +0000 (GMT)
Date: Tue, 21 Feb 2006 14:12:33 +0000
Subject: Re: ACL once more
References: <1140520073.6334.12.camel@localhost.localdomain>
In-Reply-To: <1140520073.6334.12.camel@localhost.localdomain>
MIME-Version: 1.0
Message-Id: <24385.1140531154.184132@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Timo Sirainen <tss@iki.fi>
Cc: <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Heisenberg-IP: [217.155.137.60]
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 Tue Feb 21 11:07:53 2006, Timo Sirainen wrote:
> 
> Is SETACL id -<all rights> the same as DELETEACL id?
> 
> 
> 
No. SETACL id -<all rights> means id is denied all rights in some 
specific manner.

DELETEACL id means that id is not mentioned specifically, but may 
have rights due to being part of a group which is.

Mind you, SETACL id "" may, on some servers, have the same effect as 
DELETEACL id *or* SETACL id -<all rights>, depending on how the ACL 
entries result in a rights list.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



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 k1LB7w7p036657; Tue, 21 Feb 2006 04:07: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 k1LB7wfW036656; Tue, 21 Feb 2006 04:07: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 dmgw.movial.fi (dmgw.movial.fi [62.236.91.5]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k1LB7vRA036615 for <ietf-imapext@imc.org>; Tue, 21 Feb 2006 04:07:58 -0700 (MST) (envelope-from tss@iki.fi)
Received: from movial.fi (hellmail.movial.fi [62.236.91.6]) by dmgw.movial.fi (Postfix) with ESMTP id 5F29027C for <ietf-imapext@imc.org>; Tue, 21 Feb 2006 13:07:51 +0200 (EET)
Received: from localhost (hellmail.movial.fi [127.0.0.1]) by movial.fi (Postfix) with ESMTP id 505108020B for <ietf-imapext@imc.org>; Tue, 21 Feb 2006 13:07:51 +0200 (EET)
Received: from movial.fi ([127.0.0.1]) by localhost (hellmail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01347-04 for <ietf-imapext@imc.org>; Tue, 21 Feb 2006 13:07:51 +0200 (EET)
Received: from sd022.hel.movial.fi (sd022.hel.movial.fi [172.17.49.22]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by movial.fi (Postfix) with ESMTP id 1EAA280208 for <ietf-imapext@imc.org>; Tue, 21 Feb 2006 13:07:51 +0200 (EET)
Subject: ACL once more
From: Timo Sirainen <tss@iki.fi>
To: IMAP Extensions WG <ietf-imapext@imc.org>
Content-Type: text/plain
Date: Tue, 21 Feb 2006 13:07:53 +0200
Message-Id: <1140520073.6334.12.camel@localhost.localdomain>
Mime-Version: 1.0
X-Mailer: Evolution 2.0.4 
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at movial.fi
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>

Is SETACL id -<all rights> the same as DELETEACL id?




Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k1FFoIAW061749; Wed, 15 Feb 2006 07:50:18 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k1FFoIwY061748; Wed, 15 Feb 2006 07:50:18 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from cypress.neustar.com (cypress.neustar.com [209.173.57.84]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k1FFoHL2061740 for <ietf-imapext@imc.org>; Wed, 15 Feb 2006 07:50:18 -0800 (PST) (envelope-from ietf@ietf.org)
Received: from stiedprstage1.ietf.org (stiedprstage1.va.neustar.com [10.31.47.10]) by cypress.neustar.com (8.12.8/8.12.8) with ESMTP id k1FFo20e010951 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 15 Feb 2006 15:50:02 GMT
Received: from ietf by stiedprstage1.ietf.org with local (Exim 4.43) id 1F9Ouo-0004tT-1y; Wed, 15 Feb 2006 10:50:02 -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-condstore-09.txt 
Message-Id: <E1F9Ouo-0004tT-1y@stiedprstage1.ietf.org>
Date: Wed, 15 Feb 2006 10:50:02 -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		: IMAP Extension for Conditional STORE operation
	Author(s)	: A. Melnikov, S. Hole
	Filename	: draft-ietf-imapext-condstore-09.txt
	Pages		: 0
	Date		: 2006-2-13
	
Often, multiple IMAP (RFC 3501) clients need to coordinate changes to
a common IMAP mailbox. Examples include different clients working on
behalf of the same user, and multiple users accessing shared mailboxes.
These clients need a mechanism to synchronize state changes for messages within the mailbox. They must be able to guarantee that only one client can change message state (e.g., message flags) at any time.  An example of such an application is use of an IMAP mailbox as a message queue with multiple dequeueing clients.

The Conditional Store facility provides a protected update mechanism for message state information that can detect and resolve conflicts between multiple writing mail clients.

The Conditional Store facility also allows a client to quickly resynchronize mailbox flag changes.

This document defines an extension to IMAP (RFC 3501).

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-imapext-condstore-09.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-condstore-09.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-condstore-09.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:	<2006-2-13143533.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-imapext-condstore-09.txt

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

Content-Type: text/plain
Content-ID:	<2006-2-13143533.I-D@ietf.org>

--OtherAccess--

--NextPart--



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k1DKo8jf071541; Mon, 13 Feb 2006 12:50:08 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k1DKo8DN071540; Mon, 13 Feb 2006 12:50:08 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from willow.neustar.com (willow.neustar.com [209.173.53.84]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k1DKo8lx071529 for <ietf-imapext@imc.org>; Mon, 13 Feb 2006 12:50:08 -0800 (PST) (envelope-from ietf@ietf.org)
Received: from ietf.org (stiedprstage1.va.neustar.com [10.31.47.10]) by willow.neustar.com (8.12.8/8.12.8) with ESMTP id k1DKo29W028584 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <ietf-imapext@imc.org>; Mon, 13 Feb 2006 20:50:02 GMT
Received: from ietf by ietf.org with local (Exim 4.43) id 1F8ke2-0004aI-IF; Mon, 13 Feb 2006 15:50:02 -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-condstore-09.txt 
Message-Id: <E1F8ke2-0004aI-IF@ietf.org>
Date: Mon, 13 Feb 2006 15:50:02 -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		: IMAP Extension for Conditional STORE operation
	Author(s)	: A. Melnikov, S. Hole
	Filename	: draft-ietf-imapext-condstore-09.txt
	Pages		: 0
	Date		: 2006-2-13
	
Often, multiple IMAP (RFC 3501) clients need to coordinate changes to
a common IMAP mailbox. Examples include different clients working on
behalf of the same user, and multiple users accessing shared mailboxes.
These clients need a mechanism to synchronize state changes for messages within the mailbox. They must be able to guarantee that only one client can change message state (e.g., message flags) at any time.  An example of such an application is use of an IMAP mailbox as a message queue with multiple dequeueing clients.

The Conditional Store facility provides a protected update mechanism for message state information that can detect and resolve conflicts between multiple writing mail clients.

The Conditional Store facility also allows a client to quickly resynchronize mailbox flag changes.

This document defines an extension to IMAP (RFC 3501).

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-imapext-condstore-09.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-condstore-09.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-condstore-09.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:	<2006-2-13143533.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-imapext-condstore-09.txt

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

Content-Type: text/plain
Content-ID:	<2006-2-13143533.I-D@ietf.org>

--OtherAccess--

--NextPart--



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k16CBT8h018797; Mon, 6 Feb 2006 04:11:29 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k16CBTrR018796; Mon, 6 Feb 2006 04:11:29 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k16CBS92018790 for <ietf-imapext@imc.org>; Mon, 6 Feb 2006 04:11:28 -0800 (PST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.198] (shiny.isode.com [62.3.217.250])  by rufus.isode.com via TCP (submission) with ESMTPA; Mon, 6 Feb 2006 12:11:21 +0000
Message-ID: <43E73CE7.7080508@isode.com>
Date: Mon, 06 Feb 2006 12:11: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.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
To: Dave Cridland <dave@cridland.net>
CC: Lisa Dusseault <lisa@osafoundation.org>, Mark Crispin <mrc@cac.washington.edu>, ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com> <18436.1138873055.818881@peirce.dave.cridland.net> <Pine.OSX.4.64.0602020851500.17564@pangtzu.panda.com> <23543.1138917698.577786@peirce.dave.cridland.net> <C20B2A4C-0A7F-47D2-9EF2-9F048319CC4C@osafoundation.org> <23543.1138922957.665178@peirce.dave.cridland.net>
In-Reply-To: <23543.1138922957.665178@peirce.dave.cridland.net>
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>

Dave Cridland wrote:

> On Thu Feb  2 22:32:50 2006, Lisa Dusseault wrote:
>
>> Dave said "the deficient server in this case causes no damage other 
>>  than a spurious round-trip from a client.", and Mark said something  
>> about guns and preschoolers :)
>
> Yeah. I'm talking specifically the case where a server increments a 
> MODSEQ for a message when the message is not visibly changed. Which is 
> the same as, for instance, a change to an ANNOTATion when the client 
> doesn't speak ANNOTATE - the client isn't damaged by it as such, and 
> has to expect it.

It is also the same as if another client set a flag and then unset it.



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k139342L091085; Fri, 3 Feb 2006 01:03:04 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k13934MM091084; Fri, 3 Feb 2006 01:03:04 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from heisenberg.zen.co.uk (heisenberg.zen.co.uk [212.23.3.141]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k1392vSJ091072 for <ietf-imapext@imc.org>; Fri, 3 Feb 2006 01:02:57 -0800 (PST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by heisenberg.zen.co.uk with esmtp (Exim 4.30) id 1F4wpZ-0003UJ-Em; Fri, 03 Feb 2006 09:02:13 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 80C2A498003; Fri,  3 Feb 2006 09:11:32 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19618-03; Fri, 3 Feb 2006 09:11:21 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id 9A22A498002; Fri,  3 Feb 2006 09:11:21 +0000 (GMT)
Date: Fri, 03 Feb 2006 09:02:00 +0000
Subject: Re: draft-newman-comparator updated
References: <KoXg11fi/4qP6q2U1IvcIw.md5@libertango.oryx.com> <6.0.0.20.2.20060203120709.0685fcc0@localhost>
In-Reply-To: <6.0.0.20.2.20060203120709.0685fcc0@localhost>
MIME-Version: 1.0
Message-Id: <23543.1138957322.093268@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Martin Duerst <duerst@it.aoyama.ac.jp>
Cc: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>, <ietf-imapext@imc.org>, <public-ietf-collation@w3c.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Heisenberg-IP: [217.155.137.60]
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 Fri Feb  3 03:10:17 2006, Martin Duerst wrote:
> 
> At 23:18 06/02/02, Arnt Gulbrandsen wrote:
> >
> >Hi,
> >
> >the draft is lying silently in the internet-draft editor queue. 
> However, I would appreciate reviews, speedily if possible. If you 
> have the time and it isn't yet in your internet-drafts mirror, I 
> can send a copy.
> >
> >There are a few changes.
> >
> >The basic and biggest change is that collation is defined in terms 
> of octet strings, with explicit notes that implementations may 
> choose to use character strings, and notes that in that case, e.g. 
> i;octet may not be possible to implement. Various minor changes 
> changes result.
> 
> This may work out, or it may not work out. I'll check this 
> carefully,
> but don't have any time this (and probably next) week, sorry.
> 
> The main problem is that octet-based collations (except possibly for
> i;octet) need an encoding, but character-based collations obviously
> don't. So if I have some French collation defined over characters,
> and some French collation defined over iso-8859-1, how will they
> be distinguished? How can we make sure registrations can be
> as compact and easy as possible?

I thought quite a few of the interested parties had essentially 
agreed on this, but I could be wrong.

I thought there was a general feel of consensus for specifying that 
all comparators operated on octets, and that any comparators using 
character strings used the same encoding of UTF-8.

In principle, this means that given a character string, feeding it 
into "i;octet" means first encoding it into UTF-8. However, for 
collation, I believe that UTF-8 collation using "+i;octet" and 
unicode code-point order are the same thing, hence there's an obvious 
shortcut to be made.

Even more obvious shortcuts apply to "i;ascii-casemap", and 
"i;ascii-numeric", since both *can* operate on UTF-8 encoded octet 
strings, *or* unicode codepoints, and have the same effect very 
easily. They might say "ascii" in the name, but we can retrofit a 
"ASCII range" meaning to that without breaking semantics.

And that effect is the key - all comparators would be defined in 
terms of UTF-8, and whether or not the implementation could deal 
directly with some other representation of Unicode character strings, 
the overall effect must be identical.

So a French collation is only defined on characters in as much as it 
is defined in terms of the UTF-8 encoding of those characters. It's 
simply not allowed to deal with ISO-8859-15, nor ISO-8859-1, and 
"which character set" is removed from the comparator library 
altogether. This makes quite a lot of sense - you don't want to 
potentially have different collating order depending on the character 
set of the data, do you?

For real-world implementations, it's quite likely that a library will 
have entry points for bare octet strings, some native Unicode (like 
UCS-2 or whatever), and possibly octet string and encoding pairs - 
and that's absolutely fine, as long as the effect is identical to 
using UTF-8 encoded octet strings.

That doesn't mean that "i;octet" makes sense for all protocols, of 
course, and I cannot see the point of using is as a tie-break, when 
some existing protocols using comparators already provide a means for 
the user to select any tie break if required. This practise is 
useful, so feel free to suggest it in protocol support.

I'll put together some other suggestions for handling the various 
non-compatible changes between ACAP/SIEVE style comparators and these 
ones over the next few days.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k135Fp3H062852; Thu, 2 Feb 2006 21:15:51 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k135FpFS062851; Thu, 2 Feb 2006 21:15:51 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from scmailgw2.scop.aoyama.ac.jp (scmailgw2.scop.aoyama.ac.jp [133.2.251.195]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k135Fir5062821 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 21:15:45 -0800 (PST) (envelope-from duerst@it.aoyama.ac.jp)
Received: from scmse2.scbb.aoyama.ac.jp (scmse2 [133.2.253.17]) by scmailgw2.scop.aoyama.ac.jp (secret/secret) with SMTP id k135FXd04807; Fri, 3 Feb 2006 14:15:33 +0900 (JST)
Received: from (133.2.210.1) by scmse2.scbb.aoyama.ac.jp via smtp id 41de_19f087de_9474_11da_8245_0014221f2a2d; Fri, 03 Feb 2006 14:15:33 +0900
Received: from EBOSHIIWA.it.aoyama.ac.jp (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.13.1/8.13.1) with ESMTP id k135EA9b002904; Fri, 3 Feb 2006 14:14:47 +0900
Message-Id: <6.0.0.20.2.20060203120709.0685fcc0@localhost>
X-Sender: duerst@localhost
X-Mailer: QUALCOMM Windows Eudora Version 6J
Date: Fri, 03 Feb 2006 12:10:17 +0900
To: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>, IMAP Extensions WG <ietf-imapext@imc.org>, public-ietf-collation@w3c.org
From: Martin Duerst <duerst@it.aoyama.ac.jp>
Subject: Re: draft-newman-comparator updated
In-Reply-To: <KoXg11fi/4qP6q2U1IvcIw.md5@libertango.oryx.com>
References: <KoXg11fi/4qP6q2U1IvcIw.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>

At 23:18 06/02/02, Arnt Gulbrandsen wrote:
 >
 >Hi,
 >
 >the draft is lying silently in the internet-draft editor queue. However, 
I would appreciate reviews, speedily if possible. If you have the time and 
it isn't yet in your internet-drafts mirror, I can send a copy.
 >
 >There are a few changes.
 >
 >The basic and biggest change is that collation is defined in terms of 
octet strings, with explicit notes that implementations may choose to use 
character strings, and notes that in that case, e.g. i;octet may not be 
possible to implement. Various minor changes changes result.

This may work out, or it may not work out. I'll check this carefully,
but don't have any time this (and probably next) week, sorry.

The main problem is that octet-based collations (except possibly for
i;octet) need an encoding, but character-based collations obviously
don't. So if I have some French collation defined over characters,
and some French collation defined over iso-8859-1, how will they
be distinguished? How can we make sure registrations can be
as compact and easy as possible?

Regards,    Martin.


 >There are also more definitions and requirements. For example, equality 
has to be implemented if ordering is, and if ordering returns equal, 
equality must return true. That sort of thing.
 >
 >I am unhappy with one thing: i;octet is still used a little as a last 
resort to resolve equality/order, which brings it very close to 
mandatory-to-implement. This doesn't seem necessary from an architectural 
point of view. I just haven't found a solution I really like.
 >
 >Arnt
 > 



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12NTO5G016239; Thu, 2 Feb 2006 15:29:24 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12NTO9P016238; Thu, 2 Feb 2006 15:29:24 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from pythagoras.zen.co.uk (pythagoras.zen.co.uk [212.23.3.140]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12NTNZg016232 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 15:29:23 -0800 (PST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1F4ntB-0004K9-7s; Thu, 02 Feb 2006 23:29:21 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 417A2498003; Thu,  2 Feb 2006 23:38:36 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17004-06; Thu, 2 Feb 2006 23:38:32 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id E9728498002; Thu,  2 Feb 2006 23:38:32 +0000 (GMT)
Date: Thu, 02 Feb 2006 23:29:16 +0000
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com> <18436.1138873055.818881@peirce.dave.cridland.net> <Pine.OSX.4.64.0602020851500.17564@pangtzu.panda.com> <23543.1138917698.577786@peirce.dave.cridland.net> <C20B2A4C-0A7F-47D2-9EF2-9F048319CC4C@osafoundation.org>
In-Reply-To: <C20B2A4C-0A7F-47D2-9EF2-9F048319CC4C@osafoundation.org>
MIME-Version: 1.0
Message-Id: <23543.1138922957.665178@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Lisa Dusseault <lisa@osafoundation.org>
Cc: Mark Crispin <mrc@CAC.Washington.EDU>, <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Pythagoras-IP: [217.155.137.60]
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 Thu Feb  2 22:32:50 2006, Lisa Dusseault wrote:
> Dave said "the deficient server in this case causes no damage other 
>  than a spurious round-trip from a client.", and Mark said 
> something  about guns and preschoolers :)
> 
> 
Yeah. I'm talking specifically the case where a server increments a 
MODSEQ for a message when the message is not visibly changed. Which 
is the same as, for instance, a change to an ANNOTATion when the 
client doesn't speak ANNOTATE - the client isn't damaged by it as 
such, and has to expect it.

What would happen is that the client would see a changed 
HIGHESTMODSEQ, and accordingly issue a FETCH  ... CHANGEDSINCE, which 
would yield some response, which would provide data the client 
already had.

Where the HIGHESTMODSEQ is the same, the FETCH can be eliminated 
(and, optionally, even the SELECT).

Obviously the latter is more efficient and faster, and therefore a 
server which incremements the Modification sequence when no 
Modification has taken place is not as good as it could be.

Obviously the client will remain in sync without resorting to any 
kind of workaround - resync just happens to be more costly - so the 
server is not broken as such, and such behaviour could be the result 
of a modification the client is not capable enough to see.


> Were you two talking about different cases?  Would the outcome of 
> bad  client use of MODSEQ would be dire or simply the client's own 
> problem?

Mark's suggesting that, because all known uses of MODSEQ involve 
ignoring both its numeric nature and its status as a FETCH item, then 
it's potentially inviting doom by having MODSEQs have a numeric, 
ascending, per-message-accessible nature. This is a different case to 
the above. At least I think so.

I can't see this being the case - a client expecting some specific 
meaning to the difference of two MODSEQ numbers is probably asking 
for trouble (except in two vanishingly rare cases, where the 
difference is exactly 1), but for the most part, it won't cause any 
damage other than to itself, and potentially the user's data bill. 
Other clients I cannot see being affected by that, except 
beneficially.

You see, I could assume that an increment of 2 to HIGHESTMODSEQ 
implied there were two modifications, and having found two modified 
messages, I could decide that I'd found any modified messages, and 
consider myself resynchronized. Sometimes, I might even *be* 
resynchronized. Trouble is, any modification may encompass as many or 
few messages as possible, hence that's an invalid assumption, and the 
client may actually be out of sync. But, this doesn't effect another 
client. What can happen, however, is that the out of sync client can 
mark deleted, and subsequently expunge, the wrong message. But any 
out-of-sync client can do that perfectly well without CONDSTORE, and 
I don't think it makes the problem markedly worse.

You can cause wasteful round-trips for other clients by toggling a 
flag on and off across all messages, but I can't see this being done 
by accident much, and it merely degenerates CONDSTORE to uselessness, 
rather than actively breaking it.

I'm sure we'll eventually find a use for access to the MODSEQ of 
messages, probably something to do with archiving away old messages, 
or watching the changes to status of work items in a shared mailbox - 
I could probably come up with plenty of uses. I can't come up with 
much in the way of harm.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12MiAkZ005550; Thu, 2 Feb 2006 14:44:10 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12MiAQ8005549; Thu, 2 Feb 2006 14:44:10 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12Mi9P4005543 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 14:44:10 -0800 (PST) (envelope-from MRC@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout4.cac.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12Mi716003149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 2 Feb 2006 14:44:07 -0800
X-Auth-Received: from Shimo-Tomobiki.panda.com (panda.com [206.124.149.114]) (authenticated authid=mrc) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12Mi528015179 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Thu, 2 Feb 2006 14:44:06 -0800
Date: Thu, 2 Feb 2006 14:44:03 -0800
From: Mark Crispin <MRC@CAC.Washington.EDU>
To: Lisa Dusseault <lisa@osafoundation.org>
cc: Dave Cridland <dave@cridland.net>, ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
In-Reply-To: <C20B2A4C-0A7F-47D2-9EF2-9F048319CC4C@osafoundation.org>
Message-ID: <Pine.WNT.4.65.0602021435090.3112@Shimo-Tomobiki.panda.com>
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com> <18436.1138873055.818881@peirce.dave.cridland.net> <Pine.OSX.4.64.0602020851500.17564@pangtzu.panda.com> <23543.1138917698.577786@peirce.dave.cridland.net> <C20B2A4C-0A7F-47D2-9EF2-9F048319CC4C@osafoundation.org>
Organization: Networks & Distributed Computing
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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 Thu, 2 Feb 2006, Lisa Dusseault wrote:
> Were you two talking about different cases?  Would the outcome of bad client 
> use of MODSEQ would be dire or simply the client's own problem?

That's the problem.  I don't know; and in such cases like this pessimism 
seems to be the more prudent course.

There's the harm in an implementation which uses empirical testing instead 
of the specification to define behavior.

There's the harm of making unwarranted assumptions, and decreeing that 
those who do not conform to those assumptions are "defective".  Consider 
those clients that assume that all names are "dual-use", all mailboxes 
support shared access, all servers support such-and-such extension, etc.

There's the harm of making a bizarre interpretation of the specification, 
claiming that interpretation is correct simply because it is not 
explicitly forbidden (never mind that it contracts something else), and 
then behaving badly against other implementations.

I've seen all of the above happen; and as a result I get nervous when 
there is wiggle-room in the specification or statements that it's 
"obvious" that it's such-and-such way.

I'm not saying that this applies here.  But has anyone made sure that it 
does not?

-- Mark --

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



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12MWsr7004446; Thu, 2 Feb 2006 14:32:54 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12MWsAN004445; Thu, 2 Feb 2006 14:32:54 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from laweleka.osafoundation.org (laweleka.osafoundation.org [204.152.186.98]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12MWsY6004439 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 14:32:54 -0800 (PST) (envelope-from lisa@osafoundation.org)
Received: from [192.168.101.89] (w002.z065106067.sjc-ca.dsl.cnc.net [65.106.67.2]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by laweleka.osafoundation.org (Postfix) with ESMTP id D0DF6142258; Thu,  2 Feb 2006 14:32:53 -0800 (PST)
In-Reply-To: <23543.1138917698.577786@peirce.dave.cridland.net>
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com> <18436.1138873055.818881@peirce.dave.cridland.net> <Pine.OSX.4.64.0602020851500.17564@pangtzu.panda.com> <23543.1138917698.577786@peirce.dave.cridland.net>
Mime-Version: 1.0 (Apple Message framework v746.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <C20B2A4C-0A7F-47D2-9EF2-9F048319CC4C@osafoundation.org>
Cc: Mark Crispin <mrc@CAC.Washington.EDU>, <ietf-imapext@imc.org>
Content-Transfer-Encoding: 7bit
From: Lisa Dusseault <lisa@osafoundation.org>
Subject: Re: MODSEQ in CONDSTORE
Date: Thu, 2 Feb 2006 14:32:50 -0800
To: Dave Cridland <dave@cridland.net>
X-Mailer: Apple Mail (2.746.2)
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>

Dave said "the deficient server in this case causes no damage other  
than a spurious round-trip from a client.", and Mark said something  
about guns and preschoolers :)

Were you two talking about different cases?  Would the outcome of bad  
client use of MODSEQ would be dire or simply the client's own problem?

lisa




Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12M1rh1000858; Thu, 2 Feb 2006 14:01:53 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12M1r69000857; Thu, 2 Feb 2006 14:01:53 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rutherford.zen.co.uk (rutherford.zen.co.uk [212.23.3.142]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12M1qgv000851 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 14:01:52 -0800 (PST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by rutherford.zen.co.uk with esmtp (Exim 4.34) id 1F4mWU-0003co-Qk; Thu, 02 Feb 2006 22:01:51 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 0B5CD498004; Thu,  2 Feb 2006 22:11:05 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16600-02; Thu, 2 Feb 2006 22:10:53 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id 3EF59498002; Thu,  2 Feb 2006 22:10:53 +0000 (GMT)
Date: Thu, 02 Feb 2006 22:01:37 +0000
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com> <18436.1138873055.818881@peirce.dave.cridland.net> <Pine.OSX.4.64.0602020851500.17564@pangtzu.panda.com>
In-Reply-To: <Pine.OSX.4.64.0602020851500.17564@pangtzu.panda.com>
MIME-Version: 1.0
Message-Id: <23543.1138917698.577786@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Mark Crispin <mrc@CAC.Washington.EDU>
Cc: <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Rutherford-IP: [217.155.137.60]
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 Thu Feb  2 17:23:04 2006, Mark Crispin wrote:
> On Thu, 2 Feb 2006, Dave Cridland wrote:
>> A user setting \Seen (possibly implicitly in a FETCH BODY[...]) 
>> causes the MODSEQ to be bumped for that message. If the 
>> implementation is poor, then this can cause the MODSEQ seen by 
>> other users to be changed, too. That's undesirable, but as a 
>> client implementor, I infinitely prefer that level of 
>> implementation to none at all.
> 
> But that's only if (1) the mailbox has per-user flags, (2) the 
> mailbox has MODSEQ.  Right?
> 
> 
Exactly, that's precisely the circumstance I'm describing.


> Personally, I never thought that per-user flags were worth the 
> complexity, even though I was guilty of creating them.  But it was 
> only as a grim necessity for bboards and newsgroups; and even then 
> that was just a single flag.  The idea of using MODSEQ for such a 
> thing staggers me.
> 
> 
It seems quite logical to me. I'm told it's a little tricky to get 
right/efficient with CONDSTORE, mind.


>> Otherwise, you're effectively lowering the width of the UID space, 
>> down to 30, or 22, bits. That's still probably plenty of space, 
>> but there's something philosophically wrong about an extension 
>> lowering the scalability of the protocol it extends.
> 
> This argument only applies when you are monotonically allocating 
> UIDs (otherwise it's your implementation that reduces the UID 
> space, not MODSEQ).  And if you are monotonically allocating UIDs, 
> then there is no reason not to monotonically allocate MODSEQ.  The 
> notion of there being over 4 billion updates to one mailbox is 
> simply not credible.
> 
> 
Probably not right now, but the notion that if you allow for 
4,294,967,295 messages in a mailbox in the protocol - and never mind 
that existing servers will collapse long before that - and the 
arrival of each counts as a modification, and there can be further 
modifications, therefore that the maximum number of modifications 
before an overflow event should be higher than 4,294,967,295 seems 
perfectly sensible to me, especially when no "real-world" server has 
to support more than 4,294,967,295, it's only the protocol.


>>> I disagree.  Either MODSEQ reports that something touched the 
>>> message, or it reports that something changed the mesage.  As 
>>> matters stand, it is ambiguous.  A client may care.
>> Well, let me put it this way - a client which actually does care 
>> is broken. A server which claims there to be a change when there 
>> is not is deficient.
> 
> [sarcasm] And the IMAP community never, ever, produces broken 
> clients and deficient servers (or deficient clients and broken 
> servers). [/sarcasm]
> 
> We should have learned the painful lesson by now.
> 
> 
Sure... But the deficient server in this case causes no damage other 
than a spurious round-trip from a client.

I don't see how a client could assume that a MODSEQ change to a 
message represented a visible change to the FLAGS, but even if it 
could, what good would it do? Surely in finding the MODSEQ, it could 
easily enough find the FLAGS at the same time? And if it did make 
such an assumption somehow, what would it then do which would affect 
other clients?


>>>> Well, I don't think it's much of a problem. Most of the 
>>>> computers I work with these days increasingly use "unsigned 
>>>> long" for 64-bit values - even my laptop is 64-bit, but the vast 
>>>> majority of the 32-bit systems I use seem to support some kind 
>>>> of "unsigned long long" or equivalent.
>>> That hasn't been my experience... :-(
>> Get a better compiler? :-)
> 
> Sure, please write it.  And give it away for free, along with free 
> technical support.
> 
> 
To be fair, there's not much point competing with the GCC community, 
who seem to be doing a marvellous job there.


> I have a difficult time tolerating the "my system has 
> such-and-such, and it's your fault if your system does not have it 
> too" attitude.  Either we care about interoperability and 
> implementation costs, or we should forget this IETF nonsense and go 
> home.
> 
> 
Mark, I obviously care about interoperability, as we're right here 
discussing it. I obviously care about implementation costs, because I 
provided an estimate. I'm also already at home, come to that.

I'm simply saying that many systems do, indeed, have 64-bit unsigned 
integer datatypes available, and that it appears to be an increasing 
trend, and I actually find it very hard to believe that there exists 
any current desktop system which does not have 64-bit support in the 
compiler and libraries.

There are indeed some systems that don't, such as Symbian for one, 
but in my considered opinion, this doesn't matter, because it only 
affects client implementations, and client implementations can cope 
perfectly well with using 3 strings, for only a slight overhead.

[Aside: Symbian's compiler is GCC, and does indeed have unsigned long 
long in at least some versions, but the descriptor library has no 
support for it, only limited support for a C++-implemented signed 
64-bit int.]

The implementation cost is therefore very slight indeed, unless the 
client stores every MODSEQ's value and/or performs arithmetic or 
comparisons upon them, and this is unlikely to be beneficial to the 
client, and it is certainly not required for the purposes of faster 
resynchronization, which is the obvious use-case for CONDSTORE on 
limited platforms anyway.

On those platforms where it's possible to build a usable server which 
could overflow a 32-bit MODSEQ, whether by an astonishing throughput 
of STORE commands or a truly impressive amount of exceedingly fast 
disk, I refuse to believe that a compiler with 64-bit support is 
going to be a problem to find.


>> I don't believe clients ever need to handle more than 3 MODSEQ 
>> values at any time, and only need to store 2 permanently. If I 
>> needed to store each message's MODSEQ, I'd probably feel 
>> differently, but I don't think that's ever the case.
> 
> Are you certain?  IMHO, the client ability to fetch a message's 
> MODSEQ directly is like placing a loaded pistol with a hair trigger 
> in a room of preschoolers.  MODSEQ's ascending property makes it 
> nice and shiny too.
> 
> 
Well, no, I'm not certain there are no cases where being able to 
treat the 64-bit MODSEQ as a 64-bit number is useful to a client, 
merely that I've not found one useful enough to implement yet. Nor 
have I found the ability to directly find MODSEQ values for messages 
useful, as yet. There's no harm in doing so, of course.

However, I've implemented the client side for the uses of fast 
resynchronization, and I use it exclusively and daily to read my 
mail, and it works perfectly well, dealing with only three MODSEQ 
values per mailbox. Nor can I see anywhere in my code where instead 
of using a true 64-bit integer and comparing, I couldn't just as 
effectively compare strings for equality. I'm very confident that 
adding the conditional STORE itself would not cause me to change that 
assessment.

I have spotted two possible cases for the rare circumstance where a 
difference of one is noted between HIGHESTMODSEQ values which 
represent a potential gain, when also comparing UIDNEXT and EXISTS, 
but it's so rare I've never bothered implementing it, and I strongly 
suspect that, again, this is possible to handle with strings.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12HwqlF071322; Thu, 2 Feb 2006 09:58:52 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12HwqSZ071321; Thu, 2 Feb 2006 09:58:52 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from laweleka.osafoundation.org (laweleka.osafoundation.org [204.152.186.98]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12HwpvJ071314 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 09:58:51 -0800 (PST) (envelope-from lisa@osafoundation.org)
Received: from [192.168.101.89] (w002.z065106067.sjc-ca.dsl.cnc.net [65.106.67.2]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by laweleka.osafoundation.org (Postfix) with ESMTP id 2018B142293; Thu,  2 Feb 2006 09:58:51 -0800 (PST)
In-Reply-To: <KoXg11fi/4qP6q2U1IvcIw.md5@libertango.oryx.com>
References: <KoXg11fi/4qP6q2U1IvcIw.md5@libertango.oryx.com>
Mime-Version: 1.0 (Apple Message framework v746.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <0E5E8CD0-2C47-484F-8668-663D92B16E04@osafoundation.org>
Cc: IMAP Extensions WG <ietf-imapext@imc.org>, public-ietf-collation@w3c.org
Content-Transfer-Encoding: 7bit
From: Lisa Dusseault <lisa@osafoundation.org>
Subject: Document store (was: Re: draft-newman-comparator updated)
Date: Thu, 2 Feb 2006 09:58:48 -0800
To: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
X-Mailer: Apple Mail (2.746.2)
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>

FYI, If anybody wants to post documents-in-progress to http:// 
ietf.webdav.org/imapext,  I can give out accounts and permissions.   
For the documents I edit, I use it to post the XML, keep a version  
history, and let people subscribe to notifications of changes.

lisa


On Feb 2, 2006, at 6:18 AM, Arnt Gulbrandsen wrote:

>
> Hi,
>
> the draft is lying silently in the internet-draft editor queue.  
> However, I would appreciate reviews, speedily if possible. If you  
> have the time and it isn't yet in your internet-drafts mirror, I  
> can send a copy.
>
> There are a few changes.
>
> The basic and biggest change is that collation is defined in terms  
> of octet strings, with explicit notes that implementations may  
> choose to use character strings, and notes that in that case, e.g.  
> i;octet may not be possible to implement. Various minor changes  
> changes result.
>
> There are also more definitions and requirements. For example,  
> equality has to be implemented if ordering is, and if ordering  
> returns equal, equality must return true. That sort of thing.
>
> I am unhappy with one thing: i;octet is still used a little as a  
> last resort to resolve equality/order, which brings it very close  
> to mandatory-to-implement. This doesn't seem necessary from an  
> architectural point of view. I just haven't found a solution I  
> really like.
>
> Arnt
>



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12HN9pa067283; Thu, 2 Feb 2006 09:23:09 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12HN9MG067282; Thu, 2 Feb 2006 09:23:09 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12HN8Nm067276 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 09:23:09 -0800 (PST) (envelope-from mrc@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout4.cac.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12HN6jJ002261 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 2 Feb 2006 09:23: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.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12HN50d016658 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 2 Feb 2006 09:23:06 -0800
Date: Thu, 2 Feb 2006 09:23:04 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Dave Cridland <dave@cridland.net>
cc: ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
In-Reply-To: <18436.1138873055.818881@peirce.dave.cridland.net>
Message-ID: <Pine.OSX.4.64.0602020851500.17564@pangtzu.panda.com>
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com> <18436.1138873055.818881@peirce.dave.cridland.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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 Thu, 2 Feb 2006, Dave Cridland wrote:
> A user setting \Seen (possibly implicitly in a FETCH BODY[...]) causes the 
> MODSEQ to be bumped for that message. If the implementation is poor, then 
> this can cause the MODSEQ seen by other users to be changed, too. That's 
> undesirable, but as a client implementor, I infinitely prefer that level of 
> implementation to none at all.

But that's only if (1) the mailbox has per-user flags, (2) the mailbox has 
MODSEQ.  Right?

Personally, I never thought that per-user flags were worth the complexity, 
even though I was guilty of creating them.  But it was only as a grim 
necessity for bboards and newsgroups; and even then that was just a single 
flag.  The idea of using MODSEQ for such a thing staggers me.

> Otherwise, you're effectively lowering the width of the UID space, down to 
> 30, or 22, bits. That's still probably plenty of space, but there's something 
> philosophically wrong about an extension lowering the scalability of the 
> protocol it extends.

This argument only applies when you are monotonically allocating UIDs 
(otherwise it's your implementation that reduces the UID space, not 
MODSEQ).  And if you are monotonically allocating UIDs, then there is no 
reason not to monotonically allocate MODSEQ.  The notion of there being 
over 4 billion updates to one mailbox is simply not credible.

Now, if you have per-user and global flags in a mailbox that has MODSEQ, 
that may be a different matter.  But if you have that, that's a hole that 
you dug for yourself.  I see no reason to have such a thing; and if it was 
that important you should have defined two MODSEQs.

>> I disagree.  Either MODSEQ reports that something touched the message, or 
>> it reports that something changed the mesage.  As matters stand, it is 
>> ambiguous.  A client may care.
> Well, let me put it this way - a client which actually does care is broken. A 
> server which claims there to be a change when there is not is deficient.

[sarcasm] And the IMAP community never, ever, produces broken clients and 
deficient servers (or deficient clients and broken servers). [/sarcasm]

We should have learned the painful lesson by now.

>>> Well, I don't think it's much of a problem. Most of the computers I work 
>>> with these days increasingly use "unsigned long" for 64-bit values - even 
>>> my laptop is 64-bit, but the vast majority of the 32-bit systems I use 
>>> seem to support some kind of "unsigned long long" or equivalent.
>> That hasn't been my experience... :-(
> Get a better compiler? :-)

Sure, please write it.  And give it away for free, along with free 
technical support.

I have a difficult time tolerating the "my system has such-and-such, and 
it's your fault if your system does not have it too" attitude.  Either we 
care about interoperability and implementation costs, or we should forget 
this IETF nonsense and go home.

> I don't believe clients ever need to handle more than 3 MODSEQ values at any 
> time, and only need to store 2 permanently. If I needed to store each 
> message's MODSEQ, I'd probably feel differently, but I don't think that's 
> ever the case.

Are you certain?  IMHO, the client ability to fetch a message's MODSEQ 
directly is like placing a loaded pistol with a hair trigger in a room of 
preschoolers.  MODSEQ's ascending property makes it nice and shiny too.

Perhaps it would have been better to have created an alternative means to 
do those functionalities that doesn't leave temptation in the way.

-- 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 above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12GqfaP063545; Thu, 2 Feb 2006 08:52:41 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12Gqfnf063544; Thu, 2 Feb 2006 08:52:41 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12Gqe43063537 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 08:52:40 -0800 (PST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.198] (shiny.isode.com [62.3.217.250])  by rufus.isode.com via TCP (submission) with ESMTPA; Thu, 2 Feb 2006 16:52:37 +0000
Message-ID: <43E238D4.2030904@isode.com>
Date: Thu, 02 Feb 2006 16:52:36 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
To: Mark Crispin <mrc@CAC.Washington.EDU>
CC: ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <43E1DD52.7070705@isode.com> <Pine.OSX.4.64.0602020844520.17564@pangtzu.panda.com>
In-Reply-To: <Pine.OSX.4.64.0602020844520.17564@pangtzu.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 Thu, 2 Feb 2006, Alexey Melnikov wrote:
>
>>>> Clients, of course, have to deal with it as a 64-bit unsigned 
>>>> integer for all servers.
>>>
>>> That's a problem.  If you don't have a 64-bit integer type available 
>>> in then compiler, then you have to do the work by hand.  There seems 
>>> to me to be no good reason for this.
>>
>> Clients don't need to do any math on modsequences, they should be 
>> treated as opaque values.
>
> Are you sure?  It seems to me that the ascending property of modseqs 
> is something that clients may want to use, even though there's a 
> server operation for it.

No :-). One clever guy pointed out that a client might want to compare 
the cached modseq with the value returned in STATUS HIGHESTMODSEQ, for 
example.



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12GpQWp063451; Thu, 2 Feb 2006 08:51:26 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12GpQQv063450; Thu, 2 Feb 2006 08:51:26 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12GpPU3063438 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 08:51:25 -0800 (PST) (envelope-from mrc@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout1.cac.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12GpL1F020882 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 2 Feb 2006 08:51:21 -0800
X-Auth-Received: from pangtzu.panda.com (pangtzu.panda.com [206.124.149.117]) (authenticated authid=mrc) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12GpK5U007358 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 2 Feb 2006 08:51:20 -0800
Date: Thu, 2 Feb 2006 08:51:19 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
cc: ietf-imapext@imc.org
Subject: Re: collation: COMPARATOR/COLLATION?
In-Reply-To: <fQ0zcBD6EqnqNTy6wNewoQ.md5@libertango.oryx.com>
Message-ID: <Pine.OSX.4.64.0602020851040.17564@pangtzu.panda.com>
References: <zvw0g7uQlDrQiKtVa6n+eg.md5@libertango.oryx.com>  <18436.1138888191.391765@peirce.dave.cridland.net> <fQ0zcBD6EqnqNTy6wNewoQ.md5@libertango.oryx.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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 Thu, 2 Feb 2006, Arnt Gulbrandsen wrote:
> A show of hands, please? I think we should go with whatever term suits most 
> IMAP people.

I agree with COMPARATOR.

-- 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 above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12GnIDP063146; Thu, 2 Feb 2006 08:49:18 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12GnI8l063145; Thu, 2 Feb 2006 08:49:18 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12GnHUT063139 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 08:49:17 -0800 (PST) (envelope-from mrc@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout1.cac.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12GnFAn020021 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 2 Feb 2006 08:49:15 -0800
X-Auth-Received: from pangtzu.panda.com (pangtzu.panda.com [206.124.149.117]) (authenticated authid=mrc) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12GnDoi006739 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 2 Feb 2006 08:49:14 -0800
Date: Thu, 2 Feb 2006 08:49:13 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Alexey Melnikov <alexey.melnikov@isode.com>
cc: Dave Cridland <dave@cridland.net>, ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
In-Reply-To: <43E1DD52.7070705@isode.com>
Message-ID: <Pine.OSX.4.64.0602020844520.17564@pangtzu.panda.com>
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <43E1DD52.7070705@isode.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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 Thu, 2 Feb 2006, Alexey Melnikov wrote:
>>> Clients, of course, have to deal with it as a 64-bit unsigned integer for 
>>> all servers.
>> That's a problem.  If you don't have a 64-bit integer type available in 
>> then compiler, then you have to do the work by hand.  There seems to me to 
>> be no good reason for this.
> Clients don't need to do any math on modsequences, they should be treated as 
> opaque values.

Are you sure?  It seems to me that the ascending property of modseqs is 
something that clients may want to use, even though there's a server 
operation for it.

-- 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 above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12GipHd062503; Thu, 2 Feb 2006 08:44:51 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12GipR5062500; Thu, 2 Feb 2006 08:44:51 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12GioWx062488 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 08:44:50 -0800 (PST) (envelope-from mrc@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout3.cac.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12GinoS004050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 2 Feb 2006 08:44:49 -0800
X-Auth-Received: from pangtzu.panda.com (pangtzu.panda.com [206.124.149.117]) (authenticated authid=mrc) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12GifEq005552 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 2 Feb 2006 08:44:49 -0800
Date: Thu, 2 Feb 2006 08:44:41 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Alexey Melnikov <alexey.melnikov@isode.com>
cc: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: MODSEQ in CONDSTORE
In-Reply-To: <43E1E0E2.8010404@isode.com>
Message-ID: <Pine.OSX.4.64.0602020844100.17564@pangtzu.panda.com>
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <43E1E0E2.8010404@isode.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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 Thu, 2 Feb 2006, Alexey Melnikov wrote:
>> The examples imply MODSEQ as a date/time, but as the document says you 
>> can't actually do that.
> Because time() is not granular enough for the task (multiple flag changes can 
> happen in one second), and it may also go back when time on the computer 
> changes.

Yes, of course, I understand that.  But the use of times in the examples 
implies otherwise.

-- 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 above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12EA6Q0045243; Thu, 2 Feb 2006 06:10:06 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12EA6Cn045242; Thu, 2 Feb 2006 06:10:06 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12EA2mG045236 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 06:10:03 -0800 (PST) (envelope-from arnt@gulbrandsen.priv.no)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id 88C114AC21; Thu,  2 Feb 2006 15:10:01 +0100 (CET)
Message-Id: <KoXg11fi/4qP6q2U1IvcIw.md5@libertango.oryx.com>
Date: Thu, 2 Feb 2006 15:18:10 +0100
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: IMAP Extensions WG <ietf-imapext@imc.org>, public-ietf-collation@w3c.org
Subject: draft-newman-comparator updated
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>

Hi,

the draft is lying silently in the internet-draft editor queue. However, 
I would appreciate reviews, speedily if possible. If you have the time 
and it isn't yet in your internet-drafts mirror, I can send a copy.

There are a few changes.

The basic and biggest change is that collation is defined in terms of 
octet strings, with explicit notes that implementations may choose to 
use character strings, and notes that in that case, e.g. i;octet may 
not be possible to implement. Various minor changes changes result.

There are also more definitions and requirements. For example, equality 
has to be implemented if ordering is, and if ordering returns equal, 
equality must return true. That sort of thing.

I am unhappy with one thing: i;octet is still used a little as a last 
resort to resolve equality/order, which brings it very close to 
mandatory-to-implement. This doesn't seem necessary from an 
architectural point of view. I just haven't found a solution I really 
like.

Arnt



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12Dt2J4044048; Thu, 2 Feb 2006 05:55:02 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12Dt2G0044047; Thu, 2 Feb 2006 05:55:02 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12Dt1YM044041 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 05:55:02 -0800 (PST) (envelope-from arnt@gulbrandsen.priv.no)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id B05BB4AC2B for <ietf-imapext@imc.org>; Thu,  2 Feb 2006 14:55:00 +0100 (CET)
Message-Id: <fQ0zcBD6EqnqNTy6wNewoQ.md5@libertango.oryx.com>
Date: Thu, 2 Feb 2006 15:03:09 +0100
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: ietf-imapext@imc.org
Subject: Re: collation: COMPARATOR/COLLATION?
References: <zvw0g7uQlDrQiKtVa6n+eg.md5@libertango.oryx.com> <18436.1138888191.391765@peirce.dave.cridland.net>
In-Reply-To: <18436.1138888191.391765@peirce.dave.cridland.net>
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>

Dave Cridland writes:
> On Thu Feb  2 13:50:19 2006, Arnt Gulbrandsen wrote:
>> draft-ietf-imapext-i18n has no substantive changes. But I am 
>> considering renaming the COMPARATOR extension to COLLATION to better 
>> suit the terminology in draft-newman-comparator. Opinions on that 
>> change? I know that sieve uses the term comparator.
>
> As does ACAP. I actually prefer the term comparator, and thoroughly 
> dislike the concept that they must collate.

A show of hands, please? I think we should go with whatever term suits 
most IMAP people.

Arnt



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12Do2ef042343; Thu, 2 Feb 2006 05:50:02 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12Do2cu042342; Thu, 2 Feb 2006 05:50:02 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from pythagoras.zen.co.uk (pythagoras.zen.co.uk [212.23.3.140]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12Do1Lk042326 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 05:50:01 -0800 (PST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1F4eqW-0006LM-I6; Thu, 02 Feb 2006 13:50:00 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 5365C498003; Thu,  2 Feb 2006 13:59:11 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14132-06; Thu, 2 Feb 2006 13:59:02 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id 5C5C3498002; Thu,  2 Feb 2006 13:59:02 +0000 (GMT)
Date: Thu, 02 Feb 2006 13:49:50 +0000
Subject: Re: collation: COMPARATOR/COLLATION?
References: <zvw0g7uQlDrQiKtVa6n+eg.md5@libertango.oryx.com>
In-Reply-To: <zvw0g7uQlDrQiKtVa6n+eg.md5@libertango.oryx.com>
MIME-Version: 1.0
Message-Id: <18436.1138888191.391765@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
Cc: <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Pythagoras-IP: [217.155.137.60]
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 Thu Feb  2 13:50:19 2006, Arnt Gulbrandsen wrote:
> a week and a few hours ago, I finished an update to the collation 
> drafts. Not sure why it hasn't been published yet. If anyone will 
> review before the i-d editor has done the necessary, I'll happily 
> send out copies via private email. (It's a little large for the 
> list, I suppose. 100k.)
> 
> 
Yes please.


> draft-ietf-imapext-i18n has no substantive changes. But I am 
> considering renaming the COMPARATOR extension to COLLATION to 
> better suit the terminology in draft-newman-comparator. Opinions on 
> that change? I know that sieve uses the term comparator.
> 
> 
As does ACAP. I actually prefer the term comparator, and thoroughly 
dislike the concept that they must collate.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12DgChf040859; Thu, 2 Feb 2006 05:42:12 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12DgChU040858; Thu, 2 Feb 2006 05:42:12 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12DgBhX040843 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 05:42:12 -0800 (PST) (envelope-from arnt@gulbrandsen.priv.no)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id 50E9B4AC1F; Thu,  2 Feb 2006 14:42:10 +0100 (CET)
Message-Id: <zvw0g7uQlDrQiKtVa6n+eg.md5@libertango.oryx.com>
Date: Thu, 2 Feb 2006 14:50:19 +0100
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: collation: COMPARATOR/COLLATION?
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>

Hi,

a week and a few hours ago, I finished an update to the collation 
drafts. Not sure why it hasn't been published yet. If anyone will 
review before the i-d editor has done the necessary, I'll happily send 
out copies via private email. (It's a little large for the list, I 
suppose. 100k.)

draft-ietf-imapext-i18n has no substantive changes. But I am considering 
renaming the COMPARATOR extension to COLLATION to better suit the 
terminology in draft-newman-comparator. Opinions on that change? I know 
that sieve uses the term comparator.

draft-newman-comparator has changes. Review _needed_.

Arnt



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12DNBtG038274; Thu, 2 Feb 2006 05:23:11 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12DNBso038273; Thu, 2 Feb 2006 05:23:11 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from pythagoras.zen.co.uk (pythagoras.zen.co.uk [212.23.3.140]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12DNA3Y038267 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 05:23:10 -0800 (PST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1F4eQX-0003Pi-3i; Thu, 02 Feb 2006 13:23:09 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 83229498003; Thu,  2 Feb 2006 13:32:19 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13942-10; Thu, 2 Feb 2006 13:32:16 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id ADC8B498002; Thu,  2 Feb 2006 13:32:16 +0000 (GMT)
Date: Thu, 02 Feb 2006 13:23:05 +0000
Subject: Re: ACL LISTRIGHTS
References: <1138885861.15880.87.camel@localhost.localdomain>
In-Reply-To: <1138885861.15880.87.camel@localhost.localdomain>
MIME-Version: 1.0
Message-Id: <18436.1138886585.909623@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Timo Sirainen <tss@iki.fi>
Cc: <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Pythagoras-IP: [217.155.137.60]
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 Thu Feb  2 13:11:01 2006, Timo Sirainen wrote:
> But what I'm wondering is what does the "required rights" parameter 
> mean
> in LISTRIGHTS reply? Is it the same as what rights the user 
> currently
> has (ie. for "LISTRIGHTS INBOX <myusername>" it's the same as 
> "MYRIGHTS
> INBOX"?
> 
> 
No, it's the inalienable rights the user has. For instance, a server 
might require that a user always has full rights over their INBOX, or 
all their personal folders. It's impossible to remove those rights 
via an ACL command.


> Also it looks like the "optional rights" doesn't necessarily list 
> all
> the possible rights that the RFC defines. Is there a reason why 
> server
> wouldn't list all of them? Except possibly if it doesn't support the
> feature at all?
> 
> 
Exactly that - it may be impossible to grant certain users 
administrative rights, for instance.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12DB8WP036944; Thu, 2 Feb 2006 05:11:08 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12DB8cw036942; Thu, 2 Feb 2006 05:11:08 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from dmgw.movial.fi (dmgw.movial.fi [62.236.91.5]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12DB7XW036926 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 05:11:07 -0800 (PST) (envelope-from tss@iki.fi)
Received: from movial.fi (hellmail.movial.fi [62.236.91.6]) by dmgw.movial.fi (Postfix) with ESMTP id E8D61231 for <ietf-imapext@imc.org>; Thu,  2 Feb 2006 15:11:00 +0200 (EET)
Received: from localhost (hellmail.movial.fi [127.0.0.1]) by movial.fi (Postfix) with ESMTP id D977F8007A for <ietf-imapext@imc.org>; Thu,  2 Feb 2006 15:11:00 +0200 (EET)
Received: from movial.fi ([127.0.0.1]) by localhost (hellmail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17032-03 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 15:11:00 +0200 (EET)
Received: from sd022.hel.movial.fi (sd022.hel.movial.fi [172.17.49.22]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by movial.fi (Postfix) with ESMTP id A6EFB8006D for <ietf-imapext@imc.org>; Thu,  2 Feb 2006 15:11:00 +0200 (EET)
Subject: ACL LISTRIGHTS
From: Timo Sirainen <tss@iki.fi>
To: IMAP Extensions WG <ietf-imapext@imc.org>
Content-Type: text/plain
Date: Thu, 02 Feb 2006 15:11:01 +0200
Message-Id: <1138885861.15880.87.camel@localhost.localdomain>
Mime-Version: 1.0
X-Mailer: Evolution 2.0.4 
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at movial.fi
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>

Now that I'm beginning to implement ACLs for my server, I finally got
around to reading rfc4314 (unfortunately I didn't really have time while
it was still in draft).

I noticed one bug in it:

   Example:    C: a005 listrights archive/imap anyone
               S: * LISTRIGHTS archive.imap anyone ""

But what I'm wondering is what does the "required rights" parameter mean
in LISTRIGHTS reply? Is it the same as what rights the user currently
has (ie. for "LISTRIGHTS INBOX <myusername>" it's the same as "MYRIGHTS
INBOX"?

Also it looks like the "optional rights" doesn't necessarily list all
the possible rights that the RFC defines. Is there a reason why server
wouldn't list all of them? Except possibly if it doesn't support the
feature at all?



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12AbjAB015277; Thu, 2 Feb 2006 02:37:45 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12AbjWF015276; Thu, 2 Feb 2006 02:37:45 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12Abhfe015262 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 02:37:44 -0800 (PST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.198] (shiny.isode.com [62.3.217.250])  by rufus.isode.com via TCP (submission) with ESMTPA; Thu, 2 Feb 2006 10:37:35 +0000
Message-ID: <43E1E0EE.7080805@isode.com>
Date: Thu, 02 Feb 2006 10:37: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.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
To: Dave Cridland <dave@cridland.net>
CC: Mark Crispin <mrc@CAC.Washington.EDU>, ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com> <18436.1138873055.818881@peirce.dave.cridland.net>
In-Reply-To: <18436.1138873055.818881@peirce.dave.cridland.net>
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>

Dave Cridland wrote:

> On Thu Feb  2 00:46:03 2006, Mark Crispin wrote:
>
>> On Thu, 2 Feb 2006, Dave Cridland wrote:
>>
>>> If you make UIDs 32-bit, then you have to allow for more space in 
>>> something expected to have more than one increment per UID. 
>>> Moreover, this gives enough space for poor implementations to show 
>>> MODSEQ changes from users' private flags. It's not ideal, but it's 
>>> better than having no CONDSTORE at all.
>>
>> I don't understand this statement at all.
>
> A user setting \Seen (possibly implicitly in a FETCH BODY[...]) causes 
> the MODSEQ to be bumped for that message. If the implementation is 
> poor, then this can cause the MODSEQ seen by other users to be 
> changed, too.

Indeed.

> That's undesirable, but as a client implementor, I infinitely prefer 
> that level of implementation to none at all.
>
>> Both UIDs and sequence numbers are also 32-bit.  I don't see what is 
>> so special about MODSEQ that it needs 9 orders of magnitude more 
>> value space. A typical message gets its flags changed fewer than 4 
>> times.
>
> Sure, we could make it 34-bit and probably be safe. Even if you take 
> into account the private flags situation, and give yourself 15,000 
> users, you could get away with 42 bits. I think 64-bit is simply the 
> next logical choice above 32-bit. It needs *more* space than 32-bit, 
> how much more is rather moot, since the next logical size up is 64-bit.

Exactly.

> Otherwise, you're effectively lowering the width of the UID space, 
> down to 30, or 22, bits. That's still probably plenty of space, but 
> there's something philosophically wrong about an extension lowering 
> the scalability of the protocol it extends.
>
>>> If you mean setting a flag where the flag is already set, then from 
>>> a practical standpoint it simply doesn't matter if the MODSEQ for 
>>> the message is bumped or not. It's much better if it isn't, but it 
>>> doesn't break anything if it is.
>>
>> I disagree.  Either MODSEQ reports that something touched the 
>> message, or it reports that something changed the mesage.  As matters 
>> stand, it is ambiguous.  A client may care.
>
> Well, let me put it this way - a client which actually does care is 
> broken. A server which claims there to be a change when there is not 
> is deficient.

I concur.

[...]

>>> Well, I don't think it's much of a problem. Most of the computers I 
>>> work with these days increasingly use "unsigned long" for 64-bit 
>>> values - even my laptop is 64-bit, but the vast majority of the 
>>> 32-bit systems I use seem to support some kind of "unsigned long 
>>> long" or equivalent.
>>
>> That hasn't been my experience... :-(
>
> Get a better compiler? :-)
>
> FWIW, I strongly suspect I could get away with using the textual 
> representation of the MODSEQ/HIGHESTMODSEQ throughout my 
> implementation. It'd waste 36 octets, which is a figure I can live 
> with. (Probably more likely to be 74 octets including string handling 
> overhead, but that's still well within my tolerance - the code 
> overhead of parsing and formatting them would be much higher).

Or one can use a struct with 2 32bit fields.



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12Abid9015269; Thu, 2 Feb 2006 02:37:44 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12AbiHh015268; Thu, 2 Feb 2006 02:37:44 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12Abhfd015262 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 02:37:44 -0800 (PST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.198] (shiny.isode.com [62.3.217.250])  by rufus.isode.com via TCP (submission) with ESMTPA; Thu, 2 Feb 2006 10:37:23 +0000
Message-ID: <43E1E0E2.8010404@isode.com>
Date: Thu, 02 Feb 2006 10:37:22 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Mark Crispin <mrc@cac.washington.edu>
CC: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com>
In-Reply-To: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com>
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>

Mark Crispin wrote:

> The examples imply MODSEQ as a date/time, but as the document says you 
> can't actually do that.

Because time() is not granular enough for the task (multiple flag 
changes can happen in one second), and it may also go back when time on 
the computer changes.



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12AMGSJ013513; Thu, 2 Feb 2006 02:22:16 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12AMG1E013512; Thu, 2 Feb 2006 02:22:16 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12AMF5E013505 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 02:22:15 -0800 (PST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.198] (shiny.isode.com [62.3.217.250])  by rufus.isode.com via TCP (submission) with ESMTPA; Thu, 2 Feb 2006 10:22:11 +0000
Message-ID: <43E1DD52.7070705@isode.com>
Date: Thu, 02 Feb 2006 10:22:10 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
To: Mark Crispin <mrc@CAC.Washington.EDU>
CC: Dave Cridland <dave@cridland.net>, ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com>
In-Reply-To: <Pine.OSX.4.64.0602011540450.17564@pangtzu.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:

>> Clients, of course, have to deal with it as a 64-bit unsigned integer 
>> for all servers.
>
> That's a problem.  If you don't have a 64-bit integer type available 
> in then compiler, then you have to do the work by hand.  There seems 
> to me to be no good reason for this.

Clients don't need to do any math on modsequences, they should be 
treated as opaque values.

And clients have an implementation option to treat modseqs as strings.



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12AJPwX013165; Thu, 2 Feb 2006 02:19:25 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12AJPdc013164; Thu, 2 Feb 2006 02:19:25 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12AJOj5013155 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 02:19:24 -0800 (PST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.198] (shiny.isode.com [62.3.217.250])  by rufus.isode.com via TCP (submission) with ESMTPA; Thu, 2 Feb 2006 10:19:05 +0000
Message-ID: <43E1DC98.6010507@isode.com>
Date: Thu, 02 Feb 2006 10:19:04 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
To: Dave Cridland <dave@cridland.net>
CC: Mark Crispin <mrc@cac.washington.edu>, ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net>
In-Reply-To: <18436.1138837054.833741@peirce.dave.cridland.net>
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>

Dave Cridland wrote:

>> What's more, I didn't observe any definition in the CONDSTORE 
>> document of what is supposed to happen if a STORE results in no change.
>
> I don't think there's anything which states explicitly that if a STORE 
> results in no change then no MODSEQ increases happen, but I'd assume 
> that was implicit in the definition.

That was always the intent and this is how I've implemented this. If you 
think this is not clear, now might be a good time to add a clarifying 
sentence (CONDSTORE -08 is going to IESG shortly).

>> I am implementing a new mailbox format which has a per-message 
>> modification sequence.  For my purpose, it's easiest to have it be 
>> monotonically increasing.  Also, I don't want to change it if STORE 
>> results in no change.  I was going to make this available as a MODSEQ 
>> for a possible future CONDSTORE implementation, but I see no point in 
>> keeping it as a 64-bit value other than bloating the data structures 
>> further. I want to see if I am missing something.
>
> FWIW, Ken Murchison's patch for Cyrus can use a 32-bit MODSEQ value. 
> There's nothing *forcing* the value to be 64-bit for servers, but if 
> you overflowed a 32-bit, you'd have to reset the UIDVALIDITY in order 
> to recover.

That is correct.

> Clients, of course, have to deal with it as a 64-bit unsigned integer 
> for all servers.




Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k129bloC009234; Thu, 2 Feb 2006 01:37:47 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k129bldk009233; Thu, 2 Feb 2006 01:37:47 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from pythagoras.zen.co.uk (pythagoras.zen.co.uk [212.23.3.140]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k129bkdM009227 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 01:37:46 -0800 (PST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1F4auO-0007pZ-Eg; Thu, 02 Feb 2006 09:37:44 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 12D48498003; Thu,  2 Feb 2006 09:46:53 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12895-08; Thu, 2 Feb 2006 09:46:45 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id E5C30498002; Thu,  2 Feb 2006 09:46:44 +0000 (GMT)
Date: Thu, 02 Feb 2006 09:37:34 +0000
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com>
In-Reply-To: <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com>
MIME-Version: 1.0
Message-Id: <18436.1138873055.818881@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Mark Crispin <mrc@CAC.Washington.EDU>
Cc: <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Pythagoras-IP: [217.155.137.60]
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 Thu Feb  2 00:46:03 2006, Mark Crispin wrote:
> On Thu, 2 Feb 2006, Dave Cridland wrote:
>> If you make UIDs 32-bit, then you have to allow for more space in 
>> something expected to have more than one increment per UID. 
>> Moreover, this gives enough space for poor implementations to show 
>> MODSEQ changes from users' private flags. It's not ideal, but it's 
>> better than having no CONDSTORE at all.
> 
> I don't understand this statement at all.
> 
> 
A user setting \Seen (possibly implicitly in a FETCH BODY[...]) 
causes the MODSEQ to be bumped for that message. If the 
implementation is poor, then this can cause the MODSEQ seen by other 
users to be changed, too. That's undesirable, but as a client 
implementor, I infinitely prefer that level of implementation to none 
at all.


> Both UIDs and sequence numbers are also 32-bit.  I don't see what 
> is so special about MODSEQ that it needs 9 orders of magnitude more 
> value space. A typical message gets its flags changed fewer than 4 
> times.
> 
> 
Sure, we could make it 34-bit and probably be safe. Even if you take 
into account the private flags situation, and give yourself 15,000 
users, you could get away with 42 bits. I think 64-bit is simply the 
next logical choice above 32-bit. It needs *more* space than 32-bit, 
how much more is rather moot, since the next logical size up is 
64-bit.

Otherwise, you're effectively lowering the width of the UID space, 
down to 30, or 22, bits. That's still probably plenty of space, but 
there's something philosophically wrong about an extension lowering 
the scalability of the protocol it extends.


>> If you mean setting a flag where the flag is already set, then 
>> from a practical standpoint it simply doesn't matter if the MODSEQ 
>> for the message is bumped or not. It's much better if it isn't, 
>> but it doesn't break anything if it is.
> 
> I disagree.  Either MODSEQ reports that something touched the 
> message, or it reports that something changed the mesage.  As 
> matters stand, it is ambiguous.  A client may care.
> 
> 
Well, let me put it this way - a client which actually does care is 
broken. A server which claims there to be a change when there is not 
is deficient.


>> Not very likely, no. But equally, it's not very likely that you'd 
>> overflow UIDs, but that option is handled by the protocol. If it 
>> were an onerous thing, I'd worry about it, but it's really not.
> 
> But the same mechanism resets the MODSEQ as well.
> 
> 
Sure, but why make things worse?


>> Well, I don't think it's much of a problem. Most of the computers 
>> I work with these days increasingly use "unsigned long" for 64-bit 
>> values - even my laptop is 64-bit, but the vast majority of the 
>> 32-bit systems I use seem to support some kind of "unsigned long 
>> long" or equivalent.
> 
> That hasn't been my experience... :-(

Get a better compiler? :-)

FWIW, I strongly suspect I could get away with using the textual 
representation of the MODSEQ/HIGHESTMODSEQ throughout my 
implementation. It'd waste 36 octets, which is a figure I can live 
with. (Probably more likely to be 74 octets including string handling 
overhead, but that's still well within my tolerance - the code 
overhead of parsing and formatting them would be much higher).

I don't believe clients ever need to handle more than 3 MODSEQ values 
at any time, and only need to store 2 permanently. If I needed to 
store each message's MODSEQ, I'd probably feel differently, but I 
don't think that's ever the case.

Servers, of course, need to store at minimum one for every message 
plus one for the mailbox, but as I've said, they can use a 32-bit 
value if they prefer.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k120k8bW038828; Wed, 1 Feb 2006 16:46:08 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k120k8Gq038827; Wed, 1 Feb 2006 16:46:08 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k120k81a038821 for <ietf-imapext@imc.org>; Wed, 1 Feb 2006 16:46:08 -0800 (PST) (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.5+UW05.10/8.13.5+UW05.09) with ESMTP id k120k6f6010806 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 1 Feb 2006 16:46: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.5+UW05.10/8.13.5+UW05.09) with ESMTP id k120k38B010061 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 1 Feb 2006 16:46:05 -0800
Date: Wed, 1 Feb 2006 16:46:03 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Dave Cridland <dave@cridland.net>
cc: ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
In-Reply-To: <18436.1138840243.210708@peirce.dave.cridland.net>
Message-ID: <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com>
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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 Thu, 2 Feb 2006, Dave Cridland wrote:
> If you make UIDs 32-bit, then you have to allow for more space in something 
> expected to have more than one increment per UID. Moreover, this gives enough 
> space for poor implementations to show MODSEQ changes from users' private 
> flags. It's not ideal, but it's better than having no CONDSTORE at all.

I don't understand this statement at all.

Both UIDs and sequence numbers are also 32-bit.  I don't see what is so 
special about MODSEQ that it needs 9 orders of magnitude more value space. 
A typical message gets its flags changed fewer than 4 times.

> If you mean setting a flag where the flag is already set, then from a 
> practical standpoint it simply doesn't matter if the MODSEQ for the message 
> is bumped or not. It's much better if it isn't, but it doesn't break anything 
> if it is.

I disagree.  Either MODSEQ reports that something touched the message, or 
it reports that something changed the mesage.  As matters stand, it is 
ambiguous.  A client may care.

> Not very likely, no. But equally, it's not very likely that you'd overflow 
> UIDs, but that option is handled by the protocol. If it were an onerous 
> thing, I'd worry about it, but it's really not.

But the same mechanism resets the MODSEQ as well.

> Well, I don't think it's much of a problem. Most of the computers I work with 
> these days increasingly use "unsigned long" for 64-bit values - even my 
> laptop is 64-bit, but the vast majority of the 32-bit systems I use seem to 
> support some kind of "unsigned long long" or equivalent.

That hasn't been my experience... :-(

-- 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 above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k120Untp036835; Wed, 1 Feb 2006 16:30:49 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k120Un1A036834; Wed, 1 Feb 2006 16:30:49 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from pythagoras.zen.co.uk (pythagoras.zen.co.uk [212.23.3.140]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k120UmHW036828 for <ietf-imapext@imc.org>; Wed, 1 Feb 2006 16:30:49 -0800 (PST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1F4SN5-0001Ls-4G; Thu, 02 Feb 2006 00:30:47 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 9BDD4498003; Thu,  2 Feb 2006 00:39:51 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10946-03; Thu, 2 Feb 2006 00:39:48 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id 3DDCF498002; Thu,  2 Feb 2006 00:39:48 +0000 (GMT)
Date: Thu, 02 Feb 2006 00:30:42 +0000
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com>
In-Reply-To: <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com>
MIME-Version: 1.0
Message-Id: <18436.1138840243.210708@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Mark Crispin <mrc@CAC.Washington.EDU>
Cc: <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Pythagoras-IP: [217.155.137.60]
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 Feb  1 23:50:22 2006, Mark Crispin wrote:
> On Wed, 1 Feb 2006, Dave Cridland wrote:
>> Two stores on different messages generate two different MODSEQ 
>> values, though. So if it were 32-bit, then just filling a mailbox 
>> would be enough to exhaust it. You actually only need 2^32-1 
>> STORES on a single message - the arrival of the single message 
>> itself increments the MODSEQ.
> 
> Yes, but how likely is a mailbox to have anything near the order of 
> magnitude of 2^32-1 messages (which would exhaust the UID space)?  
> Even given a ridiculous number of messages in the mailbox, there 
> should be tens of thousands of updates possible for each message 
> before a 32-bit MODSEQ space runs out.
> 
> 
If you make UIDs 32-bit, then you have to allow for more space in 
something expected to have more than one increment per UID. Moreover, 
this gives enough space for poor implementations to show MODSEQ 
changes from users' private flags. It's not ideal, but it's better 
than having no CONDSTORE at all.


>>> The examples imply MODSEQ as a date/time, but as the document 
>>> says you can't actually do that.
>> Indeed, but it's possible to come close. ACAP uses modtimes that 
>> can't actually be times, they just look remarkably like them.
> 
> I don't consider that to be a feature.  Some client author will 
> depend upon that characteristic, and it will come back to bite you.
> 
> 
Yes, it's probably not wise to exclusively use that method in the 
examples.


>> I don't think there's anything which states explicitly that if a 
>> STORE results in no change then no MODSEQ increases happen, but 
>> I'd assume that was implicit in the definition.
> 
> Well, that's a bug in the definition.
> 
> 
Actually, it depends on what you mean.

If you mean setting a flag where the flag is already set, then from a 
practical standpoint it simply doesn't matter if the MODSEQ for the 
message is bumped or not. It's much better if it isn't, but it 
doesn't break anything if it is.

If you mean a UID STORE that affects no messages, then there are no 
messages to bump the MODSEQ on - a server which bumped the 
HIGHESTMODSEQ is poor, but again, it doesn't break anything.

Given the definition of MODSEQ, I think it's pretty clear what should 
happen in both cases, though.


>> FWIW, Ken Murchison's patch for Cyrus can use a 32-bit MODSEQ 
>> value. There's nothing *forcing* the value to be 64-bit for 
>> servers, but if you overflowed a 32-bit, you'd have to reset the 
>> UIDVALIDITY in order to recover.
> 
> Not likely to happen, otherwise that option wouldn't exist.
> 
> 
Not very likely, no. But equally, it's not very likely that you'd 
overflow UIDs, but that option is handled by the protocol. If it were 
an onerous thing, I'd worry about it, but it's really not.


>> Clients, of course, have to deal with it as a 64-bit unsigned 
>> integer for all servers.
> 
> That's a problem.  If you don't have a 64-bit integer type 
> available in then compiler, then you have to do the work by hand.  
> There seems to me to be no good reason for this.
> 
> 
Well, I don't think it's much of a problem. Most of the computers I 
work with these days increasingly use "unsigned long" for 64-bit 
values - even my laptop is 64-bit, but the vast majority of the 
32-bit systems I use seem to support some kind of "unsigned long 
long" or equivalent.

Besides which, you only need to parse, format, and compare them, 
anyway. All of which I have to do quite soon, on a purely 32-bit 
platform, and I have to say I'm not particularly concerned about it, 
compared to all the other code I have to write.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k11NoRFI024324; Wed, 1 Feb 2006 15:50:27 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k11NoRAl024323; Wed, 1 Feb 2006 15:50:27 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k11NoQLo024317 for <ietf-imapext@imc.org>; Wed, 1 Feb 2006 15:50:26 -0800 (PST) (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.5+UW05.10/8.13.5+UW05.09) with ESMTP id k11NoOE9009851 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 1 Feb 2006 15:50:24 -0800
X-Auth-Received: from pangtzu.panda.com (pangtzu.panda.com [206.124.149.117]) (authenticated authid=mrc) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k11NoNE5025897 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 1 Feb 2006 15:50:23 -0800
Date: Wed, 1 Feb 2006 15:50:22 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Dave Cridland <dave@cridland.net>
cc: ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
In-Reply-To: <18436.1138837054.833741@peirce.dave.cridland.net>
Message-ID: <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com>
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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, 1 Feb 2006, Dave Cridland wrote:
> Two stores on different messages generate two different MODSEQ values, 
> though. So if it were 32-bit, then just filling a mailbox would be enough to 
> exhaust it. You actually only need 2^32-1 STORES on a single message - the 
> arrival of the single message itself increments the MODSEQ.

Yes, but how likely is a mailbox to have anything near the order of 
magnitude of 2^32-1 messages (which would exhaust the UID space)?  Even 
given a ridiculous number of messages in the mailbox, there should be tens 
of thousands of updates possible for each message before a 32-bit MODSEQ 
space runs out.

>> The examples imply MODSEQ as a date/time, but as the document says you 
>> can't actually do that.
> Indeed, but it's possible to come close. ACAP uses modtimes that can't 
> actually be times, they just look remarkably like them.

I don't consider that to be a feature.  Some client author will depend 
upon that characteristic, and it will come back to bite you.

> I don't think there's anything which states explicitly that if a STORE 
> results in no change then no MODSEQ increases happen, but I'd assume that was 
> implicit in the definition.

Well, that's a bug in the definition.

> FWIW, Ken Murchison's patch for Cyrus can use a 32-bit MODSEQ value. There's 
> nothing *forcing* the value to be 64-bit for servers, but if you overflowed a 
> 32-bit, you'd have to reset the UIDVALIDITY in order to recover.

Not likely to happen, otherwise that option wouldn't exist.

> Clients, of course, have to deal with it as a 64-bit unsigned integer for all 
> servers.

That's a problem.  If you don't have a 64-bit integer type available in 
then compiler, then you have to do the work by hand.  There seems to me to 
be no good reason for this.

-- 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 above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k11Nber4023060; Wed, 1 Feb 2006 15:37:40 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k11Nbe15023059; Wed, 1 Feb 2006 15:37:40 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from heisenberg.zen.co.uk (heisenberg.zen.co.uk [212.23.3.141]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k11Nbd21023053 for <ietf-imapext@imc.org>; Wed, 1 Feb 2006 15:37:40 -0800 (PST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by heisenberg.zen.co.uk with esmtp (Exim 4.30) id 1F4RXe-0005sU-8a; Wed, 01 Feb 2006 23:37:38 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 59471498003; Wed,  1 Feb 2006 23:46:42 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10515-10; Wed, 1 Feb 2006 23:46:39 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id 6C2F1498002; Wed,  1 Feb 2006 23:46:39 +0000 (GMT)
Date: Wed, 01 Feb 2006 23:37:34 +0000
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com>
In-Reply-To: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com>
MIME-Version: 1.0
Message-Id: <18436.1138837054.833741@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Mark Crispin <mrc@cac.washington.edu>
Cc: <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Heisenberg-IP: [217.155.137.60]
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 Feb  1 23:20:18 2006, Mark Crispin wrote:
> 
> I know that it's probably much too late to complain about this now, 
> but can someplace please explain why the MODSEQ is a 64-bit value?  
> Is there any serious possibility of there being more than 2^32 
> STOREs being performed on a single message in a mailbox?
> 
> 
Two stores on different messages generate two different MODSEQ 
values, though. So if it were 32-bit, then just filling a mailbox 
would be enough to exhaust it. You actually only need 2^32-1 STORES 
on a single message - the arrival of the single message itself 
increments the MODSEQ.


> The examples imply MODSEQ as a date/time, but as the document says 
> you can't actually do that.
> 
> 
Indeed, but it's possible to come close. ACAP uses modtimes that 
can't actually be times, they just look remarkably like them.


> What's more, I didn't observe any definition in the CONDSTORE 
> document of what is supposed to happen if a STORE results in no 
> change.
> 
> 
I don't think there's anything which states explicitly that if a 
STORE results in no change then no MODSEQ increases happen, but I'd 
assume that was implicit in the definition.


> I am implementing a new mailbox format which has a per-message 
> modification sequence.  For my purpose, it's easiest to have it be 
> monotonically increasing.  Also, I don't want to change it if STORE 
> results in no change.  I was going to make this available as a 
> MODSEQ for a possible future CONDSTORE implementation, but I see no 
> point in keeping it as a 64-bit value other than bloating the data 
> structures further. I want to see if I am missing something.
> 
> 
FWIW, Ken Murchison's patch for Cyrus can use a 32-bit MODSEQ value. 
There's nothing *forcing* the value to be 64-bit for servers, but if 
you overflowed a 32-bit, you'd have to reset the UIDVALIDITY in order 
to recover.

Clients, of course, have to deal with it as a 64-bit unsigned integer 
for all servers.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k11NaoCq022970; Wed, 1 Feb 2006 15:36:50 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k11NaoXm022969; Wed, 1 Feb 2006 15:36:50 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mxout7.cac.washington.edu (mxout7.cac.washington.edu [140.142.32.178]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k11NaoxI022962 for <ietf-imapext@imc.org>; Wed, 1 Feb 2006 15:36:50 -0800 (PST) (envelope-from mrc@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout7.cac.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k11Naj5I010489 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 1 Feb 2006 15:36:46 -0800
X-Auth-Received: from pangtzu.panda.com (pangtzu.panda.com [206.124.149.117]) (authenticated authid=mrc) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k11Nafsd020762 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 1 Feb 2006 15:36:44 -0800
Date: Wed, 1 Feb 2006 15:36:40 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
cc: ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
In-Reply-To: <imqKU9hqex+784rvMKxtHw.md5@libertango.oryx.com>
Message-ID: <Pine.OSX.4.64.0602011534550.17564@pangtzu.panda.com>
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <imqKU9hqex+784rvMKxtHw.md5@libertango.oryx.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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 Thu, 2 Feb 2006, Arnt Gulbrandsen wrote:
> Mark Crispin writes:
>> I know that it's probably much too late to complain about this now, but can 
>> someplace please explain why the MODSEQ is a 64-bit value?
> It's desirable for modseq to be comparable across multiple messages. For 
> example, 'search for messages with modseq higher than x' while updating an 
> offline client's cache.

And how does a 64-bit MODSEQ accomplish this in a way that a 32-bit MODSEQ 
does not?

The examples imply the usage of a date/time, but you can't actually use 
such; but there seems to be a nudge-nudge wink-wink implication that 
clients can assume that.

-- 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 above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k11NW3DT022131; Wed, 1 Feb 2006 15:32:03 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k11NW33G022130; Wed, 1 Feb 2006 15:32:03 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k11NW2Wb022123 for <ietf-imapext@imc.org>; Wed, 1 Feb 2006 15:32:02 -0800 (PST) (envelope-from arnt@gulbrandsen.priv.no)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id 54D6A4AC21 for <ietf-imapext@imc.org>; Thu,  2 Feb 2006 00:32:01 +0100 (CET)
Message-Id: <imqKU9hqex+784rvMKxtHw.md5@libertango.oryx.com>
Date: Thu, 2 Feb 2006 00:40:07 +0100
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com>
In-Reply-To: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.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>

Mark Crispin writes:
> I know that it's probably much too late to complain about this now, 
> but can someplace please explain why the MODSEQ is a 64-bit value?

It's desirable for modseq to be comparable across multiple messages. For 
example, 'search for messages with modseq higher than x' while updating 
an offline client's cache.

Arnt



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k11NKMAI021088; Wed, 1 Feb 2006 15:20:22 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k11NKM9N021087; Wed, 1 Feb 2006 15:20:22 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k11NKL3S021080 for <ietf-imapext@IMC.ORG>; Wed, 1 Feb 2006 15:20:22 -0800 (PST) (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.5+UW05.10/8.13.5+UW05.09) with ESMTP id k11NKKVD016373 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <ietf-imapext@IMC.ORG>; Wed, 1 Feb 2006 15:20:20 -0800
X-Auth-Received: from pangtzu.panda.com (pangtzu.panda.com [206.124.149.117]) (authenticated authid=mrc) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k11NKI7M015852 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <ietf-imapext@IMC.ORG>; Wed, 1 Feb 2006 15:20:19 -0800
Date: Wed, 1 Feb 2006 15:20:18 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: MODSEQ in CONDSTORE
Message-ID: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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 know that it's probably much too late to complain about this now, but 
can someplace please explain why the MODSEQ is a 64-bit value?  Is there 
any serious possibility of there being more than 2^32 STOREs being 
performed on a single message in a mailbox?

The examples imply MODSEQ as a date/time, but as the document says you 
can't actually do that.

What's more, I didn't observe any definition in the CONDSTORE document of 
what is supposed to happen if a STORE results in no change.

I am implementing a new mailbox format which has a per-message 
modification sequence.  For my purpose, it's easiest to have it be 
monotonically increasing.  Also, I don't want to change it if STORE 
results in no change.  I was going to make this available as a MODSEQ for 
a possible future CONDSTORE implementation, but I see no point in keeping 
it as a 64-bit value other than bloating the data structures further. 
I want to see if I am missing something.

-- 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 k1OH24NW002136; Fri, 24 Feb 2006 10:02: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 k1OH24AX002135; Fri, 24 Feb 2006 10:02: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 kalyani.oryx.com (kalyani.oryx.com [195.30.37.30]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k1OH22oL002128 for <ietf-imapext@imc.org>; Fri, 24 Feb 2006 10:02:03 -0700 (MST) (envelope-from arnt@gulbrandsen.priv.no)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id E87A14AC1B for <ietf-imapext@imc.org>; Fri, 24 Feb 2006 18:02:00 +0100 (CET)
Message-Id: <guEognolL8cXrVXfxSBGCg.md5@libertango.oryx.com>
Date: Fri, 24 Feb 2006 18:11:56 +0100
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: ietf-imapext@imc.org
Subject: collations: mismatch between equality and ordering
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>

Hi,

in the current collation draft, it is possible to sort strings that 
cannot be tested for equality: A collation has a domain. It can test 
any pair of strings for equality, provided both strings are within its 
domain. And it can order pair of strings, whether they are in its 
domain or not. I find that last bit highly dubious, and want to strike 
it.

I think that if a server wants to sort a set of strings and the chosen 
collation can't handle some, the server can fall back to i;octet for 
the rest. The collation itself does not need to define any behaviour 
outside its domain.

Striking it would also permit the number of dependences on i;octet to 
decrease. I believe I mentioned that a few weeks ago. I think that with 
this change, it should be possible to write a server which uses 
exclusively unicode internally and does not implement i;octet. (Not an 
IMAP server, of course. An IMAP server has to do i;octet.)

Comments? Pretty please?

In general news: Alexey Melnikov, Frank Ellermann and Mark Davis/the 
Unicode Technical Committee have gone over the draft. Long comments 
from all three. Good stuff. This issue is one I came across while 
pondering Mark's mail. I'll go on for another few hours today, 
hopefully I'll have a -07 before the end of the day.

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 k1MJpaKH085178; Wed, 22 Feb 2006 12:51:36 -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 k1MJpaSg085177; Wed, 22 Feb 2006 12:51:36 -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 k1MJpYnU085170 for <ietf-imapext@imc.org>; Wed, 22 Feb 2006 12:51:35 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.198] (shiny.isode.com [62.3.217.250])  by rufus.isode.com via TCP (submission) with ESMTPA; Wed, 22 Feb 2006 19:51:20 +0000
Message-ID: <43FCC0B8.10205@isode.com>
Date: Wed, 22 Feb 2006 19:51: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.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Dave Cridland <dave@cridland.net>
CC: Timo Sirainen <tss@iki.fi>, ietf-imapext@imc.org
Subject: Re: ACL once more
References: <1140520073.6334.12.camel@localhost.localdomain> <24385.1140531154.184132@peirce.dave.cridland.net> <1140531793.6334.24.camel@localhost.localdomain> <24385.1140541039.015138@peirce.dave.cridland.net>
In-Reply-To: <24385.1140541039.015138@peirce.dave.cridland.net>
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>

Dave Cridland wrote:

> On Tue Feb 21 14:23:13 2006, Timo Sirainen wrote:
>
>> On Tue, 2006-02-21 at 14:12 +0000, Dave Cridland wrote:
>> > On Tue Feb 21 11:07:53 2006, Timo Sirainen wrote:
>> > > > > Is SETACL id -<all rights> the same as DELETEACL id?
>> > > > > > > > No. SETACL id -<all rights> means id is denied all 
>> rights in some > specific manner.
>>
>> Isn't that SETACL -id <all rights>?
>>
>> Minusing rights only removes the rights from the ACL, so I'd think once
>> all of them are removed, the whole ACL could be deleted since there's
>> nothing left.
>
> Ah. Hmmm. Quite so.
>
> Options:
>
> 1) It's equivalent then to SETACL id "", because it's removing any 
> rights from the ACL entry for the id. Which might mean the same as 
> "this identifier has no rights", or might mean "the rights of this 
> identifier are not affected by this line", which is basically 
> DELETEACL id, depending on whether "most specific" ACL entires are 
> used, or "union" applies.
>
> 2) According to the first para of Section 3.1, it might mean the same 
> as SETACL -id lrswipkxeta anyway, because the access control list as a 
> whole is changed such that the identifier does not have the rights 
> removed.

No, the text in section 3.1 is saying that "SETACL id -<rights>" only 
affects the entry for "id", not the whole ACL. So interpretation #1 is 
the correct one.

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 k1LGvObP079679; Tue, 21 Feb 2006 09:57: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 k1LGvOgw079678; Tue, 21 Feb 2006 09:57: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 pythagoras.zen.co.uk (pythagoras.zen.co.uk [212.23.3.140]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k1LGvN1H079672 for <ietf-imapext@imc.org>; Tue, 21 Feb 2006 09:57:24 -0700 (MST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1FBapG-0005ED-E5; Tue, 21 Feb 2006 16:57:22 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 5D3DC498003; Tue, 21 Feb 2006 17:09:56 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10576-02; Tue, 21 Feb 2006 17:09:53 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id 7BB21498002; Tue, 21 Feb 2006 17:09:53 +0000 (GMT)
Date: Tue, 21 Feb 2006 16:57:18 +0000
Subject: Re: ACL once more
References: <1140520073.6334.12.camel@localhost.localdomain> <24385.1140531154.184132@peirce.dave.cridland.net> <1140531793.6334.24.camel@localhost.localdomain>
In-Reply-To: <1140531793.6334.24.camel@localhost.localdomain>
MIME-Version: 1.0
Message-Id: <24385.1140541039.015138@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Timo Sirainen <tss@iki.fi>
Cc: <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Pythagoras-IP: [217.155.137.60]
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 Tue Feb 21 14:23:13 2006, Timo Sirainen wrote:
> On Tue, 2006-02-21 at 14:12 +0000, Dave Cridland wrote:
> > On Tue Feb 21 11:07:53 2006, Timo Sirainen wrote:
> > > > > Is SETACL id -<all rights> the same as DELETEACL id?
> > > > > > > > No. SETACL id -<all rights> means id is denied all 
> rights in some > specific manner.
> 
> Isn't that SETACL -id <all rights>?
> 
> Minusing rights only removes the rights from the ACL, so I'd think 
> once
> all of them are removed, the whole ACL could be deleted since 
> there's
> nothing left.
> 
> 
> 
Ah. Hmmm. Quite so.

Options:

1) It's equivalent then to SETACL id "", because it's removing any 
rights from the ACL entry for the id. Which might mean the same as 
"this identifier has no rights", or might mean "the rights of this 
identifier are not affected by this line", which is basically 
DELETEACL id, depending on whether "most specific" ACL entires are 
used, or "union" applies.

2) According to the first para of Section 3.1, it might mean the same 
as SETACL -id lrswipkxeta anyway, because the access control list as 
a whole is changed such that the identifier does not have the rights 
removed.

So, erm, I really don't know. :-)

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



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 k1LENIiK060222; Tue, 21 Feb 2006 07:23:18 -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 k1LENIXw060221; Tue, 21 Feb 2006 07:23:18 -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 dmgw.movial.fi (dmgw.movial.fi [62.236.91.5]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k1LENH9q060205 for <ietf-imapext@imc.org>; Tue, 21 Feb 2006 07:23:17 -0700 (MST) (envelope-from tss@iki.fi)
Received: from movial.fi (hellmail.movial.fi [62.236.91.6]) by dmgw.movial.fi (Postfix) with ESMTP id 4E6EC27C; Tue, 21 Feb 2006 16:23:11 +0200 (EET)
Received: from localhost (hellmail.movial.fi [127.0.0.1]) by movial.fi (Postfix) with ESMTP id 30E2C8021B; Tue, 21 Feb 2006 16:23:11 +0200 (EET)
Received: from movial.fi ([127.0.0.1]) by localhost (hellmail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20134-06; Tue, 21 Feb 2006 16:23:11 +0200 (EET)
Received: from sd022.hel.movial.fi (sd022.hel.movial.fi [172.17.49.22]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by movial.fi (Postfix) with ESMTP id EE27380218; Tue, 21 Feb 2006 16:23:10 +0200 (EET)
Subject: Re: ACL once more
From: Timo Sirainen <tss@iki.fi>
To: Dave Cridland <dave@cridland.net>
Cc: ietf-imapext@imc.org
In-Reply-To: <24385.1140531154.184132@peirce.dave.cridland.net>
References: <1140520073.6334.12.camel@localhost.localdomain> <24385.1140531154.184132@peirce.dave.cridland.net>
Content-Type: text/plain
Date: Tue, 21 Feb 2006 16:23:13 +0200
Message-Id: <1140531793.6334.24.camel@localhost.localdomain>
Mime-Version: 1.0
X-Mailer: Evolution 2.0.4 
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at movial.fi
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 Tue, 2006-02-21 at 14:12 +0000, Dave Cridland wrote:
> On Tue Feb 21 11:07:53 2006, Timo Sirainen wrote:
> > 
> > Is SETACL id -<all rights> the same as DELETEACL id?
> > 
> > 
> > 
> No. SETACL id -<all rights> means id is denied all rights in some 
> specific manner.

Isn't that SETACL -id <all rights>?

Minusing rights only removes the rights from the ACL, so I'd think once
all of them are removed, the whole ACL could be deleted since there's
nothing left.




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 k1LECdZs058970; Tue, 21 Feb 2006 07:12:39 -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 k1LECdaf058969; Tue, 21 Feb 2006 07:12:39 -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 heisenberg.zen.co.uk (heisenberg.zen.co.uk [212.23.3.141]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k1LECcuc058963 for <ietf-imapext@imc.org>; Tue, 21 Feb 2006 07:12:39 -0700 (MST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by heisenberg.zen.co.uk with esmtp (Exim 4.30) id 1FBYFp-0004b8-7l; Tue, 21 Feb 2006 14:12:37 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 28CE8498003; Tue, 21 Feb 2006 14:25:10 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09661-09; Tue, 21 Feb 2006 14:25:07 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id 76CAC498002; Tue, 21 Feb 2006 14:25:07 +0000 (GMT)
Date: Tue, 21 Feb 2006 14:12:33 +0000
Subject: Re: ACL once more
References: <1140520073.6334.12.camel@localhost.localdomain>
In-Reply-To: <1140520073.6334.12.camel@localhost.localdomain>
MIME-Version: 1.0
Message-Id: <24385.1140531154.184132@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Timo Sirainen <tss@iki.fi>
Cc: <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Heisenberg-IP: [217.155.137.60]
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 Tue Feb 21 11:07:53 2006, Timo Sirainen wrote:
> 
> Is SETACL id -<all rights> the same as DELETEACL id?
> 
> 
> 
No. SETACL id -<all rights> means id is denied all rights in some 
specific manner.

DELETEACL id means that id is not mentioned specifically, but may 
have rights due to being part of a group which is.

Mind you, SETACL id "" may, on some servers, have the same effect as 
DELETEACL id *or* SETACL id -<all rights>, depending on how the ACL 
entries result in a rights list.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



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 k1LB7w7p036657; Tue, 21 Feb 2006 04:07: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 k1LB7wfW036656; Tue, 21 Feb 2006 04:07: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 dmgw.movial.fi (dmgw.movial.fi [62.236.91.5]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k1LB7vRA036615 for <ietf-imapext@imc.org>; Tue, 21 Feb 2006 04:07:58 -0700 (MST) (envelope-from tss@iki.fi)
Received: from movial.fi (hellmail.movial.fi [62.236.91.6]) by dmgw.movial.fi (Postfix) with ESMTP id 5F29027C for <ietf-imapext@imc.org>; Tue, 21 Feb 2006 13:07:51 +0200 (EET)
Received: from localhost (hellmail.movial.fi [127.0.0.1]) by movial.fi (Postfix) with ESMTP id 505108020B for <ietf-imapext@imc.org>; Tue, 21 Feb 2006 13:07:51 +0200 (EET)
Received: from movial.fi ([127.0.0.1]) by localhost (hellmail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01347-04 for <ietf-imapext@imc.org>; Tue, 21 Feb 2006 13:07:51 +0200 (EET)
Received: from sd022.hel.movial.fi (sd022.hel.movial.fi [172.17.49.22]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by movial.fi (Postfix) with ESMTP id 1EAA280208 for <ietf-imapext@imc.org>; Tue, 21 Feb 2006 13:07:51 +0200 (EET)
Subject: ACL once more
From: Timo Sirainen <tss@iki.fi>
To: IMAP Extensions WG <ietf-imapext@imc.org>
Content-Type: text/plain
Date: Tue, 21 Feb 2006 13:07:53 +0200
Message-Id: <1140520073.6334.12.camel@localhost.localdomain>
Mime-Version: 1.0
X-Mailer: Evolution 2.0.4 
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at movial.fi
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>

Is SETACL id -<all rights> the same as DELETEACL id?




Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k1FFoIAW061749; Wed, 15 Feb 2006 07:50:18 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k1FFoIwY061748; Wed, 15 Feb 2006 07:50:18 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from cypress.neustar.com (cypress.neustar.com [209.173.57.84]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k1FFoHL2061740 for <ietf-imapext@imc.org>; Wed, 15 Feb 2006 07:50:18 -0800 (PST) (envelope-from ietf@ietf.org)
Received: from stiedprstage1.ietf.org (stiedprstage1.va.neustar.com [10.31.47.10]) by cypress.neustar.com (8.12.8/8.12.8) with ESMTP id k1FFo20e010951 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 15 Feb 2006 15:50:02 GMT
Received: from ietf by stiedprstage1.ietf.org with local (Exim 4.43) id 1F9Ouo-0004tT-1y; Wed, 15 Feb 2006 10:50:02 -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-condstore-09.txt 
Message-Id: <E1F9Ouo-0004tT-1y@stiedprstage1.ietf.org>
Date: Wed, 15 Feb 2006 10:50:02 -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		: IMAP Extension for Conditional STORE operation
	Author(s)	: A. Melnikov, S. Hole
	Filename	: draft-ietf-imapext-condstore-09.txt
	Pages		: 0
	Date		: 2006-2-13
	
Often, multiple IMAP (RFC 3501) clients need to coordinate changes to
a common IMAP mailbox. Examples include different clients working on
behalf of the same user, and multiple users accessing shared mailboxes.
These clients need a mechanism to synchronize state changes for messages within the mailbox. They must be able to guarantee that only one client can change message state (e.g., message flags) at any time.  An example of such an application is use of an IMAP mailbox as a message queue with multiple dequeueing clients.

The Conditional Store facility provides a protected update mechanism for message state information that can detect and resolve conflicts between multiple writing mail clients.

The Conditional Store facility also allows a client to quickly resynchronize mailbox flag changes.

This document defines an extension to IMAP (RFC 3501).

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-imapext-condstore-09.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-condstore-09.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-condstore-09.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:	<2006-2-13143533.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-imapext-condstore-09.txt

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

Content-Type: text/plain
Content-ID:	<2006-2-13143533.I-D@ietf.org>

--OtherAccess--

--NextPart--



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k1DKo8jf071541; Mon, 13 Feb 2006 12:50:08 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k1DKo8DN071540; Mon, 13 Feb 2006 12:50:08 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from willow.neustar.com (willow.neustar.com [209.173.53.84]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k1DKo8lx071529 for <ietf-imapext@imc.org>; Mon, 13 Feb 2006 12:50:08 -0800 (PST) (envelope-from ietf@ietf.org)
Received: from ietf.org (stiedprstage1.va.neustar.com [10.31.47.10]) by willow.neustar.com (8.12.8/8.12.8) with ESMTP id k1DKo29W028584 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <ietf-imapext@imc.org>; Mon, 13 Feb 2006 20:50:02 GMT
Received: from ietf by ietf.org with local (Exim 4.43) id 1F8ke2-0004aI-IF; Mon, 13 Feb 2006 15:50:02 -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-condstore-09.txt 
Message-Id: <E1F8ke2-0004aI-IF@ietf.org>
Date: Mon, 13 Feb 2006 15:50:02 -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		: IMAP Extension for Conditional STORE operation
	Author(s)	: A. Melnikov, S. Hole
	Filename	: draft-ietf-imapext-condstore-09.txt
	Pages		: 0
	Date		: 2006-2-13
	
Often, multiple IMAP (RFC 3501) clients need to coordinate changes to
a common IMAP mailbox. Examples include different clients working on
behalf of the same user, and multiple users accessing shared mailboxes.
These clients need a mechanism to synchronize state changes for messages within the mailbox. They must be able to guarantee that only one client can change message state (e.g., message flags) at any time.  An example of such an application is use of an IMAP mailbox as a message queue with multiple dequeueing clients.

The Conditional Store facility provides a protected update mechanism for message state information that can detect and resolve conflicts between multiple writing mail clients.

The Conditional Store facility also allows a client to quickly resynchronize mailbox flag changes.

This document defines an extension to IMAP (RFC 3501).

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-imapext-condstore-09.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-condstore-09.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-condstore-09.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:	<2006-2-13143533.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-imapext-condstore-09.txt

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

Content-Type: text/plain
Content-ID:	<2006-2-13143533.I-D@ietf.org>

--OtherAccess--

--NextPart--



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k16CBT8h018797; Mon, 6 Feb 2006 04:11:29 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k16CBTrR018796; Mon, 6 Feb 2006 04:11:29 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k16CBS92018790 for <ietf-imapext@imc.org>; Mon, 6 Feb 2006 04:11:28 -0800 (PST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.198] (shiny.isode.com [62.3.217.250])  by rufus.isode.com via TCP (submission) with ESMTPA; Mon, 6 Feb 2006 12:11:21 +0000
Message-ID: <43E73CE7.7080508@isode.com>
Date: Mon, 06 Feb 2006 12:11: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.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
To: Dave Cridland <dave@cridland.net>
CC: Lisa Dusseault <lisa@osafoundation.org>, Mark Crispin <mrc@cac.washington.edu>, ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com> <18436.1138873055.818881@peirce.dave.cridland.net> <Pine.OSX.4.64.0602020851500.17564@pangtzu.panda.com> <23543.1138917698.577786@peirce.dave.cridland.net> <C20B2A4C-0A7F-47D2-9EF2-9F048319CC4C@osafoundation.org> <23543.1138922957.665178@peirce.dave.cridland.net>
In-Reply-To: <23543.1138922957.665178@peirce.dave.cridland.net>
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>

Dave Cridland wrote:

> On Thu Feb  2 22:32:50 2006, Lisa Dusseault wrote:
>
>> Dave said "the deficient server in this case causes no damage other 
>>  than a spurious round-trip from a client.", and Mark said something  
>> about guns and preschoolers :)
>
> Yeah. I'm talking specifically the case where a server increments a 
> MODSEQ for a message when the message is not visibly changed. Which is 
> the same as, for instance, a change to an ANNOTATion when the client 
> doesn't speak ANNOTATE - the client isn't damaged by it as such, and 
> has to expect it.

It is also the same as if another client set a flag and then unset it.



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k139342L091085; Fri, 3 Feb 2006 01:03:04 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k13934MM091084; Fri, 3 Feb 2006 01:03:04 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from heisenberg.zen.co.uk (heisenberg.zen.co.uk [212.23.3.141]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k1392vSJ091072 for <ietf-imapext@imc.org>; Fri, 3 Feb 2006 01:02:57 -0800 (PST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by heisenberg.zen.co.uk with esmtp (Exim 4.30) id 1F4wpZ-0003UJ-Em; Fri, 03 Feb 2006 09:02:13 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 80C2A498003; Fri,  3 Feb 2006 09:11:32 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19618-03; Fri, 3 Feb 2006 09:11:21 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id 9A22A498002; Fri,  3 Feb 2006 09:11:21 +0000 (GMT)
Date: Fri, 03 Feb 2006 09:02:00 +0000
Subject: Re: draft-newman-comparator updated
References: <KoXg11fi/4qP6q2U1IvcIw.md5@libertango.oryx.com> <6.0.0.20.2.20060203120709.0685fcc0@localhost>
In-Reply-To: <6.0.0.20.2.20060203120709.0685fcc0@localhost>
MIME-Version: 1.0
Message-Id: <23543.1138957322.093268@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Martin Duerst <duerst@it.aoyama.ac.jp>
Cc: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>, <ietf-imapext@imc.org>, <public-ietf-collation@w3c.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Heisenberg-IP: [217.155.137.60]
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 Fri Feb  3 03:10:17 2006, Martin Duerst wrote:
> 
> At 23:18 06/02/02, Arnt Gulbrandsen wrote:
> >
> >Hi,
> >
> >the draft is lying silently in the internet-draft editor queue. 
> However, I would appreciate reviews, speedily if possible. If you 
> have the time and it isn't yet in your internet-drafts mirror, I 
> can send a copy.
> >
> >There are a few changes.
> >
> >The basic and biggest change is that collation is defined in terms 
> of octet strings, with explicit notes that implementations may 
> choose to use character strings, and notes that in that case, e.g. 
> i;octet may not be possible to implement. Various minor changes 
> changes result.
> 
> This may work out, or it may not work out. I'll check this 
> carefully,
> but don't have any time this (and probably next) week, sorry.
> 
> The main problem is that octet-based collations (except possibly for
> i;octet) need an encoding, but character-based collations obviously
> don't. So if I have some French collation defined over characters,
> and some French collation defined over iso-8859-1, how will they
> be distinguished? How can we make sure registrations can be
> as compact and easy as possible?

I thought quite a few of the interested parties had essentially 
agreed on this, but I could be wrong.

I thought there was a general feel of consensus for specifying that 
all comparators operated on octets, and that any comparators using 
character strings used the same encoding of UTF-8.

In principle, this means that given a character string, feeding it 
into "i;octet" means first encoding it into UTF-8. However, for 
collation, I believe that UTF-8 collation using "+i;octet" and 
unicode code-point order are the same thing, hence there's an obvious 
shortcut to be made.

Even more obvious shortcuts apply to "i;ascii-casemap", and 
"i;ascii-numeric", since both *can* operate on UTF-8 encoded octet 
strings, *or* unicode codepoints, and have the same effect very 
easily. They might say "ascii" in the name, but we can retrofit a 
"ASCII range" meaning to that without breaking semantics.

And that effect is the key - all comparators would be defined in 
terms of UTF-8, and whether or not the implementation could deal 
directly with some other representation of Unicode character strings, 
the overall effect must be identical.

So a French collation is only defined on characters in as much as it 
is defined in terms of the UTF-8 encoding of those characters. It's 
simply not allowed to deal with ISO-8859-15, nor ISO-8859-1, and 
"which character set" is removed from the comparator library 
altogether. This makes quite a lot of sense - you don't want to 
potentially have different collating order depending on the character 
set of the data, do you?

For real-world implementations, it's quite likely that a library will 
have entry points for bare octet strings, some native Unicode (like 
UCS-2 or whatever), and possibly octet string and encoding pairs - 
and that's absolutely fine, as long as the effect is identical to 
using UTF-8 encoded octet strings.

That doesn't mean that "i;octet" makes sense for all protocols, of 
course, and I cannot see the point of using is as a tie-break, when 
some existing protocols using comparators already provide a means for 
the user to select any tie break if required. This practise is 
useful, so feel free to suggest it in protocol support.

I'll put together some other suggestions for handling the various 
non-compatible changes between ACAP/SIEVE style comparators and these 
ones over the next few days.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k135Fp3H062852; Thu, 2 Feb 2006 21:15:51 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k135FpFS062851; Thu, 2 Feb 2006 21:15:51 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from scmailgw2.scop.aoyama.ac.jp (scmailgw2.scop.aoyama.ac.jp [133.2.251.195]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k135Fir5062821 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 21:15:45 -0800 (PST) (envelope-from duerst@it.aoyama.ac.jp)
Received: from scmse2.scbb.aoyama.ac.jp (scmse2 [133.2.253.17]) by scmailgw2.scop.aoyama.ac.jp (secret/secret) with SMTP id k135FXd04807; Fri, 3 Feb 2006 14:15:33 +0900 (JST)
Received: from (133.2.210.1) by scmse2.scbb.aoyama.ac.jp via smtp id 41de_19f087de_9474_11da_8245_0014221f2a2d; Fri, 03 Feb 2006 14:15:33 +0900
Received: from EBOSHIIWA.it.aoyama.ac.jp (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.13.1/8.13.1) with ESMTP id k135EA9b002904; Fri, 3 Feb 2006 14:14:47 +0900
Message-Id: <6.0.0.20.2.20060203120709.0685fcc0@localhost>
X-Sender: duerst@localhost
X-Mailer: QUALCOMM Windows Eudora Version 6J
Date: Fri, 03 Feb 2006 12:10:17 +0900
To: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>, IMAP Extensions WG <ietf-imapext@imc.org>, public-ietf-collation@w3c.org
From: Martin Duerst <duerst@it.aoyama.ac.jp>
Subject: Re: draft-newman-comparator updated
In-Reply-To: <KoXg11fi/4qP6q2U1IvcIw.md5@libertango.oryx.com>
References: <KoXg11fi/4qP6q2U1IvcIw.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>

At 23:18 06/02/02, Arnt Gulbrandsen wrote:
 >
 >Hi,
 >
 >the draft is lying silently in the internet-draft editor queue. However, 
I would appreciate reviews, speedily if possible. If you have the time and 
it isn't yet in your internet-drafts mirror, I can send a copy.
 >
 >There are a few changes.
 >
 >The basic and biggest change is that collation is defined in terms of 
octet strings, with explicit notes that implementations may choose to use 
character strings, and notes that in that case, e.g. i;octet may not be 
possible to implement. Various minor changes changes result.

This may work out, or it may not work out. I'll check this carefully,
but don't have any time this (and probably next) week, sorry.

The main problem is that octet-based collations (except possibly for
i;octet) need an encoding, but character-based collations obviously
don't. So if I have some French collation defined over characters,
and some French collation defined over iso-8859-1, how will they
be distinguished? How can we make sure registrations can be
as compact and easy as possible?

Regards,    Martin.


 >There are also more definitions and requirements. For example, equality 
has to be implemented if ordering is, and if ordering returns equal, 
equality must return true. That sort of thing.
 >
 >I am unhappy with one thing: i;octet is still used a little as a last 
resort to resolve equality/order, which brings it very close to 
mandatory-to-implement. This doesn't seem necessary from an architectural 
point of view. I just haven't found a solution I really like.
 >
 >Arnt
 > 



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12NTO5G016239; Thu, 2 Feb 2006 15:29:24 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12NTO9P016238; Thu, 2 Feb 2006 15:29:24 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from pythagoras.zen.co.uk (pythagoras.zen.co.uk [212.23.3.140]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12NTNZg016232 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 15:29:23 -0800 (PST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1F4ntB-0004K9-7s; Thu, 02 Feb 2006 23:29:21 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 417A2498003; Thu,  2 Feb 2006 23:38:36 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17004-06; Thu, 2 Feb 2006 23:38:32 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id E9728498002; Thu,  2 Feb 2006 23:38:32 +0000 (GMT)
Date: Thu, 02 Feb 2006 23:29:16 +0000
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com> <18436.1138873055.818881@peirce.dave.cridland.net> <Pine.OSX.4.64.0602020851500.17564@pangtzu.panda.com> <23543.1138917698.577786@peirce.dave.cridland.net> <C20B2A4C-0A7F-47D2-9EF2-9F048319CC4C@osafoundation.org>
In-Reply-To: <C20B2A4C-0A7F-47D2-9EF2-9F048319CC4C@osafoundation.org>
MIME-Version: 1.0
Message-Id: <23543.1138922957.665178@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Lisa Dusseault <lisa@osafoundation.org>
Cc: Mark Crispin <mrc@CAC.Washington.EDU>, <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Pythagoras-IP: [217.155.137.60]
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 Thu Feb  2 22:32:50 2006, Lisa Dusseault wrote:
> Dave said "the deficient server in this case causes no damage other 
>  than a spurious round-trip from a client.", and Mark said 
> something  about guns and preschoolers :)
> 
> 
Yeah. I'm talking specifically the case where a server increments a 
MODSEQ for a message when the message is not visibly changed. Which 
is the same as, for instance, a change to an ANNOTATion when the 
client doesn't speak ANNOTATE - the client isn't damaged by it as 
such, and has to expect it.

What would happen is that the client would see a changed 
HIGHESTMODSEQ, and accordingly issue a FETCH  ... CHANGEDSINCE, which 
would yield some response, which would provide data the client 
already had.

Where the HIGHESTMODSEQ is the same, the FETCH can be eliminated 
(and, optionally, even the SELECT).

Obviously the latter is more efficient and faster, and therefore a 
server which incremements the Modification sequence when no 
Modification has taken place is not as good as it could be.

Obviously the client will remain in sync without resorting to any 
kind of workaround - resync just happens to be more costly - so the 
server is not broken as such, and such behaviour could be the result 
of a modification the client is not capable enough to see.


> Were you two talking about different cases?  Would the outcome of 
> bad  client use of MODSEQ would be dire or simply the client's own 
> problem?

Mark's suggesting that, because all known uses of MODSEQ involve 
ignoring both its numeric nature and its status as a FETCH item, then 
it's potentially inviting doom by having MODSEQs have a numeric, 
ascending, per-message-accessible nature. This is a different case to 
the above. At least I think so.

I can't see this being the case - a client expecting some specific 
meaning to the difference of two MODSEQ numbers is probably asking 
for trouble (except in two vanishingly rare cases, where the 
difference is exactly 1), but for the most part, it won't cause any 
damage other than to itself, and potentially the user's data bill. 
Other clients I cannot see being affected by that, except 
beneficially.

You see, I could assume that an increment of 2 to HIGHESTMODSEQ 
implied there were two modifications, and having found two modified 
messages, I could decide that I'd found any modified messages, and 
consider myself resynchronized. Sometimes, I might even *be* 
resynchronized. Trouble is, any modification may encompass as many or 
few messages as possible, hence that's an invalid assumption, and the 
client may actually be out of sync. But, this doesn't effect another 
client. What can happen, however, is that the out of sync client can 
mark deleted, and subsequently expunge, the wrong message. But any 
out-of-sync client can do that perfectly well without CONDSTORE, and 
I don't think it makes the problem markedly worse.

You can cause wasteful round-trips for other clients by toggling a 
flag on and off across all messages, but I can't see this being done 
by accident much, and it merely degenerates CONDSTORE to uselessness, 
rather than actively breaking it.

I'm sure we'll eventually find a use for access to the MODSEQ of 
messages, probably something to do with archiving away old messages, 
or watching the changes to status of work items in a shared mailbox - 
I could probably come up with plenty of uses. I can't come up with 
much in the way of harm.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12MiAkZ005550; Thu, 2 Feb 2006 14:44:10 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12MiAQ8005549; Thu, 2 Feb 2006 14:44:10 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12Mi9P4005543 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 14:44:10 -0800 (PST) (envelope-from MRC@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout4.cac.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12Mi716003149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 2 Feb 2006 14:44:07 -0800
X-Auth-Received: from Shimo-Tomobiki.panda.com (panda.com [206.124.149.114]) (authenticated authid=mrc) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12Mi528015179 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Thu, 2 Feb 2006 14:44:06 -0800
Date: Thu, 2 Feb 2006 14:44:03 -0800
From: Mark Crispin <MRC@CAC.Washington.EDU>
To: Lisa Dusseault <lisa@osafoundation.org>
cc: Dave Cridland <dave@cridland.net>, ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
In-Reply-To: <C20B2A4C-0A7F-47D2-9EF2-9F048319CC4C@osafoundation.org>
Message-ID: <Pine.WNT.4.65.0602021435090.3112@Shimo-Tomobiki.panda.com>
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com> <18436.1138873055.818881@peirce.dave.cridland.net> <Pine.OSX.4.64.0602020851500.17564@pangtzu.panda.com> <23543.1138917698.577786@peirce.dave.cridland.net> <C20B2A4C-0A7F-47D2-9EF2-9F048319CC4C@osafoundation.org>
Organization: Networks & Distributed Computing
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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 Thu, 2 Feb 2006, Lisa Dusseault wrote:
> Were you two talking about different cases?  Would the outcome of bad client 
> use of MODSEQ would be dire or simply the client's own problem?

That's the problem.  I don't know; and in such cases like this pessimism 
seems to be the more prudent course.

There's the harm in an implementation which uses empirical testing instead 
of the specification to define behavior.

There's the harm of making unwarranted assumptions, and decreeing that 
those who do not conform to those assumptions are "defective".  Consider 
those clients that assume that all names are "dual-use", all mailboxes 
support shared access, all servers support such-and-such extension, etc.

There's the harm of making a bizarre interpretation of the specification, 
claiming that interpretation is correct simply because it is not 
explicitly forbidden (never mind that it contracts something else), and 
then behaving badly against other implementations.

I've seen all of the above happen; and as a result I get nervous when 
there is wiggle-room in the specification or statements that it's 
"obvious" that it's such-and-such way.

I'm not saying that this applies here.  But has anyone made sure that it 
does not?

-- Mark --

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



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12MWsr7004446; Thu, 2 Feb 2006 14:32:54 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12MWsAN004445; Thu, 2 Feb 2006 14:32:54 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from laweleka.osafoundation.org (laweleka.osafoundation.org [204.152.186.98]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12MWsY6004439 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 14:32:54 -0800 (PST) (envelope-from lisa@osafoundation.org)
Received: from [192.168.101.89] (w002.z065106067.sjc-ca.dsl.cnc.net [65.106.67.2]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by laweleka.osafoundation.org (Postfix) with ESMTP id D0DF6142258; Thu,  2 Feb 2006 14:32:53 -0800 (PST)
In-Reply-To: <23543.1138917698.577786@peirce.dave.cridland.net>
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com> <18436.1138873055.818881@peirce.dave.cridland.net> <Pine.OSX.4.64.0602020851500.17564@pangtzu.panda.com> <23543.1138917698.577786@peirce.dave.cridland.net>
Mime-Version: 1.0 (Apple Message framework v746.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <C20B2A4C-0A7F-47D2-9EF2-9F048319CC4C@osafoundation.org>
Cc: Mark Crispin <mrc@CAC.Washington.EDU>, <ietf-imapext@imc.org>
Content-Transfer-Encoding: 7bit
From: Lisa Dusseault <lisa@osafoundation.org>
Subject: Re: MODSEQ in CONDSTORE
Date: Thu, 2 Feb 2006 14:32:50 -0800
To: Dave Cridland <dave@cridland.net>
X-Mailer: Apple Mail (2.746.2)
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>

Dave said "the deficient server in this case causes no damage other  
than a spurious round-trip from a client.", and Mark said something  
about guns and preschoolers :)

Were you two talking about different cases?  Would the outcome of bad  
client use of MODSEQ would be dire or simply the client's own problem?

lisa




Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12M1rh1000858; Thu, 2 Feb 2006 14:01:53 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12M1r69000857; Thu, 2 Feb 2006 14:01:53 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from rutherford.zen.co.uk (rutherford.zen.co.uk [212.23.3.142]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12M1qgv000851 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 14:01:52 -0800 (PST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by rutherford.zen.co.uk with esmtp (Exim 4.34) id 1F4mWU-0003co-Qk; Thu, 02 Feb 2006 22:01:51 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 0B5CD498004; Thu,  2 Feb 2006 22:11:05 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16600-02; Thu, 2 Feb 2006 22:10:53 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id 3EF59498002; Thu,  2 Feb 2006 22:10:53 +0000 (GMT)
Date: Thu, 02 Feb 2006 22:01:37 +0000
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com> <18436.1138873055.818881@peirce.dave.cridland.net> <Pine.OSX.4.64.0602020851500.17564@pangtzu.panda.com>
In-Reply-To: <Pine.OSX.4.64.0602020851500.17564@pangtzu.panda.com>
MIME-Version: 1.0
Message-Id: <23543.1138917698.577786@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Mark Crispin <mrc@CAC.Washington.EDU>
Cc: <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Rutherford-IP: [217.155.137.60]
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 Thu Feb  2 17:23:04 2006, Mark Crispin wrote:
> On Thu, 2 Feb 2006, Dave Cridland wrote:
>> A user setting \Seen (possibly implicitly in a FETCH BODY[...]) 
>> causes the MODSEQ to be bumped for that message. If the 
>> implementation is poor, then this can cause the MODSEQ seen by 
>> other users to be changed, too. That's undesirable, but as a 
>> client implementor, I infinitely prefer that level of 
>> implementation to none at all.
> 
> But that's only if (1) the mailbox has per-user flags, (2) the 
> mailbox has MODSEQ.  Right?
> 
> 
Exactly, that's precisely the circumstance I'm describing.


> Personally, I never thought that per-user flags were worth the 
> complexity, even though I was guilty of creating them.  But it was 
> only as a grim necessity for bboards and newsgroups; and even then 
> that was just a single flag.  The idea of using MODSEQ for such a 
> thing staggers me.
> 
> 
It seems quite logical to me. I'm told it's a little tricky to get 
right/efficient with CONDSTORE, mind.


>> Otherwise, you're effectively lowering the width of the UID space, 
>> down to 30, or 22, bits. That's still probably plenty of space, 
>> but there's something philosophically wrong about an extension 
>> lowering the scalability of the protocol it extends.
> 
> This argument only applies when you are monotonically allocating 
> UIDs (otherwise it's your implementation that reduces the UID 
> space, not MODSEQ).  And if you are monotonically allocating UIDs, 
> then there is no reason not to monotonically allocate MODSEQ.  The 
> notion of there being over 4 billion updates to one mailbox is 
> simply not credible.
> 
> 
Probably not right now, but the notion that if you allow for 
4,294,967,295 messages in a mailbox in the protocol - and never mind 
that existing servers will collapse long before that - and the 
arrival of each counts as a modification, and there can be further 
modifications, therefore that the maximum number of modifications 
before an overflow event should be higher than 4,294,967,295 seems 
perfectly sensible to me, especially when no "real-world" server has 
to support more than 4,294,967,295, it's only the protocol.


>>> I disagree.  Either MODSEQ reports that something touched the 
>>> message, or it reports that something changed the mesage.  As 
>>> matters stand, it is ambiguous.  A client may care.
>> Well, let me put it this way - a client which actually does care 
>> is broken. A server which claims there to be a change when there 
>> is not is deficient.
> 
> [sarcasm] And the IMAP community never, ever, produces broken 
> clients and deficient servers (or deficient clients and broken 
> servers). [/sarcasm]
> 
> We should have learned the painful lesson by now.
> 
> 
Sure... But the deficient server in this case causes no damage other 
than a spurious round-trip from a client.

I don't see how a client could assume that a MODSEQ change to a 
message represented a visible change to the FLAGS, but even if it 
could, what good would it do? Surely in finding the MODSEQ, it could 
easily enough find the FLAGS at the same time? And if it did make 
such an assumption somehow, what would it then do which would affect 
other clients?


>>>> Well, I don't think it's much of a problem. Most of the 
>>>> computers I work with these days increasingly use "unsigned 
>>>> long" for 64-bit values - even my laptop is 64-bit, but the vast 
>>>> majority of the 32-bit systems I use seem to support some kind 
>>>> of "unsigned long long" or equivalent.
>>> That hasn't been my experience... :-(
>> Get a better compiler? :-)
> 
> Sure, please write it.  And give it away for free, along with free 
> technical support.
> 
> 
To be fair, there's not much point competing with the GCC community, 
who seem to be doing a marvellous job there.


> I have a difficult time tolerating the "my system has 
> such-and-such, and it's your fault if your system does not have it 
> too" attitude.  Either we care about interoperability and 
> implementation costs, or we should forget this IETF nonsense and go 
> home.
> 
> 
Mark, I obviously care about interoperability, as we're right here 
discussing it. I obviously care about implementation costs, because I 
provided an estimate. I'm also already at home, come to that.

I'm simply saying that many systems do, indeed, have 64-bit unsigned 
integer datatypes available, and that it appears to be an increasing 
trend, and I actually find it very hard to believe that there exists 
any current desktop system which does not have 64-bit support in the 
compiler and libraries.

There are indeed some systems that don't, such as Symbian for one, 
but in my considered opinion, this doesn't matter, because it only 
affects client implementations, and client implementations can cope 
perfectly well with using 3 strings, for only a slight overhead.

[Aside: Symbian's compiler is GCC, and does indeed have unsigned long 
long in at least some versions, but the descriptor library has no 
support for it, only limited support for a C++-implemented signed 
64-bit int.]

The implementation cost is therefore very slight indeed, unless the 
client stores every MODSEQ's value and/or performs arithmetic or 
comparisons upon them, and this is unlikely to be beneficial to the 
client, and it is certainly not required for the purposes of faster 
resynchronization, which is the obvious use-case for CONDSTORE on 
limited platforms anyway.

On those platforms where it's possible to build a usable server which 
could overflow a 32-bit MODSEQ, whether by an astonishing throughput 
of STORE commands or a truly impressive amount of exceedingly fast 
disk, I refuse to believe that a compiler with 64-bit support is 
going to be a problem to find.


>> I don't believe clients ever need to handle more than 3 MODSEQ 
>> values at any time, and only need to store 2 permanently. If I 
>> needed to store each message's MODSEQ, I'd probably feel 
>> differently, but I don't think that's ever the case.
> 
> Are you certain?  IMHO, the client ability to fetch a message's 
> MODSEQ directly is like placing a loaded pistol with a hair trigger 
> in a room of preschoolers.  MODSEQ's ascending property makes it 
> nice and shiny too.
> 
> 
Well, no, I'm not certain there are no cases where being able to 
treat the 64-bit MODSEQ as a 64-bit number is useful to a client, 
merely that I've not found one useful enough to implement yet. Nor 
have I found the ability to directly find MODSEQ values for messages 
useful, as yet. There's no harm in doing so, of course.

However, I've implemented the client side for the uses of fast 
resynchronization, and I use it exclusively and daily to read my 
mail, and it works perfectly well, dealing with only three MODSEQ 
values per mailbox. Nor can I see anywhere in my code where instead 
of using a true 64-bit integer and comparing, I couldn't just as 
effectively compare strings for equality. I'm very confident that 
adding the conditional STORE itself would not cause me to change that 
assessment.

I have spotted two possible cases for the rare circumstance where a 
difference of one is noted between HIGHESTMODSEQ values which 
represent a potential gain, when also comparing UIDNEXT and EXISTS, 
but it's so rare I've never bothered implementing it, and I strongly 
suspect that, again, this is possible to handle with strings.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12HwqlF071322; Thu, 2 Feb 2006 09:58:52 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12HwqSZ071321; Thu, 2 Feb 2006 09:58:52 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from laweleka.osafoundation.org (laweleka.osafoundation.org [204.152.186.98]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12HwpvJ071314 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 09:58:51 -0800 (PST) (envelope-from lisa@osafoundation.org)
Received: from [192.168.101.89] (w002.z065106067.sjc-ca.dsl.cnc.net [65.106.67.2]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by laweleka.osafoundation.org (Postfix) with ESMTP id 2018B142293; Thu,  2 Feb 2006 09:58:51 -0800 (PST)
In-Reply-To: <KoXg11fi/4qP6q2U1IvcIw.md5@libertango.oryx.com>
References: <KoXg11fi/4qP6q2U1IvcIw.md5@libertango.oryx.com>
Mime-Version: 1.0 (Apple Message framework v746.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <0E5E8CD0-2C47-484F-8668-663D92B16E04@osafoundation.org>
Cc: IMAP Extensions WG <ietf-imapext@imc.org>, public-ietf-collation@w3c.org
Content-Transfer-Encoding: 7bit
From: Lisa Dusseault <lisa@osafoundation.org>
Subject: Document store (was: Re: draft-newman-comparator updated)
Date: Thu, 2 Feb 2006 09:58:48 -0800
To: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
X-Mailer: Apple Mail (2.746.2)
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>

FYI, If anybody wants to post documents-in-progress to http:// 
ietf.webdav.org/imapext,  I can give out accounts and permissions.   
For the documents I edit, I use it to post the XML, keep a version  
history, and let people subscribe to notifications of changes.

lisa


On Feb 2, 2006, at 6:18 AM, Arnt Gulbrandsen wrote:

>
> Hi,
>
> the draft is lying silently in the internet-draft editor queue.  
> However, I would appreciate reviews, speedily if possible. If you  
> have the time and it isn't yet in your internet-drafts mirror, I  
> can send a copy.
>
> There are a few changes.
>
> The basic and biggest change is that collation is defined in terms  
> of octet strings, with explicit notes that implementations may  
> choose to use character strings, and notes that in that case, e.g.  
> i;octet may not be possible to implement. Various minor changes  
> changes result.
>
> There are also more definitions and requirements. For example,  
> equality has to be implemented if ordering is, and if ordering  
> returns equal, equality must return true. That sort of thing.
>
> I am unhappy with one thing: i;octet is still used a little as a  
> last resort to resolve equality/order, which brings it very close  
> to mandatory-to-implement. This doesn't seem necessary from an  
> architectural point of view. I just haven't found a solution I  
> really like.
>
> Arnt
>



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12HN9pa067283; Thu, 2 Feb 2006 09:23:09 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12HN9MG067282; Thu, 2 Feb 2006 09:23:09 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12HN8Nm067276 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 09:23:09 -0800 (PST) (envelope-from mrc@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout4.cac.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12HN6jJ002261 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 2 Feb 2006 09:23: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.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12HN50d016658 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 2 Feb 2006 09:23:06 -0800
Date: Thu, 2 Feb 2006 09:23:04 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Dave Cridland <dave@cridland.net>
cc: ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
In-Reply-To: <18436.1138873055.818881@peirce.dave.cridland.net>
Message-ID: <Pine.OSX.4.64.0602020851500.17564@pangtzu.panda.com>
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com> <18436.1138873055.818881@peirce.dave.cridland.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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 Thu, 2 Feb 2006, Dave Cridland wrote:
> A user setting \Seen (possibly implicitly in a FETCH BODY[...]) causes the 
> MODSEQ to be bumped for that message. If the implementation is poor, then 
> this can cause the MODSEQ seen by other users to be changed, too. That's 
> undesirable, but as a client implementor, I infinitely prefer that level of 
> implementation to none at all.

But that's only if (1) the mailbox has per-user flags, (2) the mailbox has 
MODSEQ.  Right?

Personally, I never thought that per-user flags were worth the complexity, 
even though I was guilty of creating them.  But it was only as a grim 
necessity for bboards and newsgroups; and even then that was just a single 
flag.  The idea of using MODSEQ for such a thing staggers me.

> Otherwise, you're effectively lowering the width of the UID space, down to 
> 30, or 22, bits. That's still probably plenty of space, but there's something 
> philosophically wrong about an extension lowering the scalability of the 
> protocol it extends.

This argument only applies when you are monotonically allocating UIDs 
(otherwise it's your implementation that reduces the UID space, not 
MODSEQ).  And if you are monotonically allocating UIDs, then there is no 
reason not to monotonically allocate MODSEQ.  The notion of there being 
over 4 billion updates to one mailbox is simply not credible.

Now, if you have per-user and global flags in a mailbox that has MODSEQ, 
that may be a different matter.  But if you have that, that's a hole that 
you dug for yourself.  I see no reason to have such a thing; and if it was 
that important you should have defined two MODSEQs.

>> I disagree.  Either MODSEQ reports that something touched the message, or 
>> it reports that something changed the mesage.  As matters stand, it is 
>> ambiguous.  A client may care.
> Well, let me put it this way - a client which actually does care is broken. A 
> server which claims there to be a change when there is not is deficient.

[sarcasm] And the IMAP community never, ever, produces broken clients and 
deficient servers (or deficient clients and broken servers). [/sarcasm]

We should have learned the painful lesson by now.

>>> Well, I don't think it's much of a problem. Most of the computers I work 
>>> with these days increasingly use "unsigned long" for 64-bit values - even 
>>> my laptop is 64-bit, but the vast majority of the 32-bit systems I use 
>>> seem to support some kind of "unsigned long long" or equivalent.
>> That hasn't been my experience... :-(
> Get a better compiler? :-)

Sure, please write it.  And give it away for free, along with free 
technical support.

I have a difficult time tolerating the "my system has such-and-such, and 
it's your fault if your system does not have it too" attitude.  Either we 
care about interoperability and implementation costs, or we should forget 
this IETF nonsense and go home.

> I don't believe clients ever need to handle more than 3 MODSEQ values at any 
> time, and only need to store 2 permanently. If I needed to store each 
> message's MODSEQ, I'd probably feel differently, but I don't think that's 
> ever the case.

Are you certain?  IMHO, the client ability to fetch a message's MODSEQ 
directly is like placing a loaded pistol with a hair trigger in a room of 
preschoolers.  MODSEQ's ascending property makes it nice and shiny too.

Perhaps it would have been better to have created an alternative means to 
do those functionalities that doesn't leave temptation in the way.

-- 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 above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12GqfaP063545; Thu, 2 Feb 2006 08:52:41 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12Gqfnf063544; Thu, 2 Feb 2006 08:52:41 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12Gqe43063537 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 08:52:40 -0800 (PST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.198] (shiny.isode.com [62.3.217.250])  by rufus.isode.com via TCP (submission) with ESMTPA; Thu, 2 Feb 2006 16:52:37 +0000
Message-ID: <43E238D4.2030904@isode.com>
Date: Thu, 02 Feb 2006 16:52:36 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
To: Mark Crispin <mrc@CAC.Washington.EDU>
CC: ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <43E1DD52.7070705@isode.com> <Pine.OSX.4.64.0602020844520.17564@pangtzu.panda.com>
In-Reply-To: <Pine.OSX.4.64.0602020844520.17564@pangtzu.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 Thu, 2 Feb 2006, Alexey Melnikov wrote:
>
>>>> Clients, of course, have to deal with it as a 64-bit unsigned 
>>>> integer for all servers.
>>>
>>> That's a problem.  If you don't have a 64-bit integer type available 
>>> in then compiler, then you have to do the work by hand.  There seems 
>>> to me to be no good reason for this.
>>
>> Clients don't need to do any math on modsequences, they should be 
>> treated as opaque values.
>
> Are you sure?  It seems to me that the ascending property of modseqs 
> is something that clients may want to use, even though there's a 
> server operation for it.

No :-). One clever guy pointed out that a client might want to compare 
the cached modseq with the value returned in STATUS HIGHESTMODSEQ, for 
example.



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12GpQWp063451; Thu, 2 Feb 2006 08:51:26 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12GpQQv063450; Thu, 2 Feb 2006 08:51:26 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12GpPU3063438 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 08:51:25 -0800 (PST) (envelope-from mrc@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout1.cac.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12GpL1F020882 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 2 Feb 2006 08:51:21 -0800
X-Auth-Received: from pangtzu.panda.com (pangtzu.panda.com [206.124.149.117]) (authenticated authid=mrc) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12GpK5U007358 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 2 Feb 2006 08:51:20 -0800
Date: Thu, 2 Feb 2006 08:51:19 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
cc: ietf-imapext@imc.org
Subject: Re: collation: COMPARATOR/COLLATION?
In-Reply-To: <fQ0zcBD6EqnqNTy6wNewoQ.md5@libertango.oryx.com>
Message-ID: <Pine.OSX.4.64.0602020851040.17564@pangtzu.panda.com>
References: <zvw0g7uQlDrQiKtVa6n+eg.md5@libertango.oryx.com>  <18436.1138888191.391765@peirce.dave.cridland.net> <fQ0zcBD6EqnqNTy6wNewoQ.md5@libertango.oryx.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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 Thu, 2 Feb 2006, Arnt Gulbrandsen wrote:
> A show of hands, please? I think we should go with whatever term suits most 
> IMAP people.

I agree with COMPARATOR.

-- 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 above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12GnIDP063146; Thu, 2 Feb 2006 08:49:18 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12GnI8l063145; Thu, 2 Feb 2006 08:49:18 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12GnHUT063139 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 08:49:17 -0800 (PST) (envelope-from mrc@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout1.cac.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12GnFAn020021 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 2 Feb 2006 08:49:15 -0800
X-Auth-Received: from pangtzu.panda.com (pangtzu.panda.com [206.124.149.117]) (authenticated authid=mrc) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12GnDoi006739 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 2 Feb 2006 08:49:14 -0800
Date: Thu, 2 Feb 2006 08:49:13 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Alexey Melnikov <alexey.melnikov@isode.com>
cc: Dave Cridland <dave@cridland.net>, ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
In-Reply-To: <43E1DD52.7070705@isode.com>
Message-ID: <Pine.OSX.4.64.0602020844520.17564@pangtzu.panda.com>
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <43E1DD52.7070705@isode.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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 Thu, 2 Feb 2006, Alexey Melnikov wrote:
>>> Clients, of course, have to deal with it as a 64-bit unsigned integer for 
>>> all servers.
>> That's a problem.  If you don't have a 64-bit integer type available in 
>> then compiler, then you have to do the work by hand.  There seems to me to 
>> be no good reason for this.
> Clients don't need to do any math on modsequences, they should be treated as 
> opaque values.

Are you sure?  It seems to me that the ascending property of modseqs is 
something that clients may want to use, even though there's a server 
operation for it.

-- 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 above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12GipHd062503; Thu, 2 Feb 2006 08:44:51 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12GipR5062500; Thu, 2 Feb 2006 08:44:51 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12GioWx062488 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 08:44:50 -0800 (PST) (envelope-from mrc@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout3.cac.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12GinoS004050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 2 Feb 2006 08:44:49 -0800
X-Auth-Received: from pangtzu.panda.com (pangtzu.panda.com [206.124.149.117]) (authenticated authid=mrc) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k12GifEq005552 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 2 Feb 2006 08:44:49 -0800
Date: Thu, 2 Feb 2006 08:44:41 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Alexey Melnikov <alexey.melnikov@isode.com>
cc: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: MODSEQ in CONDSTORE
In-Reply-To: <43E1E0E2.8010404@isode.com>
Message-ID: <Pine.OSX.4.64.0602020844100.17564@pangtzu.panda.com>
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <43E1E0E2.8010404@isode.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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 Thu, 2 Feb 2006, Alexey Melnikov wrote:
>> The examples imply MODSEQ as a date/time, but as the document says you 
>> can't actually do that.
> Because time() is not granular enough for the task (multiple flag changes can 
> happen in one second), and it may also go back when time on the computer 
> changes.

Yes, of course, I understand that.  But the use of times in the examples 
implies otherwise.

-- 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 above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12EA6Q0045243; Thu, 2 Feb 2006 06:10:06 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12EA6Cn045242; Thu, 2 Feb 2006 06:10:06 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12EA2mG045236 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 06:10:03 -0800 (PST) (envelope-from arnt@gulbrandsen.priv.no)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id 88C114AC21; Thu,  2 Feb 2006 15:10:01 +0100 (CET)
Message-Id: <KoXg11fi/4qP6q2U1IvcIw.md5@libertango.oryx.com>
Date: Thu, 2 Feb 2006 15:18:10 +0100
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: IMAP Extensions WG <ietf-imapext@imc.org>, public-ietf-collation@w3c.org
Subject: draft-newman-comparator updated
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>

Hi,

the draft is lying silently in the internet-draft editor queue. However, 
I would appreciate reviews, speedily if possible. If you have the time 
and it isn't yet in your internet-drafts mirror, I can send a copy.

There are a few changes.

The basic and biggest change is that collation is defined in terms of 
octet strings, with explicit notes that implementations may choose to 
use character strings, and notes that in that case, e.g. i;octet may 
not be possible to implement. Various minor changes changes result.

There are also more definitions and requirements. For example, equality 
has to be implemented if ordering is, and if ordering returns equal, 
equality must return true. That sort of thing.

I am unhappy with one thing: i;octet is still used a little as a last 
resort to resolve equality/order, which brings it very close to 
mandatory-to-implement. This doesn't seem necessary from an 
architectural point of view. I just haven't found a solution I really 
like.

Arnt



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12Dt2J4044048; Thu, 2 Feb 2006 05:55:02 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12Dt2G0044047; Thu, 2 Feb 2006 05:55:02 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12Dt1YM044041 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 05:55:02 -0800 (PST) (envelope-from arnt@gulbrandsen.priv.no)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id B05BB4AC2B for <ietf-imapext@imc.org>; Thu,  2 Feb 2006 14:55:00 +0100 (CET)
Message-Id: <fQ0zcBD6EqnqNTy6wNewoQ.md5@libertango.oryx.com>
Date: Thu, 2 Feb 2006 15:03:09 +0100
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: ietf-imapext@imc.org
Subject: Re: collation: COMPARATOR/COLLATION?
References: <zvw0g7uQlDrQiKtVa6n+eg.md5@libertango.oryx.com> <18436.1138888191.391765@peirce.dave.cridland.net>
In-Reply-To: <18436.1138888191.391765@peirce.dave.cridland.net>
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>

Dave Cridland writes:
> On Thu Feb  2 13:50:19 2006, Arnt Gulbrandsen wrote:
>> draft-ietf-imapext-i18n has no substantive changes. But I am 
>> considering renaming the COMPARATOR extension to COLLATION to better 
>> suit the terminology in draft-newman-comparator. Opinions on that 
>> change? I know that sieve uses the term comparator.
>
> As does ACAP. I actually prefer the term comparator, and thoroughly 
> dislike the concept that they must collate.

A show of hands, please? I think we should go with whatever term suits 
most IMAP people.

Arnt



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12Do2ef042343; Thu, 2 Feb 2006 05:50:02 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12Do2cu042342; Thu, 2 Feb 2006 05:50:02 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from pythagoras.zen.co.uk (pythagoras.zen.co.uk [212.23.3.140]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12Do1Lk042326 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 05:50:01 -0800 (PST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1F4eqW-0006LM-I6; Thu, 02 Feb 2006 13:50:00 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 5365C498003; Thu,  2 Feb 2006 13:59:11 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14132-06; Thu, 2 Feb 2006 13:59:02 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id 5C5C3498002; Thu,  2 Feb 2006 13:59:02 +0000 (GMT)
Date: Thu, 02 Feb 2006 13:49:50 +0000
Subject: Re: collation: COMPARATOR/COLLATION?
References: <zvw0g7uQlDrQiKtVa6n+eg.md5@libertango.oryx.com>
In-Reply-To: <zvw0g7uQlDrQiKtVa6n+eg.md5@libertango.oryx.com>
MIME-Version: 1.0
Message-Id: <18436.1138888191.391765@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
Cc: <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Pythagoras-IP: [217.155.137.60]
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 Thu Feb  2 13:50:19 2006, Arnt Gulbrandsen wrote:
> a week and a few hours ago, I finished an update to the collation 
> drafts. Not sure why it hasn't been published yet. If anyone will 
> review before the i-d editor has done the necessary, I'll happily 
> send out copies via private email. (It's a little large for the 
> list, I suppose. 100k.)
> 
> 
Yes please.


> draft-ietf-imapext-i18n has no substantive changes. But I am 
> considering renaming the COMPARATOR extension to COLLATION to 
> better suit the terminology in draft-newman-comparator. Opinions on 
> that change? I know that sieve uses the term comparator.
> 
> 
As does ACAP. I actually prefer the term comparator, and thoroughly 
dislike the concept that they must collate.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12DgChf040859; Thu, 2 Feb 2006 05:42:12 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12DgChU040858; Thu, 2 Feb 2006 05:42:12 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12DgBhX040843 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 05:42:12 -0800 (PST) (envelope-from arnt@gulbrandsen.priv.no)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id 50E9B4AC1F; Thu,  2 Feb 2006 14:42:10 +0100 (CET)
Message-Id: <zvw0g7uQlDrQiKtVa6n+eg.md5@libertango.oryx.com>
Date: Thu, 2 Feb 2006 14:50:19 +0100
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: collation: COMPARATOR/COLLATION?
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>

Hi,

a week and a few hours ago, I finished an update to the collation 
drafts. Not sure why it hasn't been published yet. If anyone will 
review before the i-d editor has done the necessary, I'll happily send 
out copies via private email. (It's a little large for the list, I 
suppose. 100k.)

draft-ietf-imapext-i18n has no substantive changes. But I am considering 
renaming the COMPARATOR extension to COLLATION to better suit the 
terminology in draft-newman-comparator. Opinions on that change? I know 
that sieve uses the term comparator.

draft-newman-comparator has changes. Review _needed_.

Arnt



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12DNBtG038274; Thu, 2 Feb 2006 05:23:11 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12DNBso038273; Thu, 2 Feb 2006 05:23:11 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from pythagoras.zen.co.uk (pythagoras.zen.co.uk [212.23.3.140]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12DNA3Y038267 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 05:23:10 -0800 (PST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1F4eQX-0003Pi-3i; Thu, 02 Feb 2006 13:23:09 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 83229498003; Thu,  2 Feb 2006 13:32:19 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13942-10; Thu, 2 Feb 2006 13:32:16 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id ADC8B498002; Thu,  2 Feb 2006 13:32:16 +0000 (GMT)
Date: Thu, 02 Feb 2006 13:23:05 +0000
Subject: Re: ACL LISTRIGHTS
References: <1138885861.15880.87.camel@localhost.localdomain>
In-Reply-To: <1138885861.15880.87.camel@localhost.localdomain>
MIME-Version: 1.0
Message-Id: <18436.1138886585.909623@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Timo Sirainen <tss@iki.fi>
Cc: <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Pythagoras-IP: [217.155.137.60]
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 Thu Feb  2 13:11:01 2006, Timo Sirainen wrote:
> But what I'm wondering is what does the "required rights" parameter 
> mean
> in LISTRIGHTS reply? Is it the same as what rights the user 
> currently
> has (ie. for "LISTRIGHTS INBOX <myusername>" it's the same as 
> "MYRIGHTS
> INBOX"?
> 
> 
No, it's the inalienable rights the user has. For instance, a server 
might require that a user always has full rights over their INBOX, or 
all their personal folders. It's impossible to remove those rights 
via an ACL command.


> Also it looks like the "optional rights" doesn't necessarily list 
> all
> the possible rights that the RFC defines. Is there a reason why 
> server
> wouldn't list all of them? Except possibly if it doesn't support the
> feature at all?
> 
> 
Exactly that - it may be impossible to grant certain users 
administrative rights, for instance.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12DB8WP036944; Thu, 2 Feb 2006 05:11:08 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12DB8cw036942; Thu, 2 Feb 2006 05:11:08 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from dmgw.movial.fi (dmgw.movial.fi [62.236.91.5]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12DB7XW036926 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 05:11:07 -0800 (PST) (envelope-from tss@iki.fi)
Received: from movial.fi (hellmail.movial.fi [62.236.91.6]) by dmgw.movial.fi (Postfix) with ESMTP id E8D61231 for <ietf-imapext@imc.org>; Thu,  2 Feb 2006 15:11:00 +0200 (EET)
Received: from localhost (hellmail.movial.fi [127.0.0.1]) by movial.fi (Postfix) with ESMTP id D977F8007A for <ietf-imapext@imc.org>; Thu,  2 Feb 2006 15:11:00 +0200 (EET)
Received: from movial.fi ([127.0.0.1]) by localhost (hellmail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17032-03 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 15:11:00 +0200 (EET)
Received: from sd022.hel.movial.fi (sd022.hel.movial.fi [172.17.49.22]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by movial.fi (Postfix) with ESMTP id A6EFB8006D for <ietf-imapext@imc.org>; Thu,  2 Feb 2006 15:11:00 +0200 (EET)
Subject: ACL LISTRIGHTS
From: Timo Sirainen <tss@iki.fi>
To: IMAP Extensions WG <ietf-imapext@imc.org>
Content-Type: text/plain
Date: Thu, 02 Feb 2006 15:11:01 +0200
Message-Id: <1138885861.15880.87.camel@localhost.localdomain>
Mime-Version: 1.0
X-Mailer: Evolution 2.0.4 
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at movial.fi
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>

Now that I'm beginning to implement ACLs for my server, I finally got
around to reading rfc4314 (unfortunately I didn't really have time while
it was still in draft).

I noticed one bug in it:

   Example:    C: a005 listrights archive/imap anyone
               S: * LISTRIGHTS archive.imap anyone ""

But what I'm wondering is what does the "required rights" parameter mean
in LISTRIGHTS reply? Is it the same as what rights the user currently
has (ie. for "LISTRIGHTS INBOX <myusername>" it's the same as "MYRIGHTS
INBOX"?

Also it looks like the "optional rights" doesn't necessarily list all
the possible rights that the RFC defines. Is there a reason why server
wouldn't list all of them? Except possibly if it doesn't support the
feature at all?



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12AbjAB015277; Thu, 2 Feb 2006 02:37:45 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12AbjWF015276; Thu, 2 Feb 2006 02:37:45 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12Abhfe015262 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 02:37:44 -0800 (PST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.198] (shiny.isode.com [62.3.217.250])  by rufus.isode.com via TCP (submission) with ESMTPA; Thu, 2 Feb 2006 10:37:35 +0000
Message-ID: <43E1E0EE.7080805@isode.com>
Date: Thu, 02 Feb 2006 10:37: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.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
To: Dave Cridland <dave@cridland.net>
CC: Mark Crispin <mrc@CAC.Washington.EDU>, ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com> <18436.1138873055.818881@peirce.dave.cridland.net>
In-Reply-To: <18436.1138873055.818881@peirce.dave.cridland.net>
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>

Dave Cridland wrote:

> On Thu Feb  2 00:46:03 2006, Mark Crispin wrote:
>
>> On Thu, 2 Feb 2006, Dave Cridland wrote:
>>
>>> If you make UIDs 32-bit, then you have to allow for more space in 
>>> something expected to have more than one increment per UID. 
>>> Moreover, this gives enough space for poor implementations to show 
>>> MODSEQ changes from users' private flags. It's not ideal, but it's 
>>> better than having no CONDSTORE at all.
>>
>> I don't understand this statement at all.
>
> A user setting \Seen (possibly implicitly in a FETCH BODY[...]) causes 
> the MODSEQ to be bumped for that message. If the implementation is 
> poor, then this can cause the MODSEQ seen by other users to be 
> changed, too.

Indeed.

> That's undesirable, but as a client implementor, I infinitely prefer 
> that level of implementation to none at all.
>
>> Both UIDs and sequence numbers are also 32-bit.  I don't see what is 
>> so special about MODSEQ that it needs 9 orders of magnitude more 
>> value space. A typical message gets its flags changed fewer than 4 
>> times.
>
> Sure, we could make it 34-bit and probably be safe. Even if you take 
> into account the private flags situation, and give yourself 15,000 
> users, you could get away with 42 bits. I think 64-bit is simply the 
> next logical choice above 32-bit. It needs *more* space than 32-bit, 
> how much more is rather moot, since the next logical size up is 64-bit.

Exactly.

> Otherwise, you're effectively lowering the width of the UID space, 
> down to 30, or 22, bits. That's still probably plenty of space, but 
> there's something philosophically wrong about an extension lowering 
> the scalability of the protocol it extends.
>
>>> If you mean setting a flag where the flag is already set, then from 
>>> a practical standpoint it simply doesn't matter if the MODSEQ for 
>>> the message is bumped or not. It's much better if it isn't, but it 
>>> doesn't break anything if it is.
>>
>> I disagree.  Either MODSEQ reports that something touched the 
>> message, or it reports that something changed the mesage.  As matters 
>> stand, it is ambiguous.  A client may care.
>
> Well, let me put it this way - a client which actually does care is 
> broken. A server which claims there to be a change when there is not 
> is deficient.

I concur.

[...]

>>> Well, I don't think it's much of a problem. Most of the computers I 
>>> work with these days increasingly use "unsigned long" for 64-bit 
>>> values - even my laptop is 64-bit, but the vast majority of the 
>>> 32-bit systems I use seem to support some kind of "unsigned long 
>>> long" or equivalent.
>>
>> That hasn't been my experience... :-(
>
> Get a better compiler? :-)
>
> FWIW, I strongly suspect I could get away with using the textual 
> representation of the MODSEQ/HIGHESTMODSEQ throughout my 
> implementation. It'd waste 36 octets, which is a figure I can live 
> with. (Probably more likely to be 74 octets including string handling 
> overhead, but that's still well within my tolerance - the code 
> overhead of parsing and formatting them would be much higher).

Or one can use a struct with 2 32bit fields.



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12Abid9015269; Thu, 2 Feb 2006 02:37:44 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12AbiHh015268; Thu, 2 Feb 2006 02:37:44 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12Abhfd015262 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 02:37:44 -0800 (PST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.198] (shiny.isode.com [62.3.217.250])  by rufus.isode.com via TCP (submission) with ESMTPA; Thu, 2 Feb 2006 10:37:23 +0000
Message-ID: <43E1E0E2.8010404@isode.com>
Date: Thu, 02 Feb 2006 10:37:22 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Mark Crispin <mrc@cac.washington.edu>
CC: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com>
In-Reply-To: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com>
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>

Mark Crispin wrote:

> The examples imply MODSEQ as a date/time, but as the document says you 
> can't actually do that.

Because time() is not granular enough for the task (multiple flag 
changes can happen in one second), and it may also go back when time on 
the computer changes.



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12AMGSJ013513; Thu, 2 Feb 2006 02:22:16 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12AMG1E013512; Thu, 2 Feb 2006 02:22:16 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12AMF5E013505 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 02:22:15 -0800 (PST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.198] (shiny.isode.com [62.3.217.250])  by rufus.isode.com via TCP (submission) with ESMTPA; Thu, 2 Feb 2006 10:22:11 +0000
Message-ID: <43E1DD52.7070705@isode.com>
Date: Thu, 02 Feb 2006 10:22:10 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
To: Mark Crispin <mrc@CAC.Washington.EDU>
CC: Dave Cridland <dave@cridland.net>, ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com>
In-Reply-To: <Pine.OSX.4.64.0602011540450.17564@pangtzu.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:

>> Clients, of course, have to deal with it as a 64-bit unsigned integer 
>> for all servers.
>
> That's a problem.  If you don't have a 64-bit integer type available 
> in then compiler, then you have to do the work by hand.  There seems 
> to me to be no good reason for this.

Clients don't need to do any math on modsequences, they should be 
treated as opaque values.

And clients have an implementation option to treat modseqs as strings.



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k12AJPwX013165; Thu, 2 Feb 2006 02:19:25 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k12AJPdc013164; Thu, 2 Feb 2006 02:19:25 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k12AJOj5013155 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 02:19:24 -0800 (PST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.198] (shiny.isode.com [62.3.217.250])  by rufus.isode.com via TCP (submission) with ESMTPA; Thu, 2 Feb 2006 10:19:05 +0000
Message-ID: <43E1DC98.6010507@isode.com>
Date: Thu, 02 Feb 2006 10:19:04 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
To: Dave Cridland <dave@cridland.net>
CC: Mark Crispin <mrc@cac.washington.edu>, ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net>
In-Reply-To: <18436.1138837054.833741@peirce.dave.cridland.net>
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>

Dave Cridland wrote:

>> What's more, I didn't observe any definition in the CONDSTORE 
>> document of what is supposed to happen if a STORE results in no change.
>
> I don't think there's anything which states explicitly that if a STORE 
> results in no change then no MODSEQ increases happen, but I'd assume 
> that was implicit in the definition.

That was always the intent and this is how I've implemented this. If you 
think this is not clear, now might be a good time to add a clarifying 
sentence (CONDSTORE -08 is going to IESG shortly).

>> I am implementing a new mailbox format which has a per-message 
>> modification sequence.  For my purpose, it's easiest to have it be 
>> monotonically increasing.  Also, I don't want to change it if STORE 
>> results in no change.  I was going to make this available as a MODSEQ 
>> for a possible future CONDSTORE implementation, but I see no point in 
>> keeping it as a 64-bit value other than bloating the data structures 
>> further. I want to see if I am missing something.
>
> FWIW, Ken Murchison's patch for Cyrus can use a 32-bit MODSEQ value. 
> There's nothing *forcing* the value to be 64-bit for servers, but if 
> you overflowed a 32-bit, you'd have to reset the UIDVALIDITY in order 
> to recover.

That is correct.

> Clients, of course, have to deal with it as a 64-bit unsigned integer 
> for all servers.




Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k129bloC009234; Thu, 2 Feb 2006 01:37:47 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k129bldk009233; Thu, 2 Feb 2006 01:37:47 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from pythagoras.zen.co.uk (pythagoras.zen.co.uk [212.23.3.140]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k129bkdM009227 for <ietf-imapext@imc.org>; Thu, 2 Feb 2006 01:37:46 -0800 (PST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1F4auO-0007pZ-Eg; Thu, 02 Feb 2006 09:37:44 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 12D48498003; Thu,  2 Feb 2006 09:46:53 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12895-08; Thu, 2 Feb 2006 09:46:45 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id E5C30498002; Thu,  2 Feb 2006 09:46:44 +0000 (GMT)
Date: Thu, 02 Feb 2006 09:37:34 +0000
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com>
In-Reply-To: <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com>
MIME-Version: 1.0
Message-Id: <18436.1138873055.818881@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Mark Crispin <mrc@CAC.Washington.EDU>
Cc: <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Pythagoras-IP: [217.155.137.60]
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 Thu Feb  2 00:46:03 2006, Mark Crispin wrote:
> On Thu, 2 Feb 2006, Dave Cridland wrote:
>> If you make UIDs 32-bit, then you have to allow for more space in 
>> something expected to have more than one increment per UID. 
>> Moreover, this gives enough space for poor implementations to show 
>> MODSEQ changes from users' private flags. It's not ideal, but it's 
>> better than having no CONDSTORE at all.
> 
> I don't understand this statement at all.
> 
> 
A user setting \Seen (possibly implicitly in a FETCH BODY[...]) 
causes the MODSEQ to be bumped for that message. If the 
implementation is poor, then this can cause the MODSEQ seen by other 
users to be changed, too. That's undesirable, but as a client 
implementor, I infinitely prefer that level of implementation to none 
at all.


> Both UIDs and sequence numbers are also 32-bit.  I don't see what 
> is so special about MODSEQ that it needs 9 orders of magnitude more 
> value space. A typical message gets its flags changed fewer than 4 
> times.
> 
> 
Sure, we could make it 34-bit and probably be safe. Even if you take 
into account the private flags situation, and give yourself 15,000 
users, you could get away with 42 bits. I think 64-bit is simply the 
next logical choice above 32-bit. It needs *more* space than 32-bit, 
how much more is rather moot, since the next logical size up is 
64-bit.

Otherwise, you're effectively lowering the width of the UID space, 
down to 30, or 22, bits. That's still probably plenty of space, but 
there's something philosophically wrong about an extension lowering 
the scalability of the protocol it extends.


>> If you mean setting a flag where the flag is already set, then 
>> from a practical standpoint it simply doesn't matter if the MODSEQ 
>> for the message is bumped or not. It's much better if it isn't, 
>> but it doesn't break anything if it is.
> 
> I disagree.  Either MODSEQ reports that something touched the 
> message, or it reports that something changed the mesage.  As 
> matters stand, it is ambiguous.  A client may care.
> 
> 
Well, let me put it this way - a client which actually does care is 
broken. A server which claims there to be a change when there is not 
is deficient.


>> Not very likely, no. But equally, it's not very likely that you'd 
>> overflow UIDs, but that option is handled by the protocol. If it 
>> were an onerous thing, I'd worry about it, but it's really not.
> 
> But the same mechanism resets the MODSEQ as well.
> 
> 
Sure, but why make things worse?


>> Well, I don't think it's much of a problem. Most of the computers 
>> I work with these days increasingly use "unsigned long" for 64-bit 
>> values - even my laptop is 64-bit, but the vast majority of the 
>> 32-bit systems I use seem to support some kind of "unsigned long 
>> long" or equivalent.
> 
> That hasn't been my experience... :-(

Get a better compiler? :-)

FWIW, I strongly suspect I could get away with using the textual 
representation of the MODSEQ/HIGHESTMODSEQ throughout my 
implementation. It'd waste 36 octets, which is a figure I can live 
with. (Probably more likely to be 74 octets including string handling 
overhead, but that's still well within my tolerance - the code 
overhead of parsing and formatting them would be much higher).

I don't believe clients ever need to handle more than 3 MODSEQ values 
at any time, and only need to store 2 permanently. If I needed to 
store each message's MODSEQ, I'd probably feel differently, but I 
don't think that's ever the case.

Servers, of course, need to store at minimum one for every message 
plus one for the mailbox, but as I've said, they can use a 32-bit 
value if they prefer.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k120k8bW038828; Wed, 1 Feb 2006 16:46:08 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k120k8Gq038827; Wed, 1 Feb 2006 16:46:08 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k120k81a038821 for <ietf-imapext@imc.org>; Wed, 1 Feb 2006 16:46:08 -0800 (PST) (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.5+UW05.10/8.13.5+UW05.09) with ESMTP id k120k6f6010806 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 1 Feb 2006 16:46: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.5+UW05.10/8.13.5+UW05.09) with ESMTP id k120k38B010061 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 1 Feb 2006 16:46:05 -0800
Date: Wed, 1 Feb 2006 16:46:03 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Dave Cridland <dave@cridland.net>
cc: ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
In-Reply-To: <18436.1138840243.210708@peirce.dave.cridland.net>
Message-ID: <Pine.OSX.4.64.0602011635300.17564@pangtzu.panda.com>
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com> <18436.1138840243.210708@peirce.dave.cridland.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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 Thu, 2 Feb 2006, Dave Cridland wrote:
> If you make UIDs 32-bit, then you have to allow for more space in something 
> expected to have more than one increment per UID. Moreover, this gives enough 
> space for poor implementations to show MODSEQ changes from users' private 
> flags. It's not ideal, but it's better than having no CONDSTORE at all.

I don't understand this statement at all.

Both UIDs and sequence numbers are also 32-bit.  I don't see what is so 
special about MODSEQ that it needs 9 orders of magnitude more value space. 
A typical message gets its flags changed fewer than 4 times.

> If you mean setting a flag where the flag is already set, then from a 
> practical standpoint it simply doesn't matter if the MODSEQ for the message 
> is bumped or not. It's much better if it isn't, but it doesn't break anything 
> if it is.

I disagree.  Either MODSEQ reports that something touched the message, or 
it reports that something changed the mesage.  As matters stand, it is 
ambiguous.  A client may care.

> Not very likely, no. But equally, it's not very likely that you'd overflow 
> UIDs, but that option is handled by the protocol. If it were an onerous 
> thing, I'd worry about it, but it's really not.

But the same mechanism resets the MODSEQ as well.

> Well, I don't think it's much of a problem. Most of the computers I work with 
> these days increasingly use "unsigned long" for 64-bit values - even my 
> laptop is 64-bit, but the vast majority of the 32-bit systems I use seem to 
> support some kind of "unsigned long long" or equivalent.

That hasn't been my experience... :-(

-- 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 above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k120Untp036835; Wed, 1 Feb 2006 16:30:49 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k120Un1A036834; Wed, 1 Feb 2006 16:30:49 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from pythagoras.zen.co.uk (pythagoras.zen.co.uk [212.23.3.140]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k120UmHW036828 for <ietf-imapext@imc.org>; Wed, 1 Feb 2006 16:30:49 -0800 (PST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1F4SN5-0001Ls-4G; Thu, 02 Feb 2006 00:30:47 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 9BDD4498003; Thu,  2 Feb 2006 00:39:51 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10946-03; Thu, 2 Feb 2006 00:39:48 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id 3DDCF498002; Thu,  2 Feb 2006 00:39:48 +0000 (GMT)
Date: Thu, 02 Feb 2006 00:30:42 +0000
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net> <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com>
In-Reply-To: <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com>
MIME-Version: 1.0
Message-Id: <18436.1138840243.210708@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Mark Crispin <mrc@CAC.Washington.EDU>
Cc: <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Pythagoras-IP: [217.155.137.60]
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 Feb  1 23:50:22 2006, Mark Crispin wrote:
> On Wed, 1 Feb 2006, Dave Cridland wrote:
>> Two stores on different messages generate two different MODSEQ 
>> values, though. So if it were 32-bit, then just filling a mailbox 
>> would be enough to exhaust it. You actually only need 2^32-1 
>> STORES on a single message - the arrival of the single message 
>> itself increments the MODSEQ.
> 
> Yes, but how likely is a mailbox to have anything near the order of 
> magnitude of 2^32-1 messages (which would exhaust the UID space)?  
> Even given a ridiculous number of messages in the mailbox, there 
> should be tens of thousands of updates possible for each message 
> before a 32-bit MODSEQ space runs out.
> 
> 
If you make UIDs 32-bit, then you have to allow for more space in 
something expected to have more than one increment per UID. Moreover, 
this gives enough space for poor implementations to show MODSEQ 
changes from users' private flags. It's not ideal, but it's better 
than having no CONDSTORE at all.


>>> The examples imply MODSEQ as a date/time, but as the document 
>>> says you can't actually do that.
>> Indeed, but it's possible to come close. ACAP uses modtimes that 
>> can't actually be times, they just look remarkably like them.
> 
> I don't consider that to be a feature.  Some client author will 
> depend upon that characteristic, and it will come back to bite you.
> 
> 
Yes, it's probably not wise to exclusively use that method in the 
examples.


>> I don't think there's anything which states explicitly that if a 
>> STORE results in no change then no MODSEQ increases happen, but 
>> I'd assume that was implicit in the definition.
> 
> Well, that's a bug in the definition.
> 
> 
Actually, it depends on what you mean.

If you mean setting a flag where the flag is already set, then from a 
practical standpoint it simply doesn't matter if the MODSEQ for the 
message is bumped or not. It's much better if it isn't, but it 
doesn't break anything if it is.

If you mean a UID STORE that affects no messages, then there are no 
messages to bump the MODSEQ on - a server which bumped the 
HIGHESTMODSEQ is poor, but again, it doesn't break anything.

Given the definition of MODSEQ, I think it's pretty clear what should 
happen in both cases, though.


>> FWIW, Ken Murchison's patch for Cyrus can use a 32-bit MODSEQ 
>> value. There's nothing *forcing* the value to be 64-bit for 
>> servers, but if you overflowed a 32-bit, you'd have to reset the 
>> UIDVALIDITY in order to recover.
> 
> Not likely to happen, otherwise that option wouldn't exist.
> 
> 
Not very likely, no. But equally, it's not very likely that you'd 
overflow UIDs, but that option is handled by the protocol. If it were 
an onerous thing, I'd worry about it, but it's really not.


>> Clients, of course, have to deal with it as a 64-bit unsigned 
>> integer for all servers.
> 
> That's a problem.  If you don't have a 64-bit integer type 
> available in then compiler, then you have to do the work by hand.  
> There seems to me to be no good reason for this.
> 
> 
Well, I don't think it's much of a problem. Most of the computers I 
work with these days increasingly use "unsigned long" for 64-bit 
values - even my laptop is 64-bit, but the vast majority of the 
32-bit systems I use seem to support some kind of "unsigned long 
long" or equivalent.

Besides which, you only need to parse, format, and compare them, 
anyway. All of which I have to do quite soon, on a purely 32-bit 
platform, and I have to say I'm not particularly concerned about it, 
compared to all the other code I have to write.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k11NoRFI024324; Wed, 1 Feb 2006 15:50:27 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k11NoRAl024323; Wed, 1 Feb 2006 15:50:27 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k11NoQLo024317 for <ietf-imapext@imc.org>; Wed, 1 Feb 2006 15:50:26 -0800 (PST) (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.5+UW05.10/8.13.5+UW05.09) with ESMTP id k11NoOE9009851 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 1 Feb 2006 15:50:24 -0800
X-Auth-Received: from pangtzu.panda.com (pangtzu.panda.com [206.124.149.117]) (authenticated authid=mrc) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k11NoNE5025897 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 1 Feb 2006 15:50:23 -0800
Date: Wed, 1 Feb 2006 15:50:22 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Dave Cridland <dave@cridland.net>
cc: ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
In-Reply-To: <18436.1138837054.833741@peirce.dave.cridland.net>
Message-ID: <Pine.OSX.4.64.0602011540450.17564@pangtzu.panda.com>
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <18436.1138837054.833741@peirce.dave.cridland.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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, 1 Feb 2006, Dave Cridland wrote:
> Two stores on different messages generate two different MODSEQ values, 
> though. So if it were 32-bit, then just filling a mailbox would be enough to 
> exhaust it. You actually only need 2^32-1 STORES on a single message - the 
> arrival of the single message itself increments the MODSEQ.

Yes, but how likely is a mailbox to have anything near the order of 
magnitude of 2^32-1 messages (which would exhaust the UID space)?  Even 
given a ridiculous number of messages in the mailbox, there should be tens 
of thousands of updates possible for each message before a 32-bit MODSEQ 
space runs out.

>> The examples imply MODSEQ as a date/time, but as the document says you 
>> can't actually do that.
> Indeed, but it's possible to come close. ACAP uses modtimes that can't 
> actually be times, they just look remarkably like them.

I don't consider that to be a feature.  Some client author will depend 
upon that characteristic, and it will come back to bite you.

> I don't think there's anything which states explicitly that if a STORE 
> results in no change then no MODSEQ increases happen, but I'd assume that was 
> implicit in the definition.

Well, that's a bug in the definition.

> FWIW, Ken Murchison's patch for Cyrus can use a 32-bit MODSEQ value. There's 
> nothing *forcing* the value to be 64-bit for servers, but if you overflowed a 
> 32-bit, you'd have to reset the UIDVALIDITY in order to recover.

Not likely to happen, otherwise that option wouldn't exist.

> Clients, of course, have to deal with it as a 64-bit unsigned integer for all 
> servers.

That's a problem.  If you don't have a 64-bit integer type available in 
then compiler, then you have to do the work by hand.  There seems to me to 
be no good reason for this.

-- 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 above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k11Nber4023060; Wed, 1 Feb 2006 15:37:40 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k11Nbe15023059; Wed, 1 Feb 2006 15:37:40 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from heisenberg.zen.co.uk (heisenberg.zen.co.uk [212.23.3.141]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k11Nbd21023053 for <ietf-imapext@imc.org>; Wed, 1 Feb 2006 15:37:40 -0800 (PST) (envelope-from dave@cridland.net)
Received: from [217.155.137.60] (helo=turner.dave.cridland.net) by heisenberg.zen.co.uk with esmtp (Exim 4.30) id 1F4RXe-0005sU-8a; Wed, 01 Feb 2006 23:37:38 +0000
Received: from localhost (localhost.localdomain [127.0.0.1]) by turner.dave.cridland.net (Postfix) with ESMTP id 59471498003; Wed,  1 Feb 2006 23:46:42 +0000 (GMT)
Received: from turner.dave.cridland.net ([127.0.0.1]) by localhost (turner.dave.cridland.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10515-10; Wed, 1 Feb 2006 23:46:39 +0000 (GMT)
Received: from peirce.dave.cridland.net (unknown [IPv6:2001:4bd0:2029:0:2e0:81ff:fe29:d16a]) by turner.dave.cridland.net (Postfix) with ESMTP id 6C2F1498002; Wed,  1 Feb 2006 23:46:39 +0000 (GMT)
Date: Wed, 01 Feb 2006 23:37:34 +0000
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com>
In-Reply-To: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com>
MIME-Version: 1.0
Message-Id: <18436.1138837054.833741@peirce.dave.cridland.net>
From: Dave Cridland <dave@cridland.net>
To: Mark Crispin <mrc@cac.washington.edu>
Cc: <ietf-imapext@imc.org>
Content-Type: text/plain; charset="us-ascii"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dave.cridland.net
X-Originating-Heisenberg-IP: [217.155.137.60]
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 Feb  1 23:20:18 2006, Mark Crispin wrote:
> 
> I know that it's probably much too late to complain about this now, 
> but can someplace please explain why the MODSEQ is a 64-bit value?  
> Is there any serious possibility of there being more than 2^32 
> STOREs being performed on a single message in a mailbox?
> 
> 
Two stores on different messages generate two different MODSEQ 
values, though. So if it were 32-bit, then just filling a mailbox 
would be enough to exhaust it. You actually only need 2^32-1 STORES 
on a single message - the arrival of the single message itself 
increments the MODSEQ.


> The examples imply MODSEQ as a date/time, but as the document says 
> you can't actually do that.
> 
> 
Indeed, but it's possible to come close. ACAP uses modtimes that 
can't actually be times, they just look remarkably like them.


> What's more, I didn't observe any definition in the CONDSTORE 
> document of what is supposed to happen if a STORE results in no 
> change.
> 
> 
I don't think there's anything which states explicitly that if a 
STORE results in no change then no MODSEQ increases happen, but I'd 
assume that was implicit in the definition.


> I am implementing a new mailbox format which has a per-message 
> modification sequence.  For my purpose, it's easiest to have it be 
> monotonically increasing.  Also, I don't want to change it if STORE 
> results in no change.  I was going to make this available as a 
> MODSEQ for a possible future CONDSTORE implementation, but I see no 
> point in keeping it as a 64-bit value other than bloating the data 
> structures further. I want to see if I am missing something.
> 
> 
FWIW, Ken Murchison's patch for Cyrus can use a 32-bit MODSEQ value. 
There's nothing *forcing* the value to be 64-bit for servers, but if 
you overflowed a 32-bit, you'd have to reset the UIDVALIDITY in order 
to recover.

Clients, of course, have to deal with it as a 64-bit unsigned integer 
for all servers.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k11NaoCq022970; Wed, 1 Feb 2006 15:36:50 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k11NaoXm022969; Wed, 1 Feb 2006 15:36:50 -0800 (PST)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-imapext@mail.imc.org using -f
Received: from mxout7.cac.washington.edu (mxout7.cac.washington.edu [140.142.32.178]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k11NaoxI022962 for <ietf-imapext@imc.org>; Wed, 1 Feb 2006 15:36:50 -0800 (PST) (envelope-from mrc@CAC.Washington.EDU)
Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout7.cac.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k11Naj5I010489 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 1 Feb 2006 15:36:46 -0800
X-Auth-Received: from pangtzu.panda.com (pangtzu.panda.com [206.124.149.117]) (authenticated authid=mrc) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k11Nafsd020762 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 1 Feb 2006 15:36:44 -0800
Date: Wed, 1 Feb 2006 15:36:40 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
cc: ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
In-Reply-To: <imqKU9hqex+784rvMKxtHw.md5@libertango.oryx.com>
Message-ID: <Pine.OSX.4.64.0602011534550.17564@pangtzu.panda.com>
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com> <imqKU9hqex+784rvMKxtHw.md5@libertango.oryx.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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 Thu, 2 Feb 2006, Arnt Gulbrandsen wrote:
> Mark Crispin writes:
>> I know that it's probably much too late to complain about this now, but can 
>> someplace please explain why the MODSEQ is a 64-bit value?
> It's desirable for modseq to be comparable across multiple messages. For 
> example, 'search for messages with modseq higher than x' while updating an 
> offline client's cache.

And how does a 64-bit MODSEQ accomplish this in a way that a 32-bit MODSEQ 
does not?

The examples imply the usage of a date/time, but you can't actually use 
such; but there seems to be a nudge-nudge wink-wink implication that 
clients can assume that.

-- 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 above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k11NW3DT022131; Wed, 1 Feb 2006 15:32:03 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k11NW33G022130; Wed, 1 Feb 2006 15:32:03 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k11NW2Wb022123 for <ietf-imapext@imc.org>; Wed, 1 Feb 2006 15:32:02 -0800 (PST) (envelope-from arnt@gulbrandsen.priv.no)
Received: from libertango.oryx.com (libertango.oryx.com [195.30.37.9]) by kalyani.oryx.com (Postfix) with ESMTP id 54D6A4AC21 for <ietf-imapext@imc.org>; Thu,  2 Feb 2006 00:32:01 +0100 (CET)
Message-Id: <imqKU9hqex+784rvMKxtHw.md5@libertango.oryx.com>
Date: Thu, 2 Feb 2006 00:40:07 +0100
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: ietf-imapext@imc.org
Subject: Re: MODSEQ in CONDSTORE
References: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com>
In-Reply-To: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.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>

Mark Crispin writes:
> I know that it's probably much too late to complain about this now, 
> but can someplace please explain why the MODSEQ is a 64-bit value?

It's desirable for modseq to be comparable across multiple messages. For 
example, 'search for messages with modseq higher than x' while updating 
an offline client's cache.

Arnt



Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id k11NKMAI021088; Wed, 1 Feb 2006 15:20:22 -0800 (PST) (envelope-from owner-ietf-imapext@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id k11NKM9N021087; Wed, 1 Feb 2006 15:20:22 -0800 (PST)
X-Authentication-Warning: above.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 above.proper.com (8.12.11/8.12.9) with ESMTP id k11NKL3S021080 for <ietf-imapext@IMC.ORG>; Wed, 1 Feb 2006 15:20:22 -0800 (PST) (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.5+UW05.10/8.13.5+UW05.09) with ESMTP id k11NKKVD016373 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <ietf-imapext@IMC.ORG>; Wed, 1 Feb 2006 15:20:20 -0800
X-Auth-Received: from pangtzu.panda.com (pangtzu.panda.com [206.124.149.117]) (authenticated authid=mrc) by smtp.washington.edu (8.13.5+UW05.10/8.13.5+UW05.09) with ESMTP id k11NKI7M015852 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <ietf-imapext@IMC.ORG>; Wed, 1 Feb 2006 15:20:19 -0800
Date: Wed, 1 Feb 2006 15:20:18 -0800 (PST)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: MODSEQ in CONDSTORE
Message-ID: <Pine.OSX.4.64.0602011509100.17564@pangtzu.panda.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 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 know that it's probably much too late to complain about this now, but 
can someplace please explain why the MODSEQ is a 64-bit value?  Is there 
any serious possibility of there being more than 2^32 STOREs being 
performed on a single message in a mailbox?

The examples imply MODSEQ as a date/time, but as the document says you 
can't actually do that.

What's more, I didn't observe any definition in the CONDSTORE document of 
what is supposed to happen if a STORE results in no change.

I am implementing a new mailbox format which has a per-message 
modification sequence.  For my purpose, it's easiest to have it be 
monotonically increasing.  Also, I don't want to change it if STORE 
results in no change.  I was going to make this available as a MODSEQ for 
a possible future CONDSTORE implementation, but I see no point in keeping 
it as a 64-bit value other than bloating the data structures further. 
I want to see if I am missing something.

-- 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.


