
Received: by above.proper.com (8.9.3/8.9.3) id MAA29874 for ietf-imapext-bks; Wed, 30 May 2001 12:12:43 -0700 (PDT)
Received: from Tomobiki-Cho.CAC.Washington.EDU (den@tomobiki-cho.cac.washington.edu [128.95.135.58]) by above.proper.com (8.9.3/8.9.3) with ESMTP id MAA29861 for <ietf-imapext@imc.org>; Wed, 30 May 2001 12:12:32 -0700 (PDT)
Date: Wed, 30 May 2001 11:59:04 -0700 (PDT)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: Re: draft-ietf-imapext-thread
To: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
cc: ietf-imapext@imc.org
In-Reply-To: <20010530111859.A26726@melkebalanse.troll.no>
Message-ID: <MailManager.991249144.15779.mrc@Ikkoku-Kan.Panda.COM>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
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>

The problem is that threads are not like other types of data.  A message that
was not previously in a thread could join the thread as the result of the
addition of another message.  Put another way, a message's "thread status"
depends upon other messages.

Consequently, "thread status" is not at all per-message metadata.  It is
mailbox metadata.  If you subset the messages considered by the THREAD
command, the resulting tree is metadata for that subset, and not for any other
set (including a superset of that subset).

There isn't any known algorithm to update thread metadata with new messages,
either on a global or a per-message basis.  The only known way is to
recalculate the entire thread tree; and if the client needs to know it, to
transmit the entire tree to the client.



Received: by above.proper.com (8.9.3/8.9.3) id CAA13147 for ietf-imapext-bks; Wed, 30 May 2001 02:19:47 -0700 (PDT)
Received: from melkebalanse.troll.no (ns.ntm-gmbh.de [213.69.168.98]) by above.proper.com (8.9.3/8.9.3) with ESMTP id CAA13136 for <ietf-imapext@imc.org>; Wed, 30 May 2001 02:19:40 -0700 (PDT)
Received: (from arnt@localhost) by melkebalanse.troll.no (8.9.3/8.8.5) id LAA26733; Wed, 30 May 2001 11:18:59 +0200
Date: Wed, 30 May 2001 11:18:59 +0200
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: Mark Crispin <MRC@cac.washington.edu>
Cc: ietf-imapext@imc.org
Subject: Re: draft-ietf-imapext-thread
Message-ID: <20010530111859.A26726@melkebalanse.troll.no>
References: <20010529223543.E26574@melkebalanse.troll.no> <MailManager.991169858.2809.mrc@Tomobiki-Cho.CAC.Washington.EDU>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <MailManager.991169858.2809.mrc@Tomobiki-Cho.CAC.Washington.EDU>
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Mark Crispin <MRC@CAC.Washington.EDU>
> Did you notice that the last argument specifies what messages are to be
> threaded?  So if you only want to thread new messages, you can do:
> 	THREAD REFERENCES UTF-8 NEW

The sound you hear is me kicking myself.

> > The thread=references model specifies an algorithm to be used, in detail,
> > and that algorithm is one that makes several passes over the entire set of
> > messages.  The algorithm is complex, and it's not clear to me whether it
> > can be adapted to be incremental without possibly changing its output, and
> > whether such changes are permitted by the draft.
> 
> That's the problem -- a newly-arrived message can completely change the thread
> tree.  It's therefore quite possible that an "incremental" change (one that
> simply says what is different from the previous tree) is larger in size that
> the previous tree.
> 
> To complicate matters, there is no obvious algorithm for determining how a
> newly arrived message would change the tree; without such an algorithm, you
> have to rethread on the server, and then do a comparison between the old and
> new tree.

I don't think we're talking about the same thing here. You seem to assume
that clients want thread information about the entire mailbox, and that
the question is whether servers can save bandwidth by transmitting changes
to the tree, rather than resending the entire three.  Right?

Well, I am concerned about whether the server can do thread processing at
message delivery time, so that processing a thread request becomes as
cheap as e.g. "fetch flags". I'm concerned about this because I want to do
lots of small thread requests (examples below), and I can't do that if
they're expensive.

> This has been the flaw in the arguments for "subsetting"; you can only
> "subset" in the simplest cases.  It turns out that the only meaningful
> subsetting is on a static tree, which makes subsetting much less valuable than
> its proponents claim.

Actually, subsetting would help with the cases I'm most interested in,
particularly if the server is permitted to also return answers outside the
requested set:  "Show me all the threads where there's new mail", "show me
all the messages from mumble@gargle.com, and the threads to which those
messages belong", "show me all discussion in our department-wide archive
where the subject included 'fumble'" and so on.

> > So, if a server does incremental References:-based threading on delivery,
> > can it advertise thread=references?
> 
> I don't know what that means.

Let me try again.

If an IMAP server keeps thread information in the persistent messages
store, and updates that information when a message is written into the
message store, is it possible for that server to comply with the draft's
requirements and advertise thread=references?

I read the draft more carefully last night, and it looks very difficult.
Steps 3-6 have to be done when the client requests thread information, if
I understand it correctly.

--Arnt


Received: by above.proper.com (8.9.3/8.9.3) id OAA14422 for ietf-imapext-bks; Tue, 29 May 2001 14:06:46 -0700 (PDT)
Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by above.proper.com (8.9.3/8.9.3) with ESMTP id OAA14407 for <ietf-imapext@imc.org>; Tue, 29 May 2001 14:06:40 -0700 (PDT)
Received: from mailhost1.u.washington.edu (mailhost1.u.washington.edu [140.142.32.2]) by mxout2.cac.washington.edu (8.11.2+UW01.01/8.11.2+UW01.04) with ESMTP id f4TL6go16094; Tue, 29 May 2001 14:06:43 -0700
Received: from Tomobiki-Cho.CAC.Washington.EDU (murphy@tomobiki-cho.cac.washington.edu [128.95.135.58]) by mailhost1.u.washington.edu (8.11.2+UW01.01/8.11.2+UW01.04) with ESMTP id f4TL6gi20039; Tue, 29 May 2001 14:06:42 -0700
Date: Tue, 29 May 2001 13:57:38 -0700 (PDT)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: re: draft-ietf-imapext-thread
To: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
cc: ietf-imapext@imc.org
In-Reply-To: <20010529223543.E26574@melkebalanse.troll.no>
Message-ID: <MailManager.991169858.2809.mrc@Tomobiki-Cho.CAC.Washington.EDU>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
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, 29 May 2001 22:35:43 +0200, Arnt Gulbrandsen wrote:
> The thread extension offers no way to get threading information for only
> some mail (typically, the newly arrived messages).  Isn't this a problem?

Did you notice that the last argument specifies what messages are to be
threaded?  So if you only want to thread new messages, you can do:
	THREAD REFERENCES UTF-8 NEW

However, usually ALL is used, because you want to thread in context.

> The thread=references model specifies an algorithm to be used, in detail,
> and that algorithm is one that makes several passes over the entire set of
> messages.  The algorithm is complex, and it's not clear to me whether it
> can be adapted to be incremental without possibly changing its output, and
> whether such changes are permitted by the draft.

That's the problem -- a newly-arrived message can completely change the thread
tree.  It's therefore quite possible that an "incremental" change (one that
simply says what is different from the previous tree) is larger in size that
the previous tree.

To complicate matters, there is no obvious algorithm for determining how a
newly arrived message would change the tree; without such an algorithm, you
have to rethread on the server, and then do a comparison between the old and
new tree.

This has been the flaw in the arguments for "subsetting"; you can only
"subset" in the simplest cases.  It turns out that the only meaningful
subsetting is on a static tree, which makes subsetting much less valuable than
its proponents claim.  That's why subsetting hasn't been particularly
interesting to the people who've actually implemented server-based sorting and
threading; it's one of those things that sounds better on paper than in
reality.

> So, if a server does incremental References:-based threading on delivery,
> can it advertise thread=references?

I don't know what that means.



Received: by above.proper.com (8.9.3/8.9.3) id NAA11273 for ietf-imapext-bks; Tue, 29 May 2001 13:36:22 -0700 (PDT)
Received: from melkebalanse.troll.no (bluegrass.camelot.de [217.19.165.66]) by above.proper.com (8.9.3/8.9.3) with ESMTP id NAA11254 for <ietf-imapext@imc.org>; Tue, 29 May 2001 13:36:12 -0700 (PDT)
Received: (from arnt@localhost) by melkebalanse.troll.no (8.9.3/8.8.5) id WAA26615; Tue, 29 May 2001 22:35:43 +0200
Date: Tue, 29 May 2001 22:35:43 +0200
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: ietf-imapext@imc.org
Subject: draft-ietf-imapext-thread
Message-ID: <20010529223543.E26574@melkebalanse.troll.no>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
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>

The thread extension offers no way to get threading information for only
some mail (typically, the newly arrived messages).  Isn't this a problem?

The thread=references model specifies an algorithm to be used, in detail,
and that algorithm is one that makes several passes over the entire set of
messages.  The algorithm is complex, and it's not clear to me whether it
can be adapted to be incremental without possibly changing its output, and
whether such changes are permitted by the draft.

So, if a server does incremental References:-based threading on delivery,
can it advertise thread=references?

--Arnt


Received: by above.proper.com (8.9.3/8.9.3) id OAA07158 for ietf-imapext-bks; Tue, 22 May 2001 14:30:43 -0700 (PDT)
Received: from gollum.esys.ca (dhcp198-52.esys.ca [198.161.92.52]) by above.proper.com (8.9.3/8.9.3) with ESMTP id OAA07147 for <ietf-imapext@imc.org>; Tue, 22 May 2001 14:30:38 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by gollum.esys.ca (8.12.0.Beta5/8.11.3) with ESMTP id f4MLUR8K001874 for <ietf-imapext@imc.org>; Tue, 22 May 2001 15:30:27 -0600 (MDT) (envelope-from lyndon@gollum.esys.ca)
Message-Id: <200105222130.f4MLUR8K001874@gollum.esys.ca>
From: Lyndon Nerenberg <lyndon@messagingdirect.com>
Organization: ACI Worldwide
X-URL: http://www.aciworldwide.com/
to: ietf-imapext@imc.org
Subject: Re: offset and size domain in partial BINARY fetch 
In-Reply-To: Message from Jutta Degener <jutta.degener@mediagate.com>  of "Mon, 21 May 2001 12:26:08 PDT." <3B096BD0.4E5FCA99@mediagate.com> 
Date: Tue, 22 May 2001 15:30:27 -0600
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>

>>>>> "Jutta" == Jutta Degener <jutta.degener@mediagate.com> writes:

    Jutta> I'm worried about the <partial> addressing in BINARY.
           [...]
    Jutta> This seems next-to-useless

Yes. This was a holdover from when the reference was to the
encoded section. Based on the feedback from -03 I've made
the following changes:

* Offsets now refer to the DEcoded content.
* Removed partials from BINARY.SIZE.

These have been rolled up into a -04 version. Additional changes
include:

* UNKNOWN-TRANSFER-ENCODING changed to UNKNOWN-CTE.
* msg_att grammar added.
* <section_binary> element removed. BINARY now uses
  <section>, and text has been added to clarify what
  it means to binary fetch things like message headers.

The preview version is at http://research.messagingdirect.com/

--lyndon


Received: by above.proper.com (8.9.3/8.9.3) id KAA24343 for ietf-imapext-bks; Tue, 22 May 2001 10:19:05 -0700 (PDT)
Received: from gollum.esys.ca (dhcp198-52.esys.ca [198.161.92.52]) by above.proper.com (8.9.3/8.9.3) with ESMTP id KAA24326 for <ietf-imapext@imc.org>; Tue, 22 May 2001 10:18:57 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by gollum.esys.ca (8.12.0.Beta5/8.11.3) with ESMTP id f4MHId8K000959; Tue, 22 May 2001 11:18:40 -0600 (MDT) (envelope-from lyndon@gollum.esys.ca)
Message-Id: <200105221718.f4MHId8K000959@gollum.esys.ca>
From: Lyndon Nerenberg <lyndon@messagingdirect.com>
Organization: ACI Worldwide
X-URL: http://www.aciworldwide.com/
To: Jutta Degener <jutta.degener@mediagate.com>
cc: ietf-imapext@imc.org
Subject: Re: offset and size domain in partial BINARY fetch 
In-Reply-To: Message from Jutta Degener <jutta.degener@mediagate.com>  of "Mon, 21 May 2001 12:26:08 PDT." <3B096BD0.4E5FCA99@mediagate.com> 
Date: Tue, 22 May 2001 11:18:39 -0600
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>

>>>>> "Jutta" == Jutta Degener <jutta.degener@mediagate.com> writes:

    Jutta> What my client _would_ need would be a way of getting "the
    Jutta> next block of decoded binary".  That is, in my ideal world,
    Jutta> the offset argument would refer to the offset into the
    Jutta> DECODED body section, not the encoded one.

Good point. The use of encoded offsets is a holdover from the
previous draft, where there was no guarantee of an accurate
(or any) decoded size being reported. Now that an accurate size
is required from the server, I'll change the offset to refer to
the decoded object.

--lyndon


Received: by above.proper.com (8.9.3/8.9.3) id MAA17632 for ietf-imapext-bks; Mon, 21 May 2001 12:43:16 -0700 (PDT)
Received: from Tomobiki-Cho.CAC.Washington.EDU (kung@tomobiki-cho.cac.washington.edu [128.95.135.58]) by above.proper.com (8.9.3/8.9.3) with ESMTP id MAA17624 for <ietf-imapext@imc.org>; Mon, 21 May 2001 12:43:10 -0700 (PDT)
Date: Mon, 21 May 2001 12:32:12 -0700 (PDT)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: re: offset and size domain in partial BINARY fetch
To: Jutta Degener <jutta.degener@mediagate.com>
cc: ietf-imapext@imc.org
In-Reply-To: <3B096BD0.4E5FCA99@mediagate.com>
Message-ID: <MailManager.990473532.15779.mrc@Ikkoku-Kan.Panda.COM>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
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 agree with Jutta's analysis.  I don't see much point in the BINARY extension
at all if partial fetches use the encoded section values.

A server is probably going to cache the decoded binary content anyway, rather
than decode on the fly (or do that more than once).  Nor does the requirement
for encoded section offset/size save the server any work; it probably adds
more work.  Remember that both QP and B64 are stateful; you have to know the
state at a particular byte in order to decode correctly.

Not that I see much point in the BINARY extension anyway; its benefit seems to
be primarily psychological.  But it seems more or less harmless as long as
it's designed right, and I'll probably implement it.



Received: by above.proper.com (8.9.3/8.9.3) id MAA16893 for ietf-imapext-bks; Mon, 21 May 2001 12:24:10 -0700 (PDT)
Received: from mail.mediagate.com (IDENT:mirapoint@mg209-157-115-244.mediagate.com [209.157.115.244] (may be forged)) by above.proper.com (8.9.3/8.9.3) with ESMTP id MAA16889 for <ietf-imapext@imc.org>; Mon, 21 May 2001 12:24:04 -0700 (PDT)
Received: from mediagate.com ([209.157.115.130]) by mail.mediagate.com (Mirapoint) with ESMTP id AAE03478 (AUTH jutta_degener); Mon, 21 May 2001 12:24:03 -0700 (PDT)
Message-ID: <3B096BD0.4E5FCA99@mediagate.com>
Date: Mon, 21 May 2001 12:26:08 -0700
From: Jutta Degener <jutta.degener@mediagate.com>
Organization: Mediagate
X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
CC: ietf-imapext@imc.org
Subject: offset and size domain in partial BINARY fetch
References: <200105182124.f4ILORho082353@gollum.esys.ca>
Content-Type: text/plain; charset=us-ascii
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>

Lyndon Nerenberg wrote:
>  http://research.messagingdirect.com/draft-nerenberg-imap-binary-03.txt

I'm worried about the <partial> addressing in BINARY.  This one here:

#    BINARY[<section_binary>]<<partial>>
#         Requests that the specified body section be transmitted after
#         performing CTE-related decoding.
#
#         When performing a partial FETCH, the offset argument refers to
#         the offset into the ENCODED body section.

This seems next-to-useless, since I can't predict where to legally
"break" in a base64- or quoted-printable encoded document without
examining the document itself.  (In base64, line length may vary;
in quoted-printable, encoded length depends on the data.)

What my client _would_ need would be a way of getting "the next block
of decoded binary".  That is, in my ideal world, the offset argument
would refer to the offset into the DECODED body section, not the
encoded one.

I suspect the current definition comes from a desire to reduce the
burden on the server, but I think we've already abandoned that strategy
when we admitted that the binary SIZE would have to be exact, rather
than just an educated guess. I'd rather have something useful but
potentially expensive than something fast, but useless.

Thoughts?

Jutta Degener
<jutta@mediagate.com>


Received: by above.proper.com (8.9.3/8.9.3) id OAA25114 for ietf-imapext-bks; Fri, 18 May 2001 14:24:45 -0700 (PDT)
Received: from gollum.esys.ca (dhcp198-52.esys.ca [198.161.92.52]) by above.proper.com (8.9.3/8.9.3) with ESMTP id OAA25108 for <ietf-imapext@imc.org>; Fri, 18 May 2001 14:24:38 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by gollum.esys.ca (8.12.0.Beta5/8.11.3) with ESMTP id f4ILORho082353 for <ietf-imapext@imc.org>; Fri, 18 May 2001 15:24:27 -0600 (MDT) (envelope-from lyndon@gollum.esys.ca)
Message-Id: <200105182124.f4ILORho082353@gollum.esys.ca>
From: Lyndon Nerenberg <lyndon@messagingdirect.com>
To: ietf-imapext@imc.org
Subject: BINARY version 3
X-URL: http://www.aciworldwide.com/
Organization: ACI Worldwide
Date: Fri, 18 May 2001 15:24:27 -0600
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

I've submitted the -03 revision to the I-D editor. You can take an
early peek via:

 http://research.messagingdirect.com/draft-nerenberg-imap-binary-03.txt

The major change is the replacement of the horrid BINARYSTRUCTURE goop
with the new BINARY.SIZE attribute.

--lyndon


Received: by above.proper.com (8.9.3/8.9.3) id MAA29874 for ietf-imapext-bks; Wed, 30 May 2001 12:12:43 -0700 (PDT)
Received: from Tomobiki-Cho.CAC.Washington.EDU (den@tomobiki-cho.cac.washington.edu [128.95.135.58]) by above.proper.com (8.9.3/8.9.3) with ESMTP id MAA29861 for <ietf-imapext@imc.org>; Wed, 30 May 2001 12:12:32 -0700 (PDT)
Date: Wed, 30 May 2001 11:59:04 -0700 (PDT)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: Re: draft-ietf-imapext-thread
To: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
cc: ietf-imapext@imc.org
In-Reply-To: <20010530111859.A26726@melkebalanse.troll.no>
Message-ID: <MailManager.991249144.15779.mrc@Ikkoku-Kan.Panda.COM>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
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>

The problem is that threads are not like other types of data.  A message that
was not previously in a thread could join the thread as the result of the
addition of another message.  Put another way, a message's "thread status"
depends upon other messages.

Consequently, "thread status" is not at all per-message metadata.  It is
mailbox metadata.  If you subset the messages considered by the THREAD
command, the resulting tree is metadata for that subset, and not for any other
set (including a superset of that subset).

There isn't any known algorithm to update thread metadata with new messages,
either on a global or a per-message basis.  The only known way is to
recalculate the entire thread tree; and if the client needs to know it, to
transmit the entire tree to the client.



Received: by above.proper.com (8.9.3/8.9.3) id CAA13147 for ietf-imapext-bks; Wed, 30 May 2001 02:19:47 -0700 (PDT)
Received: from melkebalanse.troll.no (ns.ntm-gmbh.de [213.69.168.98]) by above.proper.com (8.9.3/8.9.3) with ESMTP id CAA13136 for <ietf-imapext@imc.org>; Wed, 30 May 2001 02:19:40 -0700 (PDT)
Received: (from arnt@localhost) by melkebalanse.troll.no (8.9.3/8.8.5) id LAA26733; Wed, 30 May 2001 11:18:59 +0200
Date: Wed, 30 May 2001 11:18:59 +0200
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: Mark Crispin <MRC@cac.washington.edu>
Cc: ietf-imapext@imc.org
Subject: Re: draft-ietf-imapext-thread
Message-ID: <20010530111859.A26726@melkebalanse.troll.no>
References: <20010529223543.E26574@melkebalanse.troll.no> <MailManager.991169858.2809.mrc@Tomobiki-Cho.CAC.Washington.EDU>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <MailManager.991169858.2809.mrc@Tomobiki-Cho.CAC.Washington.EDU>
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

Mark Crispin <MRC@CAC.Washington.EDU>
> Did you notice that the last argument specifies what messages are to be
> threaded?  So if you only want to thread new messages, you can do:
> 	THREAD REFERENCES UTF-8 NEW

The sound you hear is me kicking myself.

> > The thread=references model specifies an algorithm to be used, in detail,
> > and that algorithm is one that makes several passes over the entire set of
> > messages.  The algorithm is complex, and it's not clear to me whether it
> > can be adapted to be incremental without possibly changing its output, and
> > whether such changes are permitted by the draft.
> 
> That's the problem -- a newly-arrived message can completely change the thread
> tree.  It's therefore quite possible that an "incremental" change (one that
> simply says what is different from the previous tree) is larger in size that
> the previous tree.
> 
> To complicate matters, there is no obvious algorithm for determining how a
> newly arrived message would change the tree; without such an algorithm, you
> have to rethread on the server, and then do a comparison between the old and
> new tree.

I don't think we're talking about the same thing here. You seem to assume
that clients want thread information about the entire mailbox, and that
the question is whether servers can save bandwidth by transmitting changes
to the tree, rather than resending the entire three.  Right?

Well, I am concerned about whether the server can do thread processing at
message delivery time, so that processing a thread request becomes as
cheap as e.g. "fetch flags". I'm concerned about this because I want to do
lots of small thread requests (examples below), and I can't do that if
they're expensive.

> This has been the flaw in the arguments for "subsetting"; you can only
> "subset" in the simplest cases.  It turns out that the only meaningful
> subsetting is on a static tree, which makes subsetting much less valuable than
> its proponents claim.

Actually, subsetting would help with the cases I'm most interested in,
particularly if the server is permitted to also return answers outside the
requested set:  "Show me all the threads where there's new mail", "show me
all the messages from mumble@gargle.com, and the threads to which those
messages belong", "show me all discussion in our department-wide archive
where the subject included 'fumble'" and so on.

> > So, if a server does incremental References:-based threading on delivery,
> > can it advertise thread=references?
> 
> I don't know what that means.

Let me try again.

If an IMAP server keeps thread information in the persistent messages
store, and updates that information when a message is written into the
message store, is it possible for that server to comply with the draft's
requirements and advertise thread=references?

I read the draft more carefully last night, and it looks very difficult.
Steps 3-6 have to be done when the client requests thread information, if
I understand it correctly.

--Arnt


Received: by above.proper.com (8.9.3/8.9.3) id OAA14422 for ietf-imapext-bks; Tue, 29 May 2001 14:06:46 -0700 (PDT)
Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by above.proper.com (8.9.3/8.9.3) with ESMTP id OAA14407 for <ietf-imapext@imc.org>; Tue, 29 May 2001 14:06:40 -0700 (PDT)
Received: from mailhost1.u.washington.edu (mailhost1.u.washington.edu [140.142.32.2]) by mxout2.cac.washington.edu (8.11.2+UW01.01/8.11.2+UW01.04) with ESMTP id f4TL6go16094; Tue, 29 May 2001 14:06:43 -0700
Received: from Tomobiki-Cho.CAC.Washington.EDU (murphy@tomobiki-cho.cac.washington.edu [128.95.135.58]) by mailhost1.u.washington.edu (8.11.2+UW01.01/8.11.2+UW01.04) with ESMTP id f4TL6gi20039; Tue, 29 May 2001 14:06:42 -0700
Date: Tue, 29 May 2001 13:57:38 -0700 (PDT)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: re: draft-ietf-imapext-thread
To: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
cc: ietf-imapext@imc.org
In-Reply-To: <20010529223543.E26574@melkebalanse.troll.no>
Message-ID: <MailManager.991169858.2809.mrc@Tomobiki-Cho.CAC.Washington.EDU>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
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, 29 May 2001 22:35:43 +0200, Arnt Gulbrandsen wrote:
> The thread extension offers no way to get threading information for only
> some mail (typically, the newly arrived messages).  Isn't this a problem?

Did you notice that the last argument specifies what messages are to be
threaded?  So if you only want to thread new messages, you can do:
	THREAD REFERENCES UTF-8 NEW

However, usually ALL is used, because you want to thread in context.

> The thread=references model specifies an algorithm to be used, in detail,
> and that algorithm is one that makes several passes over the entire set of
> messages.  The algorithm is complex, and it's not clear to me whether it
> can be adapted to be incremental without possibly changing its output, and
> whether such changes are permitted by the draft.

That's the problem -- a newly-arrived message can completely change the thread
tree.  It's therefore quite possible that an "incremental" change (one that
simply says what is different from the previous tree) is larger in size that
the previous tree.

To complicate matters, there is no obvious algorithm for determining how a
newly arrived message would change the tree; without such an algorithm, you
have to rethread on the server, and then do a comparison between the old and
new tree.

This has been the flaw in the arguments for "subsetting"; you can only
"subset" in the simplest cases.  It turns out that the only meaningful
subsetting is on a static tree, which makes subsetting much less valuable than
its proponents claim.  That's why subsetting hasn't been particularly
interesting to the people who've actually implemented server-based sorting and
threading; it's one of those things that sounds better on paper than in
reality.

> So, if a server does incremental References:-based threading on delivery,
> can it advertise thread=references?

I don't know what that means.



Received: by above.proper.com (8.9.3/8.9.3) id NAA11273 for ietf-imapext-bks; Tue, 29 May 2001 13:36:22 -0700 (PDT)
Received: from melkebalanse.troll.no (bluegrass.camelot.de [217.19.165.66]) by above.proper.com (8.9.3/8.9.3) with ESMTP id NAA11254 for <ietf-imapext@imc.org>; Tue, 29 May 2001 13:36:12 -0700 (PDT)
Received: (from arnt@localhost) by melkebalanse.troll.no (8.9.3/8.8.5) id WAA26615; Tue, 29 May 2001 22:35:43 +0200
Date: Tue, 29 May 2001 22:35:43 +0200
From: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>
To: ietf-imapext@imc.org
Subject: draft-ietf-imapext-thread
Message-ID: <20010529223543.E26574@melkebalanse.troll.no>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
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>

The thread extension offers no way to get threading information for only
some mail (typically, the newly arrived messages).  Isn't this a problem?

The thread=references model specifies an algorithm to be used, in detail,
and that algorithm is one that makes several passes over the entire set of
messages.  The algorithm is complex, and it's not clear to me whether it
can be adapted to be incremental without possibly changing its output, and
whether such changes are permitted by the draft.

So, if a server does incremental References:-based threading on delivery,
can it advertise thread=references?

--Arnt


Received: by above.proper.com (8.9.3/8.9.3) id OAA07158 for ietf-imapext-bks; Tue, 22 May 2001 14:30:43 -0700 (PDT)
Received: from gollum.esys.ca (dhcp198-52.esys.ca [198.161.92.52]) by above.proper.com (8.9.3/8.9.3) with ESMTP id OAA07147 for <ietf-imapext@imc.org>; Tue, 22 May 2001 14:30:38 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by gollum.esys.ca (8.12.0.Beta5/8.11.3) with ESMTP id f4MLUR8K001874 for <ietf-imapext@imc.org>; Tue, 22 May 2001 15:30:27 -0600 (MDT) (envelope-from lyndon@gollum.esys.ca)
Message-Id: <200105222130.f4MLUR8K001874@gollum.esys.ca>
From: Lyndon Nerenberg <lyndon@messagingdirect.com>
Organization: ACI Worldwide
X-URL: http://www.aciworldwide.com/
to: ietf-imapext@imc.org
Subject: Re: offset and size domain in partial BINARY fetch 
In-Reply-To: Message from Jutta Degener <jutta.degener@mediagate.com>  of "Mon, 21 May 2001 12:26:08 PDT." <3B096BD0.4E5FCA99@mediagate.com> 
Date: Tue, 22 May 2001 15:30:27 -0600
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>

>>>>> "Jutta" == Jutta Degener <jutta.degener@mediagate.com> writes:

    Jutta> I'm worried about the <partial> addressing in BINARY.
           [...]
    Jutta> This seems next-to-useless

Yes. This was a holdover from when the reference was to the
encoded section. Based on the feedback from -03 I've made
the following changes:

* Offsets now refer to the DEcoded content.
* Removed partials from BINARY.SIZE.

These have been rolled up into a -04 version. Additional changes
include:

* UNKNOWN-TRANSFER-ENCODING changed to UNKNOWN-CTE.
* msg_att grammar added.
* <section_binary> element removed. BINARY now uses
  <section>, and text has been added to clarify what
  it means to binary fetch things like message headers.

The preview version is at http://research.messagingdirect.com/

--lyndon


Received: by above.proper.com (8.9.3/8.9.3) id KAA24343 for ietf-imapext-bks; Tue, 22 May 2001 10:19:05 -0700 (PDT)
Received: from gollum.esys.ca (dhcp198-52.esys.ca [198.161.92.52]) by above.proper.com (8.9.3/8.9.3) with ESMTP id KAA24326 for <ietf-imapext@imc.org>; Tue, 22 May 2001 10:18:57 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by gollum.esys.ca (8.12.0.Beta5/8.11.3) with ESMTP id f4MHId8K000959; Tue, 22 May 2001 11:18:40 -0600 (MDT) (envelope-from lyndon@gollum.esys.ca)
Message-Id: <200105221718.f4MHId8K000959@gollum.esys.ca>
From: Lyndon Nerenberg <lyndon@messagingdirect.com>
Organization: ACI Worldwide
X-URL: http://www.aciworldwide.com/
To: Jutta Degener <jutta.degener@mediagate.com>
cc: ietf-imapext@imc.org
Subject: Re: offset and size domain in partial BINARY fetch 
In-Reply-To: Message from Jutta Degener <jutta.degener@mediagate.com>  of "Mon, 21 May 2001 12:26:08 PDT." <3B096BD0.4E5FCA99@mediagate.com> 
Date: Tue, 22 May 2001 11:18:39 -0600
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>

>>>>> "Jutta" == Jutta Degener <jutta.degener@mediagate.com> writes:

    Jutta> What my client _would_ need would be a way of getting "the
    Jutta> next block of decoded binary".  That is, in my ideal world,
    Jutta> the offset argument would refer to the offset into the
    Jutta> DECODED body section, not the encoded one.

Good point. The use of encoded offsets is a holdover from the
previous draft, where there was no guarantee of an accurate
(or any) decoded size being reported. Now that an accurate size
is required from the server, I'll change the offset to refer to
the decoded object.

--lyndon


Received: by above.proper.com (8.9.3/8.9.3) id MAA17632 for ietf-imapext-bks; Mon, 21 May 2001 12:43:16 -0700 (PDT)
Received: from Tomobiki-Cho.CAC.Washington.EDU (kung@tomobiki-cho.cac.washington.edu [128.95.135.58]) by above.proper.com (8.9.3/8.9.3) with ESMTP id MAA17624 for <ietf-imapext@imc.org>; Mon, 21 May 2001 12:43:10 -0700 (PDT)
Date: Mon, 21 May 2001 12:32:12 -0700 (PDT)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: re: offset and size domain in partial BINARY fetch
To: Jutta Degener <jutta.degener@mediagate.com>
cc: ietf-imapext@imc.org
In-Reply-To: <3B096BD0.4E5FCA99@mediagate.com>
Message-ID: <MailManager.990473532.15779.mrc@Ikkoku-Kan.Panda.COM>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
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 agree with Jutta's analysis.  I don't see much point in the BINARY extension
at all if partial fetches use the encoded section values.

A server is probably going to cache the decoded binary content anyway, rather
than decode on the fly (or do that more than once).  Nor does the requirement
for encoded section offset/size save the server any work; it probably adds
more work.  Remember that both QP and B64 are stateful; you have to know the
state at a particular byte in order to decode correctly.

Not that I see much point in the BINARY extension anyway; its benefit seems to
be primarily psychological.  But it seems more or less harmless as long as
it's designed right, and I'll probably implement it.



Received: by above.proper.com (8.9.3/8.9.3) id MAA16893 for ietf-imapext-bks; Mon, 21 May 2001 12:24:10 -0700 (PDT)
Received: from mail.mediagate.com (IDENT:mirapoint@mg209-157-115-244.mediagate.com [209.157.115.244] (may be forged)) by above.proper.com (8.9.3/8.9.3) with ESMTP id MAA16889 for <ietf-imapext@imc.org>; Mon, 21 May 2001 12:24:04 -0700 (PDT)
Received: from mediagate.com ([209.157.115.130]) by mail.mediagate.com (Mirapoint) with ESMTP id AAE03478 (AUTH jutta_degener); Mon, 21 May 2001 12:24:03 -0700 (PDT)
Message-ID: <3B096BD0.4E5FCA99@mediagate.com>
Date: Mon, 21 May 2001 12:26:08 -0700
From: Jutta Degener <jutta.degener@mediagate.com>
Organization: Mediagate
X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
CC: ietf-imapext@imc.org
Subject: offset and size domain in partial BINARY fetch
References: <200105182124.f4ILORho082353@gollum.esys.ca>
Content-Type: text/plain; charset=us-ascii
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>

Lyndon Nerenberg wrote:
>  http://research.messagingdirect.com/draft-nerenberg-imap-binary-03.txt

I'm worried about the <partial> addressing in BINARY.  This one here:

#    BINARY[<section_binary>]<<partial>>
#         Requests that the specified body section be transmitted after
#         performing CTE-related decoding.
#
#         When performing a partial FETCH, the offset argument refers to
#         the offset into the ENCODED body section.

This seems next-to-useless, since I can't predict where to legally
"break" in a base64- or quoted-printable encoded document without
examining the document itself.  (In base64, line length may vary;
in quoted-printable, encoded length depends on the data.)

What my client _would_ need would be a way of getting "the next block
of decoded binary".  That is, in my ideal world, the offset argument
would refer to the offset into the DECODED body section, not the
encoded one.

I suspect the current definition comes from a desire to reduce the
burden on the server, but I think we've already abandoned that strategy
when we admitted that the binary SIZE would have to be exact, rather
than just an educated guess. I'd rather have something useful but
potentially expensive than something fast, but useless.

Thoughts?

Jutta Degener
<jutta@mediagate.com>


Received: by above.proper.com (8.9.3/8.9.3) id OAA25114 for ietf-imapext-bks; Fri, 18 May 2001 14:24:45 -0700 (PDT)
Received: from gollum.esys.ca (dhcp198-52.esys.ca [198.161.92.52]) by above.proper.com (8.9.3/8.9.3) with ESMTP id OAA25108 for <ietf-imapext@imc.org>; Fri, 18 May 2001 14:24:38 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by gollum.esys.ca (8.12.0.Beta5/8.11.3) with ESMTP id f4ILORho082353 for <ietf-imapext@imc.org>; Fri, 18 May 2001 15:24:27 -0600 (MDT) (envelope-from lyndon@gollum.esys.ca)
Message-Id: <200105182124.f4ILORho082353@gollum.esys.ca>
From: Lyndon Nerenberg <lyndon@messagingdirect.com>
To: ietf-imapext@imc.org
Subject: BINARY version 3
X-URL: http://www.aciworldwide.com/
Organization: ACI Worldwide
Date: Fri, 18 May 2001 15:24:27 -0600
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

I've submitted the -03 revision to the I-D editor. You can take an
early peek via:

 http://research.messagingdirect.com/draft-nerenberg-imap-binary-03.txt

The major change is the replacement of the horrid BINARYSTRUCTURE goop
with the new BINARY.SIZE attribute.

--lyndon

