
Received: by ns.secondary.com (8.9.3/8.9.3) id OAA17072 for ietf-imapext-bks; Sun, 21 Jan 2001 14:20:14 -0800 (PST)
Received: from episteme-software.com (presnick-fw.flexabit.net [64.198.230.34]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id OAA17068 for <ietf-imapext@imc.org>; Sun, 21 Jan 2001 14:20:12 -0800 (PST)
Received: from [64.198.230.35] (64.198.230.35) by episteme-software.com with ESMTP (Eudora Internet Mail Server 3.0.2); Sun, 21 Jan 2001 16:25:41 -0600
Mime-Version: 1.0
X-Sender: resnick@resnick1.qualcomm.com (Unverified)
Message-Id: <a05100800b6910c5394e0@[64.198.230.35]>
In-Reply-To: <MailManager.979946961.12670.mrc@Ikkoku-Kan.Panda.COM>
References: <MailManager.979946961.12670.mrc@Ikkoku-Kan.Panda.COM>
X-Mailer: Eudora [Macintosh version 5.1a1-12.00]
Date: Sun, 21 Jan 2001 16:25:38 -0600
To: Mark Crispin <MRC@cac.washington.edu>
From: Pete Resnick <presnick@qualcomm.com>
Subject: re: Delete-Expunge (Was: Move?)
Cc: ietf-imapext@imc.org
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
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 1/19/01 at 3:29 PM -0800, Mark Crispin wrote:

>Let me ask you again; would SHOULD type wording such as that above be
>satisfactory for your purposes?  You're invited to suggest any wordsmithing.

I think a SHOULD is asking for someone to violate it. However, I 
don't think we need a MUST to solve the problem. Let me suggest the 
following:

2.3.2: Change the description of the deleted flag to:

         \Deleted
            Message is marked for deletion, removed by later EXPUNGE or CLOSE

That makes it explicit that the message is removed by all and only 
the EXPUNGE and CLOSE commands.

7.4.1: Change the description of the EXPUNGE response to:

       The EXPUNGE response reports that the specified message sequence
       number has been permanently removed from the mailbox.  This response
       This response occurs as the result of EXPUNGE or CLOSE command.

       Note: Even though a message with the \Deleted flag set is not removed
       until an EXPUNGE or CLOSE is issued, untagged EXPUNGE responses
       may be the result of EXPUNGE or CLOSE commands issued in another
       session. In particular, a client MUST NOT assume that messages with the
       \Deleted flag will not be expunged simply because that client 
did not issue
       an EXPUNGE or CLOSE.

       Upon receipt of an EXPUNGE response, the message sequence number...

Now, we haven't issued any unenforceable directives. We've just very 
specifically defined the semantics of \Deleted and the EXPUNGE 
response. No MUSTs or SHOULDs; just explicit definition of the 
semantics.

pr

-- 
Pete Resnick <mailto:presnick@qualcomm.com>
Eudora Engineering - QUALCOMM Incorporated
Ph: (217)337-6377 or (858)651-4478, Fax: (858)651-1102


Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id PAA07516 for ietf-imapext-bks; Fri, 19 Jan 2001 15:49:16 -0800 (PST)
Received: from Tomobiki-Cho.CAC.Washington.EDU (tonyb@tomobiki-cho.cac.washington.edu [128.95.135.58]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id PAA07511 for <ietf-imapext@imc.org>; Fri, 19 Jan 2001 15:49:15 -0800 (PST)
Date: Fri, 19 Jan 2001 15:29:21 -0800 (PST)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: re: Delete-Expunge (Was: Move?)
To: Pete Resnick <presnick@qualcomm.com>
cc: ietf-imapext@imc.org
In-Reply-To: <a05100804b68e4f20e537@[64.198.230.35]>
Message-ID: <MailManager.979946961.12670.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>

On Fri, 19 Jan 2001 14:43:12 -0600, Pete Resnick wrote:
> >Unfortunately, I do not believe that it is as easy as telling client
> >writers "servers are only allowed to expunge when they are explicitly told
> >to do so."
> I can tell you for us, if we had the statement in the RFC, we would
> do it. It would actually turn out to be less work for us to do it
> only the "IMAP way".

Please believe me when I say that I would like very much to make such a
statement, especially if it induces Qualcomm to make Eudora only use the
delete-expunge mechanism.

My problem is that I don't think that I can make such a statement, or at least
I don't think that I can make it a MUST.

Would you settle for a SHOULD?

For example:
	A server SHOULD NOT unilaterally expunge deleted messages from
	a mailbox unless it receives an EXPUNGE or CLOSE command from
	a client session that has that mailbox selected.  The server
	SHOULD retain deleted messages, with the \Deleted flag set,
	across multiple sessions until an explicit EXPUNGE or CLOSE is
	issued.

	Note that an EXPUNGE or CLOSE in one session MAY cause the
	messages to be removed in all sessions which have that mailbox
	selected.  In particular, a client MUST NOT assume that
	messages will not be expunged unless it issues an EXPUNGE or
	CLOSE.

> The
> only sense in which this is enforceable is that servers which fail to
> follow the directive will behave badly and will get beat up on.

Exactly, but I believe that in this case we are talking BCP and SHOULD, not
MUST.

> Similarly, we can say (if we want) that a successful STORE of a
> \Deleted flag for a message doesn't mean "Mark this for deletion and
> expunge it whenever you feel like it", but rather "Mark this for
> deletion and expunge it when you get an EXPUNGE or CLOSE command."

Historically, the former was the original intent; but the latter is what
everybody seems to have implemented.  There hasn't been much call for a long
time for systemwide auto-EXPUNGE when the disk is full.  Although who knows,
maybe someone will want to do that (ref. certain other messages in this
thread).

> 1. They performed the action in their client which called the EXPUNGE
> or CLOSE command.
> 2. Someone else who shared the mailbox did an EXPUNGE or CLOSE command.
> 3. Their server is not following the IMAP standard.
> We all have to code (and document to the user) dealing with things of
> type 1 and 2. Things of type 3 we can dismiss.

Except that, all the time, we have people who defy the standards with such
statements as "the standards are no good if they get in the way of doing
work."  Just the other day, I had someone wanting me to add "AW:" as an
alternative to "re:" because some broken software in Germany writes it.

> Indeed, by the same people that I initially asked about this
> behavior, I was told that any server that did would be soundly
> beat-up on by the community.

In my observation, practices which are "soundly beat-up on by the community"
become "widely accepted" just a few years later; and such practices that are
enshrined in standards result in the standards being defied or criticized.

If I am so unfortunate as to have to still be defending stipulations in IMAP
10 years from now, I need stronger consensus and support than this.  I've been
burnt a lot by this in the past, and I don't want

> My argument
> is that if we already believe auto-EXPUNGE is prohibited behavior, we
> should document that.

I don't consider it prohibited.  I consider it bad, unfortunate, and totally
unsuitable for any software I would use.  But compliant client software
handles it just fine, and thus I see the issue as one of implementor morality
rather than harm.

Let me ask you again; would SHOULD type wording such as that above be
satisfactory for your purposes?  You're invited to suggest any wordsmithing.
Also, does anyone object to text such as this?



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id OAA06418 for ietf-imapext-bks; Fri, 19 Jan 2001 14:45:20 -0800 (PST)
Received: from episteme-software.com (presnick-fw.flexabit.net [64.198.230.34]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id OAA06414 for <ietf-imapext@imc.org>; Fri, 19 Jan 2001 14:45:18 -0800 (PST)
Received: from [64.198.230.35] (64.198.230.35) by episteme-software.com with ESMTP (Eudora Internet Mail Server 3.0.2); Fri, 19 Jan 2001 14:43:16 -0600
Mime-Version: 1.0
X-Sender: resnick@resnick1.qualcomm.com (Unverified)
Message-Id: <a05100804b68e4f20e537@[64.198.230.35]>
In-Reply-To: <MailManager.979926280.12670.mrc@Ikkoku-Kan.Panda.COM>
References: <MailManager.979926280.12670.mrc@Ikkoku-Kan.Panda.COM>
X-Mailer: Eudora [Macintosh version 5.1a1-12.00]
Date: Fri, 19 Jan 2001 14:43:12 -0600
To: Mark Crispin <MRC@cac.washington.edu>
From: Pete Resnick <presnick@qualcomm.com>
Subject: re: Delete-Expunge (Was: Move?)
Cc: ietf-imapext@imc.org
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
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 1/19/01 at 9:44 AM -0800, Mark Crispin wrote:

>Unfortunately, I do not believe that it is as easy as telling client writers
>"servers are only allowed to expunge when they are explicitly told to do so."

I can tell you for us, if we had the statement in the RFC, we would 
do it. It would actually turn out to be less work for us to do it 
only the "IMAP way".

>Yes, "it is compliant behavior according to the IMAP specification 
>for a server to expunge messages which are marked \Deleted even if 
>it receives no EXPUNGE or CLOSE command and even if the mailbox is 
>not shared."  It is compliant because it is not explicitly 
>forbidden.  It is not forbidden because such a prohibition is 
>unenforceable.

Let's start from the end: unenforceability. Take the case of SMTP. 
RFC 1123 says:

       5.3.3  Reliable Mail Receipt

          When the receiver-SMTP accepts a piece of mail (by sending a
          "250 OK" message in response to DATA), it is accepting
          responsibility for delivering or relaying the message.  It must
          take this responsibility seriously, i.e., it MUST NOT lose the
          message for frivolous reasons, e.g., because the host later
          crashes or because of a predictable resource shortage.

Now you could say, "This requirement is unenforceable; a client can't 
tell the difference between a server that loses the message for 
frivolous reasons rather than for good reasons. Therefore, this 
shouldn't have ever been explicitly forbidden." That's nonsense. The 
only sense in which this is enforceable is that servers which fail to 
follow the directive will behave badly and will get beat up on. We're 
not defining syntactic requirements here which are visible from the 
wire; we're defining semantic requirements. A successful DATA command 
doesn't mean "this message has been accepted if I feel like it". It 
is defined as meaning "this message has been accepted and I won't 
lose it for frivolous reasons."

Similarly, we can say (if we want) that a successful STORE of a 
\Deleted flag for a message doesn't mean "Mark this for deletion and 
expunge it whenever you feel like it", but rather "Mark this for 
deletion and expunge it when you get an EXPUNGE or CLOSE command."

>How can a client know that an unexpected EXPUNGE of messages 
>occurred because of the server's capricious behavior, as opposed to 
>some other client having issued an EXPUNGE?  It can't.

Absolutely irrelevant. A client can't tell the difference and must be 
coded to accept untagged EXPUNGE responses. But if the requirement 
were in the document, the user could be guaranteed that if they mark 
a message for deletion (i.e., put it in the virtual "Trash"), it 
won't be expunged unless:

1. They performed the action in their client which called the EXPUNGE 
or CLOSE command.
2. Someone else who shared the mailbox did an EXPUNGE or CLOSE command.
3. Their server is not following the IMAP standard.

We all have to code (and document to the user) dealing with things of 
type 1 and 2. Things of type 3 we can dismiss. We can't crash or do 
something stupid, but we can sure tell our users, "Sorry, your server 
is broken. We're not going to write some special Trash mailbox code 
to fix it."

>I don't know of any server that auto-EXPUNGEs...

Indeed, by the same people that I initially asked about this 
behavior, I was told that any server that did would be soundly 
beat-up on by the community. That fact ought to be documented.

>but there's probably someone out there who would consider it 
>capricious to prohibit server auto-EXPUNGE. Observing that all 
>clients are required to handle the event anyway, he'll just ignore 
>the prohibition.

Implementors ignore countless prohibitions in standards now. That's 
utterly irrelevant too. That a prohibition exists defines what the 
community thinks are the standards of protocol behavior. My argument 
is that if we already believe auto-EXPUNGE is prohibited behavior, we 
should document that. We have to code around stupidity of some broken 
implementations, but having the ability to call something broken goes 
a long way.

If we all believe that auto-EXPUNGE is wrong, please document that.

pr

-- 
Pete Resnick <mailto:presnick@qualcomm.com>
Eudora Engineering - QUALCOMM Incorporated
Ph: (217)337-6377 or (858)651-4478, Fax: (858)651-1102


Received: by ns.secondary.com (8.9.3/8.9.3) id LAA01970 for ietf-imapext-bks; Fri, 19 Jan 2001 11:34:30 -0800 (PST)
Received: from episteme-software.com (presnick-fw.flexabit.net [64.198.230.34]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA01965 for <ietf-imapext@imc.org>; Fri, 19 Jan 2001 11:34:29 -0800 (PST)
Received: from [64.198.230.35] (64.198.230.35) by episteme-software.com with ESMTP (Eudora Internet Mail Server 3.0.2); Fri, 19 Jan 2001 10:28:39 -0600
Mime-Version: 1.0
X-Sender: resnick@resnick1.qualcomm.com (Unverified)
Message-Id: <a05100803b68e18660965@[64.198.230.35]>
In-Reply-To: <MailManager.979853626.11673.mrc@Ikkoku-Kan.Panda.COM>
References: <MailManager.979853626.11673.mrc@Ikkoku-Kan.Panda.COM>
X-Mailer: Eudora [Macintosh version 5.1a1-12.00]
Date: Fri, 19 Jan 2001 10:28:37 -0600
To: Mark Crispin <MRC@cac.washington.edu>
From: Pete Resnick <presnick@qualcomm.com>
Subject: Delete-Expunge (Was: Move?)
Cc: ietf-imapext@imc.org
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
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 1/18/01 at 1:33 PM -0800, Mark Crispin wrote:

>You are confusing a user interface (and server storage) issue with a 
>protocol issue.  The client can present a "Trash" view to the user, 
>while still using the IMAP delete-expunge model.  It should; and 
>most clients do.

While you're trying to get the IMAP rev to last call, this might be a 
good time to ask:

There is a reason client writers provide a "Trash" mailbox mode 
instead of the IMAP delete-expunge mode. (Eudora, BTW, provides both 
modes.) I have heard the claim that it is compliant behavior 
according to the IMAP specification for a server to expunge messages 
which are marked \Deleted even if it receives no EXPUNGE or CLOSE 
command and even if the mailbox is not shared. Now, I carefully went 
through imapv-14 yesterday looking for support for this claim. There 
are several notes about untagged EXPUNGE responses that I might 
interpret to mean this, but there was no direct note one way or the 
other.

If it is true that servers can expunge at will, then there is no way 
to achieve the semantics of a "Trash" mailbox with the IMAP 
delete-expunge model: There is no way to say, "Mark this message for 
deletion and permanently delete it only when I tell you to." If the 
widespread belief is not true, and servers (barring nasty error 
conditions) are only allowed to expunge when they are explicitly told 
to, that should be clarified in the spec. I firmly believe that with 
such assurance, clients will stop playing this "Trash" mailbox game.

pr

-- 
Pete Resnick <mailto:presnick@qualcomm.com>
Eudora Engineering - QUALCOMM Incorporated
Ph: (217)337-6377 or (858)651-4478, Fax: (858)651-1102


Received: by ns.secondary.com (8.9.3/8.9.3) id KAA00945 for ietf-imapext-bks; Fri, 19 Jan 2001 10:40:02 -0800 (PST)
Received: from Tomobiki-Cho.CAC.Washington.EDU (pth@tomobiki-cho.cac.washington.edu [128.95.135.58]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id KAA00941 for <ietf-imapext@imc.org>; Fri, 19 Jan 2001 10:40:01 -0800 (PST)
Date: Fri, 19 Jan 2001 09:44:40 -0800 (PST)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: re: Delete-Expunge (Was: Move?)
To: Pete Resnick <presnick@qualcomm.com>
cc: ietf-imapext@imc.org
In-Reply-To: <a05100803b68e18660965@[64.198.230.35]>
Message-ID: <MailManager.979926280.12670.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>

Unfortunately, I do not believe that it is as easy as telling client writers
"servers are only allowed to expunge when they are explicitly told to do so."
I have had client writers tell me in no uncertain terms that they use a
"Trash" mailbox because it's less work for them to program it that way.

I don't see that situation changing, because "less work for me" is a powerful
motivator.  That is what is behind the demands for message MOVE and DELETE
operators.

Yes, "it is compliant behavior according to the IMAP specification for a
server to expunge messages which are marked \Deleted even if it receives no
EXPUNGE or CLOSE command and even if the mailbox is not shared."  It is
compliant because it is not explicitly forbidden.  It is not forbidden because
such a prohibition is unenforceable.

How can a client know that an unexpected EXPUNGE of messages occurred because
of the server's capricious behavior, as opposed to some other client having
issued an EXPUNGE?  It can't.

It's clearly possible for another client to issue an EXPUNGE.  Quite a bit of
protocol work was expended on stipulating when an unsolicited EXPUNGE can
happen.  None of that would have been necessary if shared EXPUNGE was
prohibited (as shared access is in POP3); but it was clear that people wanted
shared EXPUNGE.

I don't know of any server that auto-EXPUNGEs, but there's probably someone
out there who would consider it capricious to prohibit server auto-EXPUNGE.
Observing that all clients are required to handle the event anyway, he'll just
ignore the prohibition.



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id EAA08552 for ietf-imapext-bks; Fri, 19 Jan 2001 04:14:34 -0800 (PST)
Received: from bbnrel4.net.external.hp.com (bbnrel4.net.external.hp.com [155.208.254.68]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id EAA08542 for <ietf-imapext@imc.org>; Fri, 19 Jan 2001 04:14:31 -0800 (PST)
Received: from hpopd.pwd.hp.com (hpopd.pwd.hp.com [15.145.205.59]) by bbnrel4.net.external.hp.com (Postfix) with ESMTP id A297122797 for <ietf-imapext@imc.org>; Fri, 19 Jan 2001 13:20:17 +0100 (MET)
Received: from hpopd.pwd.hp.com (root@localhost) by hpopd.pwd.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.01 OpenMail) with ESMTP id MAA19792 for <ietf-imapext@imc.org>; Fri, 19 Jan 2001 12:20:16 GMT
X-OpenMail-Authenticated-Sender: <jch@pwd.hp.com> at 15.145.204.106
Received: from pwd.hp.com (ilex.pwd.hp.com 15.145.204.106) by hpopd.pwd.hp.com (OpenMail SMTP Relay X.de.bu.g0) via ESMTP; Fri, 19 Jan 2001 12:20:17 +0000 (GMT)
Message-ID: <3A6830FE.89E0935C@pwd.hp.com>
Date: Fri, 19 Jan 2001 12:20:14 +0000
From: John Haxby <jch@pwd.hp.com>
Organization: OpenMail R&D
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
Cc: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: Move?
References: <MailManager.979861183.11673.mrc@Ikkoku-Kan.Panda.COM>
Content-Type: multipart/mixed; boundary="------------86BF67392CCA2C8ABE2F11C2"
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>

This is a multi-part message in MIME format.
--------------86BF67392CCA2C8ABE2F11C2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Mark Crispin wrote:

> On Thu, 18 Jan 2001 15:12:59 -0800 (PST), Mark Crispin wrote:
> >       1) maximum message size
> >       2) maximum overall long-term storage use
> >       3) maximum transient (short-term) storage use
> >
> > The point being that the second and third values should be quite different.
>
> Another point needs to be made about the first value.  The need for it is to
> prevent a denial of service problem.  It should be impossible for a single
> message to push a user near his second limit to the third limit.

While modifying the server quota model would permit this, you then run into a
selection of interesting extra problems.   For example, how long does the
transient quota last?  Until the next logout?  For five minutes? Until all
current sessions have logged out?   Does (or can) the server know about this
last state?  What if the client crashes half way through the copy/mark/expunge
(as they often do :-) you're then left badly over quota and, depending on the
implementation, this may mean that messages to the user might be rejected.  You
might wind up with two copies of the message because the mark didn't work and
you don't know, then whether the copy is corrupt ...

Suppose, further, you have a Very Large Message, slightly over half the
available free space in the message store.   You cannot copy that, regardless of
any quota systems (fortunately, the better message stores copy references which
neatly gets around this).

Quite apart from the difficulties of designing, yet alone implementing, a quota
scheme that allows copy to work, there are the various temporal difficulties of
not having an atomic move operation in the protocol.  I've mentioned the
crashing one.   There's also the problem of multiple client access (which, as
I've said, is partially addressed by UID+, partially because it requires all
clients to cooperate and use UID+).

The quota problem is really not going be solved without MOVE and/or
DELETE (message) in the protocol, but then there's the slightly harder problem
of getting users to deploy a client that actually uses the extension ... and
this should never be underestimated.   (Various people, Mark mostly, have often
suggested that the client should be fixed to avoid a particular problem, but
have failed to realise that getting, say, 110,000 users to do *anything* is well
nigh impossible.)

jch

--------------86BF67392CCA2C8ABE2F11C2
Content-Type: text/x-vcard; charset=us-ascii;
 name="jch.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for John Haxby
Content-Disposition: attachment;
 filename="jch.vcf"

begin:vcard 
n:Haxby;John
tel;fax:+44 1344 763686
tel;work:+44 1344 763711
x-mozilla-html:FALSE
url:https://ecardfile.com/id/jch
org:OpenMail R&D
adr:;;Hewlett Packard<br>Nine Mile Ride;Wokingham;Berks;RG40 3LL;United Kingdom
version:2.1
email;internet:jch@pwd.hp.com
note;quoted-printable:<em>OpenMail for All!</em>&nbsp=3B<img src=3D"http://www.openmail.com/cyc/om/00/graphics/omlinux.jpg" width=3D53 height=3D62 align=3Dbottom>
x-mozilla-cpt:;25408
fn:John Haxby
end:vcard

--------------86BF67392CCA2C8ABE2F11C2--



Received: by ns.secondary.com (8.9.3/8.9.3) id DAA07320 for ietf-imapext-bks; Fri, 19 Jan 2001 03:59:32 -0800 (PST)
Received: from bbnrel4.net.external.hp.com (bbnrel4.net.external.hp.com [155.208.254.68]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id DAA07314 for <ietf-imapext@imc.org>; Fri, 19 Jan 2001 03:59:30 -0800 (PST)
Received: from hpopd.pwd.hp.com (hpopd.pwd.hp.com [15.145.205.59]) by bbnrel4.net.external.hp.com (Postfix) with ESMTP id 011BE21FB3; Fri, 19 Jan 2001 13:05:11 +0100 (MET)
Received: from hpopd.pwd.hp.com (root@localhost) by hpopd.pwd.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.01 OpenMail) with ESMTP id MAA19001; Fri, 19 Jan 2001 12:04:58 GMT
X-OpenMail-Authenticated-Sender: <jch@pwd.hp.com> at 15.145.204.106
Received: from pwd.hp.com (ilex.pwd.hp.com 15.145.204.106) by hpopd.pwd.hp.com (OpenMail SMTP Relay X.de.bu.g0) via ESMTP; Fri, 19 Jan 2001 12:05:11 +0000 (GMT)
Message-ID: <3A682D63.586EA1C8@pwd.hp.com>
Date: Fri, 19 Jan 2001 12:04:51 +0000
From: John Haxby <jch@pwd.hp.com>
Organization: OpenMail R&D
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Edward Hibbert <EH@dataconnection.com>
Cc: ietf-imapext@imc.org
Subject: Re: Move?
References: <EF7AC4BB3DC1D411A18E0002B313CC9D091563@rich.datcon.co.uk>
Content-Type: multipart/mixed; boundary="------------6DA3E24986CBE1C5325A9D95"
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>

This is a multi-part message in MIME format.
--------------6DA3E24986CBE1C5325A9D95
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Edward Hibbert wrote:

> Seems to me that deprecating clients which behave like this isn't going to
> be effective as a method of resolving the problem long term - as a user I
> find the Deleted Items folder much more useful than having messages in the
> same folder marked as deleted cluttering up the view.  Opinions clearly vary
> but I think there is a body of support for this approach and for the
> forseeable future there are going to be clients which have this model.
>

I agree.  The trouble with forcing any one model is that different users prefer
different things -- some like mark/delete, some like move to wastebasket, and
some like to just delete.   This leads users to choose specific clients, or
configure clients like Netscape in a particular way.   It seems rather odd that
the IMAP protocol should dictate user preferences ...

>
> Perhaps we should look at an extension for MOVE, though I'm not sure I'm
> competent to draft one.  I know Mark objects to this - what about other
> folk?
>

I'm not competant either.   To draft an extension, I mean.   However, I'll
happily review any extension that would provide MOVE (and preferably its
companion, DELETE).

jch


--------------6DA3E24986CBE1C5325A9D95
Content-Type: text/x-vcard; charset=us-ascii;
 name="jch.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for John Haxby
Content-Disposition: attachment;
 filename="jch.vcf"

begin:vcard 
n:Haxby;John
tel;fax:+44 1344 763686
tel;work:+44 1344 763711
x-mozilla-html:FALSE
url:https://ecardfile.com/id/jch
org:OpenMail R&D
adr:;;Hewlett Packard<br>Nine Mile Ride;Wokingham;Berks;RG40 3LL;United Kingdom
version:2.1
email;internet:jch@pwd.hp.com
note;quoted-printable:<em>OpenMail for All!</em>&nbsp=3B<img src=3D"http://www.openmail.com/cyc/om/00/graphics/omlinux.jpg" width=3D53 height=3D62 align=3Dbottom>
x-mozilla-cpt:;25408
fn:John Haxby
end:vcard

--------------6DA3E24986CBE1C5325A9D95--



Received: by ns.secondary.com (8.9.3/8.9.3) id PAA14621 for ietf-imapext-bks; Thu, 18 Jan 2001 15:36:40 -0800 (PST)
Received: from Tomobiki-Cho.CAC.Washington.EDU (ph18@tomobiki-cho.cac.washington.edu [128.95.135.58]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id PAA14617 for <ietf-imapext@IMC.ORG>; Thu, 18 Jan 2001 15:36:39 -0800 (PST)
Date: Thu, 18 Jan 2001 15:39:43 -0800 (PST)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: RE: Move?
To: IMAP Extensions WG <ietf-imapext@imc.org>
In-Reply-To: <MailManager.979859579.11673.mrc@Ikkoku-Kan.Panda.COM>
Message-ID: <MailManager.979861183.11673.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>

On Thu, 18 Jan 2001 15:12:59 -0800 (PST), Mark Crispin wrote:
> 	1) maximum message size
> 	2) maximum overall long-term storage use
> 	3) maximum transient (short-term) storage use
>
> The point being that the second and third values should be quite different.

Another point needs to be made about the first value.  The need for it is to
prevent a denial of service problem.  It should be impossible for a single
message to push a user near his second limit to the third limit.

Consequently, Q3 > Q2, Q3-Q2 > Q1



Received: by ns.secondary.com (8.9.3/8.9.3) id PAA14544 for ietf-imapext-bks; Thu, 18 Jan 2001 15:31:55 -0800 (PST)
Received: from Tomobiki-Cho.CAC.Washington.EDU (jrr@tomobiki-cho.cac.washington.edu [128.95.135.58]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id PAA14540 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 15:31:50 -0800 (PST)
Date: Thu, 18 Jan 2001 15:12:59 -0800 (PST)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: RE: Move?
To: Edward Hibbert <EH@dataconnection.com>
cc: "'Larry Osterman'" <larryo@exchange.MICROSOFT.com>, Caleb Clausen <clausen@connsys.com>, ietf-imapext@imc.org
In-Reply-To: <EF7AC4BB3DC1D411A18E0002B313CC9D091564@rich.datcon.co.uk>
Message-ID: <MailManager.979859579.11673.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>

On Thu, 18 Jan 2001 22:40:12 -0000, Edward Hibbert wrote:
> So, how is one to allow a client MOVE operation - which feels to me as
> though it should work as long as you are below your quota - and
> simultaneously not violate server quota limits?  Violating quota limits is
> anathema to some of our ISP customers.

Today, a client has to do COPY-STORE \DELETED.  I contend that this is
correct, since, unlike the proposed MOVE, it is reversible.  This is
important, not just from the perspective of allowing the user to "undo".

Specifically, if the MOVE operation fails for any reason -- such as a quota
exceeded condition at the target -- the state prior to the MOVE has to be
restored.  You can't do this unless the mail store implements MOVE of multiple
messages as an atomic operation; furthermore that it must lock the source
mailbox against any other operations until the MOVE is complete (especially
append of new messages or EXPUNGE of the moved messages); and on top of that
MOVE must guarantee that it can reverse without quota problems (suppose the
source mailbox is currently over quota).

A further complication exists with any other client which has the mailbox
selected at the time a MOVE is going on; that client can not get the untagged
EXPUNGE until it does a "safe" command.  The question then becomes about how
you maintain the necessary zombie state (which probably requires leaving
ghosts of the message behind...hence not solving the quota problem); since
MOVE forces an EXPUNGE the server can't take the easy out of no-op'ing the
EXPUNGE until such time as there is exclusive access.

These entail a lot of difficult requirements for MOVE, and ones that are
likely to be ignored by careless implementors who would just do a bunch of
rename() calls.  The result would be worse than the original problem.

A better solution is to reconsider your assumptions behind quotas; and in
particular the idea that a user's permanent space allotment should equal his
transient space allotment.  I spent many years in a past life (1973-1984)
dealing with file quotas in which users were constantly at the limit of their
quota.  Far more money was spent in human salaries than would have been
expended by buying more disk -- and that was at a time when disks were
expensive!

More to the point: a user with a 5MB quota should not be receiving 4.5MB MIME
godzillagrams.  Either his quota is much too low, or his expectations of what
size messages he can receive are too high.  A reasonable quota facility needs
at least three values:
	1) maximum message size
	2) maximum overall long-term storage use
	3) maximum transient (short-term) storage use

The point being that the second and third values should be quite different.



Received: by ns.secondary.com (8.9.3/8.9.3) id OAA10783 for ietf-imapext-bks; Thu, 18 Jan 2001 14:35:12 -0800 (PST)
Received: from miles.dataconnection.com (smtp2.dataconnection.com [192.91.191.8]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id OAA10773 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 14:35:08 -0800 (PST)
Received: by miles.datcon.co.uk with Internet Mail Service (5.5.2653.19) id <CG0QSAR5>; Thu, 18 Jan 2001 22:40:09 -0000
Message-ID: <EF7AC4BB3DC1D411A18E0002B313CC9D091564@rich.datcon.co.uk>
From: Edward Hibbert <EH@dataconnection.com>
To: "'Mark Crispin'" <MRC@cac.washington.edu>
Cc: "'Larry Osterman'" <larryo@exchange.MICROSOFT.com>, Caleb Clausen <clausen@connsys.com>, ietf-imapext@imc.org
Subject: RE: Move?
Date: Thu, 18 Jan 2001 22:40:12 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain
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:

> Leaving aside the quota problem, 

But this is precisely the issue I want to address.  We can argue all day
about whether Trash folders are a good idea and how clients can best
represent them.  Let's not do that because it's emotive and outside the
scope of the server.  And I implement servers so I'm not too interested in
it.

Instead, let's concentrate on the quota issue, which applies just as much in
moving mail from one folder to another.  I'm assuming this is an operation
that most clients do.

So, how is one to allow a client MOVE operation - which feels to me as
though it should work as long as you are below your quota - and
simultaneously not violate server quota limits?  Violating quota limits is
anathema to some of our ISP customers.

One way round the problem would be to say that the quota should apply to
individual folders rather than mailboxes (apologies for the violation of
IMAP terminology here).  But that seems artificial to me, and more
irritating to users.

So I don't see a way of solving this without a MOVE extension.  I'm not
arguing that this is the most serious problem in the world, and I'm prepared
to be convinced that it's not worth doing anything about except perhaps
adding something to the implementation notes.  But I'd like to see whether
I'm missing some way of solving this, or whether there's support for a MOVE
extension.

Regards,

Edward.

Regards,

Edward.


Received: by ns.secondary.com (8.9.3/8.9.3) id NAA09166 for ietf-imapext-bks; Thu, 18 Jan 2001 13:51:43 -0800 (PST)
Received: from gollum.esys.ca (dhcp198-52.esys.ca [198.161.92.52]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA09156 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 13:51:36 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by gollum.esys.ca (8.11.1/8.11.1) with ESMTP id f0ILuer01976; Thu, 18 Jan 2001 14:56:40 -0700 (MST) (envelope-from lyndon@gollum.esys.ca)
Message-Id: <200101182156.f0ILuer01976@gollum.esys.ca>
X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4
From: Lyndon Nerenberg <lyndon@messagingdirect.com>
To: Edward Hibbert <EH@dataconnection.com>
cc: ietf-imapext@imc.org
Subject: Re: Move? 
In-reply-to: Your message of "Thu, 18 Jan 2001 20:33:08 GMT." <EF7AC4BB3DC1D411A18E0002B313CC9D091563@rich.datcon.co.uk> 
Organization: ACI Worldwide
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 18 Jan 2001 14:56:40 -0700
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>

> Seems to me that deprecating clients which behave like this isn't going to
> be effective as a method of resolving the problem long term - as a user I
> find the Deleted Items folder much more useful than having messages in the
> same folder marked as deleted cluttering up the view.

So fix the GUI interface. There is nothing on the planet that
says a message marked \Deleted cannot be displayed by the client as if
it was in a different folder (called Trash or whatever else you want
to call it). This is *not* rocket science. (Simeon had functionality
in it similar to this five years ago.)

--lyndon



Received: by ns.secondary.com (8.9.3/8.9.3) id NAA08933 for ietf-imapext-bks; Thu, 18 Jan 2001 13:47:17 -0800 (PST)
Received: from Tomobiki-Cho.CAC.Washington.EDU (vsl@tomobiki-cho.cac.washington.edu [128.95.135.58]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA08929 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 13:47:16 -0800 (PST)
Date: Thu, 18 Jan 2001 13:33:46 -0800 (PST)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: RE: Move?
To: Edward Hibbert <EH@dataconnection.com>
cc: "'Larry Osterman'" <larryo@exchange.MICROSOFT.com>, Caleb Clausen <clausen@connsys.com>, ietf-imapext@imc.org
In-Reply-To: <EF7AC4BB3DC1D411A18E0002B313CC9D091563@rich.datcon.co.uk>
Message-ID: <MailManager.979853626.11673.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>

> as a user I
> find the Deleted Items folder much more useful than having messages in the
> same folder marked as deleted cluttering up the view.  Opinions clearly vary
> but I think there is a body of support for this approach and for the
> forseeable future there are going to be clients which have this model.

You are confusing a user interface (and server storage) issue with a protocol
issue.  The client can present a "Trash" view to the user, while still using
the IMAP delete-expunge model.  It should; and most clients do.  Doing so also
neatly avoids the quota problem.

Leaving aside the quota problem, as a protocol operation, the Trash model is
fatally flawed -- unlike deleted status, it is impossible to reverse a "Trash"
operation.  The only thing you can do is add a new message (with a new UID!)
to the original mailbox containing the message in question.

Yes, it is highly unfortunate that one commonly-used client made the wrong
choice.  That program is disproportionately represented among my incoming
support question, due to this and certain other unfortunate design decisions.
We all have to make the best of it, but I don't think that breaking IMAP's
fundamentals is a good idea.

> Perhaps we should look at an extension for MOVE, though I'm not sure I'm
> competent to draft one.  I know Mark objects to this - what about other
> folk?

Let me emphasize:

I oppose the standardization of any extension which creates an independent
means from EXPUNGE to remove a message from a mailbox.  This is a very serious
violation of the IMAP architecture.

Even if this extension is promulgated over my objections, there is no reason
to believe that it will solve your problem.  It presupposes widespread
implementation, including in the particular client that you're purposing to
convenience -- assuming there is still any development in that program.



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id NAA06585 for ietf-imapext-bks; Thu, 18 Jan 2001 13:01:43 -0800 (PST)
Received: from coltrane.dataconnection.com (smtp.dataconnection.com [192.91.191.4]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA06576 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 13:01:40 -0800 (PST)
Received: by coltrane.datcon.co.uk with Internet Mail Service (5.5.2653.19) id <CG0SVPYB>; Thu, 18 Jan 2001 21:06:40 -0000
Message-ID: <EF7AC4BB3DC1D411A18E0002B313CC9D091563@rich.datcon.co.uk>
From: Edward Hibbert <EH@dataconnection.com>
To: "'Larry Osterman'" <larryo@exchange.MICROSOFT.com>, Caleb Clausen <clausen@connsys.com>
Cc: ietf-imapext@imc.org
Subject: RE: Move?
Date: Thu, 18 Jan 2001 20:33:08 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain; charset="iso-8859-1"
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

That's precisely right.  We do already make a reference when a COPY is done
(and for multirecipient messages), but if you don't charge that copy against
the quota then you have the problem of which of the messages actually holds
the size and therefore which one the user has to delete to free up the
space.  I guess you could split the charged size across the number of copies
and recalculate it each time you copy, but that gets silly, and as Larry
says, you end up with users deleting messages and wondering why their
mailbox is still full.

Another point to note is that references themselves consume some space - for
us the minimal message size, because they do have to have their own flags -
and so ought to be charged against the quota.

Seems to me that deprecating clients which behave like this isn't going to
be effective as a method of resolving the problem long term - as a user I
find the Deleted Items folder much more useful than having messages in the
same folder marked as deleted cluttering up the view.  Opinions clearly vary
but I think there is a body of support for this approach and for the
forseeable future there are going to be clients which have this model.

Perhaps we should look at an extension for MOVE, though I'm not sure I'm
competent to draft one.  I know Mark objects to this - what about other
folk?

Regards,

Edward.

-----Original Message-----
From: Larry Osterman [mailto:larryo@Exchange.Microsoft.com]
Sent: Thursday, January 18, 2001 8:11 PM
To: Caleb Clausen; Edward Hibbert
Cc: ietf-imapext@imc.org
Subject: RE: Move?


It's possible that Edwards' data store is like the Exchange store, which
natively implements this (we call it "Single Instance Storage").  The
problem is that in order to make the quota management work correctly,
the store needs to charge each instance against the quota - this means
that the amount of quota charged against a particular user is greater
than the sum of the storage they are using, however if we don't do it
this way, there is no way for a client to determine how their quota is
being used - users get REALLY annoyed if they delete an item to get
below their quota only to discover that it doesn't help them.

-----Original Message-----
From: Caleb Clausen [mailto:clausen@connsys.com]
Sent: Thursday, January 18, 2001 11:08 AM
To: Edward Hibbert
Cc: 'ietf-imapext@imc.org'
Subject: RE: Move?


From:           	Edward Hibbert <EH@dataconnection.com>
> My motivation for a MOVE is not based on an infatuation with OS
commands
> :-).  I have a nice transactional database with rollback and all that
good
> stuff.
> 
> Instead it's about quota.  At the moment we enforce the quota limit on
the
> COPY command.  We have come up against a client which maintains a
Deleted
> Items folder (mailbox in IMAP terminology), so it moves items into it
when
> the user deletes them.  To do the move it does a COPY/DELETE/EXPUNGE.

> 
> But this process requires that you have as much free quota as the size
of
> the message you're trying to move - which is obviously not possible if
the
> message is itself more than half your quota limit.
> 
> Changing the client is not really an option, so I'm left with couple
of
> ideas, neither of which I like very much:
> - don't check quota on COPY
> - hardcode the Deleted Items folder name and don't check quota if
we're
> copying to there.
> 
> Obviously with a MOVE command it would be clear that you weren't
trying to
> violate your quota.  It wouldn't help me just now because I can't
change the
> client to use it, but it seems to me that this is an argument in
favour of
> it.
> 
> Do any of you folk have any other ideas as to how to solve this?

well, here's an idea. use reference counts internally on your 
messages. that way, you wouldn't have to have room for an extra 
message when the user does a COPY, just an extra reference.

i haven't given this a lot of thought; i don't know how hard it would 
be to implement. one thing that springs to mind is the flags; each 
reference would have to have it's own set of them.

"For, I say fortunately, I always carry a spare set 
of feathers."
  --Foghorn Leghorn


Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id MAA03688 for ietf-imapext-bks; Thu, 18 Jan 2001 12:07:40 -0800 (PST)
Received: from DF-INET-1.dogfoodinternet.com (df-inet1.exchange.microsoft.com [131.107.8.8]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA03684 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 12:07:38 -0800 (PST)
Received: from df-virus2.platinum.corp.microsoft.com ([172.30.236.33]) by DF-INET-1.dogfoodinternet.com with Microsoft SMTPSVC(5.0.2195.1600); Thu, 18 Jan 2001 12:10:15 -0800
Received: from 172.30.236.11 by df-virus2.platinum.corp.microsoft.com (InterScan E-Mail VirusWall NT); Thu, 18 Jan 2001 12:10:59 -0800 (Pacific Standard Time)
Received: from df-goofy.platinum.corp.microsoft.com ([172.30.236.130]) by yuri.dns.microsoft.com with Microsoft SMTPSVC(5.0.2195.2532); Thu, 18 Jan 2001 12:10:58 -0800
X-MimeOLE: Produced By Microsoft Exchange V6.0.4604.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Subject: RE: Move?
Date: Thu, 18 Jan 2001 12:10:56 -0800
Message-ID: <52E28A515344104299B5E7AABC32045FD501AF@df-goofy.dogfood>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Move?
Thread-Index: AcCBic1a+ezYHCqQTVuTJKM3dduiiQAAH98g
From: "Larry Osterman" <larryo@exchange.MICROSOFT.com>
To: "Caleb Clausen" <clausen@connsys.com>, "Edward Hibbert" <EH@dataconnection.com>
Cc: <ietf-imapext@imc.org>
X-OriginalArrivalTime: 18 Jan 2001 20:10:58.0469 (UTC) FILETIME=[C5760550:01C0818A]
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by ns.secondary.com id MAA03685
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>

It's possible that Edwards' data store is like the Exchange store, which
natively implements this (we call it "Single Instance Storage").  The
problem is that in order to make the quota management work correctly,
the store needs to charge each instance against the quota - this means
that the amount of quota charged against a particular user is greater
than the sum of the storage they are using, however if we don't do it
this way, there is no way for a client to determine how their quota is
being used - users get REALLY annoyed if they delete an item to get
below their quota only to discover that it doesn't help them.

-----Original Message-----
From: Caleb Clausen [mailto:clausen@connsys.com]
Sent: Thursday, January 18, 2001 11:08 AM
To: Edward Hibbert
Cc: 'ietf-imapext@imc.org'
Subject: RE: Move?


From:           	Edward Hibbert <EH@dataconnection.com>
> My motivation for a MOVE is not based on an infatuation with OS
commands
> :-).  I have a nice transactional database with rollback and all that
good
> stuff.
> 
> Instead it's about quota.  At the moment we enforce the quota limit on
the
> COPY command.  We have come up against a client which maintains a
Deleted
> Items folder (mailbox in IMAP terminology), so it moves items into it
when
> the user deletes them.  To do the move it does a COPY/DELETE/EXPUNGE.

> 
> But this process requires that you have as much free quota as the size
of
> the message you're trying to move - which is obviously not possible if
the
> message is itself more than half your quota limit.
> 
> Changing the client is not really an option, so I'm left with couple
of
> ideas, neither of which I like very much:
> - don't check quota on COPY
> - hardcode the Deleted Items folder name and don't check quota if
we're
> copying to there.
> 
> Obviously with a MOVE command it would be clear that you weren't
trying to
> violate your quota.  It wouldn't help me just now because I can't
change the
> client to use it, but it seems to me that this is an argument in
favour of
> it.
> 
> Do any of you folk have any other ideas as to how to solve this?

well, here's an idea. use reference counts internally on your 
messages. that way, you wouldn't have to have room for an extra 
message when the user does a COPY, just an extra reference.

i haven't given this a lot of thought; i don't know how hard it would 
be to implement. one thing that springs to mind is the flags; each 
reference would have to have it's own set of them.

"For, I say fortunately, I always carry a spare set 
of feathers."
  --Foghorn Leghorn


Received: by ns.secondary.com (8.9.3/8.9.3) id LAA01511 for ietf-imapext-bks; Thu, 18 Jan 2001 11:31:39 -0800 (PST)
Received: from Tomobiki-Cho.CAC.Washington.EDU (scipio@tomobiki-cho.cac.washington.edu [128.95.135.58]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA01504 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 11:31:38 -0800 (PST)
Date: Thu, 18 Jan 2001 11:23:08 -0800 (PST)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: RE: Move?
To: Caleb Clausen <clausen@connsys.com>
cc: Edward Hibbert <EH@dataconnection.com>, "'ietf-imapext@imc.org'" <ietf-imapext@imc.org>
In-Reply-To: <3A66CE74.32189.3BC9C2@localhost>
Message-ID: <MailManager.979845788.11673.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>

On Thu, 18 Jan 2001 11:07:32 -0800, Caleb Clausen wrote:
> well, here's an idea. use reference counts internally on your
> messages. that way, you wouldn't have to have room for an extra
> message when the user does a COPY, just an extra reference.

That's an interesting point.  link() is a perfectly valid way of implementing
COPY for the message data since it is static.  Parts of the metadata --
INTERNALDATE, RFC822.SIZE, ENVELOPE, BODYSTRUCTURE -- can also be lunk.
However, each mailbox needs its own copy of other metadata, most notably FLAGS
and UID.

If the underlying problem is that users can't clean their mail due to quotas
and Netscape's use of a "Trash" mailbox, I suggest that the problem is in
Netscape and not in any IMAP server.  The Trash mailbox is a Netscape-ism and
is not sanctioned by IMAP in any way.  Clients which use IMAP the way IMAP was
intended to use don't have this problem.

You may be able to work around the problem by applying separate quotas to the
Trash folder; but IMHO it's also a good answer to say "use another client."



Received: by ns.secondary.com (8.9.3/8.9.3) id LAA28920 for ietf-imapext-bks; Thu, 18 Jan 2001 11:01:20 -0800 (PST)
Received: from mail.connectedsystems.com (host16.connectedsystems.com [205.227.183.113]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA28915 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 11:01:18 -0800 (PST)
Received: from software-caleb (red.hq.connsys.com [192.168.0.32]) by mail.connectedsystems.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id Z5L08J1Z; Thu, 18 Jan 2001 11:07:37 -0800
From: "Caleb Clausen" <clausen@connsys.com>
To: Edward Hibbert <EH@dataconnection.com>
Date: Thu, 18 Jan 2001 11:07:32 -0800
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: RE: Move?
CC: "'ietf-imapext@imc.org'" <ietf-imapext@imc.org>
Message-ID: <3A66CE74.32189.3BC9C2@localhost>
In-reply-to: <EF7AC4BB3DC1D411A18E0002B313CC9D091520@rich.datcon.co.uk>
X-mailer: Pegasus Mail for Win32 (v3.12c)
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>

From:           	Edward Hibbert <EH@dataconnection.com>
> My motivation for a MOVE is not based on an infatuation with OS commands
> :-).  I have a nice transactional database with rollback and all that good
> stuff.
> 
> Instead it's about quota.  At the moment we enforce the quota limit on the
> COPY command.  We have come up against a client which maintains a Deleted
> Items folder (mailbox in IMAP terminology), so it moves items into it when
> the user deletes them.  To do the move it does a COPY/DELETE/EXPUNGE.  
> 
> But this process requires that you have as much free quota as the size of
> the message you're trying to move - which is obviously not possible if the
> message is itself more than half your quota limit.
> 
> Changing the client is not really an option, so I'm left with couple of
> ideas, neither of which I like very much:
> - don't check quota on COPY
> - hardcode the Deleted Items folder name and don't check quota if we're
> copying to there.
> 
> Obviously with a MOVE command it would be clear that you weren't trying to
> violate your quota.  It wouldn't help me just now because I can't change the
> client to use it, but it seems to me that this is an argument in favour of
> it.
> 
> Do any of you folk have any other ideas as to how to solve this?

well, here's an idea. use reference counts internally on your 
messages. that way, you wouldn't have to have room for an extra 
message when the user does a COPY, just an extra reference.

i haven't given this a lot of thought; i don't know how hard it would 
be to implement. one thing that springs to mind is the flags; each 
reference would have to have it's own set of them.

"For, I say fortunately, I always carry a spare set 
of feathers."
  --Foghorn Leghorn


Received: by ns.secondary.com (8.9.3/8.9.3) id JAA25985 for ietf-imapext-bks; Thu, 18 Jan 2001 09:44:12 -0800 (PST)
Received: from eagle.oceana.com (eagle.oceana.com [208.17.123.12]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id JAA25980 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 09:44:10 -0800 (PST)
Received: from ken.oceana.com by eagle.oceana.com (Switch-2.0.5/Switch-2.0.5) with ESMTP id f0IHnKP09715; Thu, 18 Jan 2001 12:49:20 -0500
Message-ID: <3A672C02.ECB4D405@oceana.com>
Date: Thu, 18 Jan 2001 12:46:42 -0500
From: Ken Murchison <ken@oceana.com>
Organization: Oceana Matrix Ltd.
X-Mailer: Mozilla 4.73 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Edward Hibbert <EH@dataconnection.com>
CC: "'ietf-imapext@imc.org'" <ietf-imapext@imc.org>
Subject: Re: Move?
References: <EF7AC4BB3DC1D411A18E0002B313CC9D091520@rich.datcon.co.uk>
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>

Edward Hibbert wrote:
> 
> My motivation for a MOVE is not based on an infatuation with OS commands
> :-).  I have a nice transactional database with rollback and all that good
> stuff.
> 
> Instead it's about quota.  At the moment we enforce the quota limit on the
> COPY command.  We have come up against a client which maintains a Deleted
> Items folder (mailbox in IMAP terminology), so it moves items into it when
> the user deletes them.  To do the move it does a COPY/DELETE/EXPUNGE.
> 
> But this process requires that you have as much free quota as the size of
> the message you're trying to move - which is obviously not possible if the
> message is itself more than half your quota limit.
> 
> Changing the client is not really an option, so I'm left with couple of
> ideas, neither of which I like very much:
> - don't check quota on COPY
> - hardcode the Deleted Items folder name and don't check quota if we're
> copying to there.
> 
> Obviously with a MOVE command it would be clear that you weren't trying to
> violate your quota.  It wouldn't help me just now because I can't change the
> client to use it, but it seems to me that this is an argument in favour of
> it.
> 
> Do any of you folk have any other ideas as to how to solve this?

We had a similar problem here with people using Communicator with a
Trash folder.  If they ran up against their quota limit, they couldn't
delete messages for the reason you describe above.

I solved it by placing a separate QUOTAROOT (via Cyrus imapd) on the
Trash folder so "deleted" items dont count against their "main" quota.

Ken
-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp


Received: by ns.secondary.com (8.9.3/8.9.3) id BAA17743 for ietf-imapext-bks; Thu, 18 Jan 2001 01:45:50 -0800 (PST)
Received: from bbnrel4.net.external.hp.com (bbnrel4.net.external.hp.com [155.208.254.68]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id BAA17734 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 01:45:48 -0800 (PST)
Received: from hpopd.pwd.hp.com (hpopd.pwd.hp.com [15.145.205.59]) by bbnrel4.net.external.hp.com (Postfix) with ESMTP id 3DE7322804; Thu, 18 Jan 2001 10:51:28 +0100 (MET)
Received: from hpopd.pwd.hp.com (root@localhost) by hpopd.pwd.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.01 OpenMail) with ESMTP id JAA21724; Thu, 18 Jan 2001 09:50:55 GMT
X-OpenMail-Authenticated-Sender: <jch@pwd.hp.com> at 15.145.204.106
Received: from pwd.hp.com (ilex.pwd.hp.com 15.145.204.106) by hpopd.pwd.hp.com (OpenMail SMTP Relay X.de.bu.g0) via ESMTP; Thu, 18 Jan 2001 09:51:17 +0000 (GMT)
Message-ID: <3A66BC7C.346FF750@pwd.hp.com>
Date: Thu, 18 Jan 2001 09:50:52 +0000
From: John Haxby <jch@pwd.hp.com>
Organization: OpenMail R&D
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Edward Hibbert <EH@dataconnection.com>
Cc: "'ietf-imapext@imc.org'" <ietf-imapext@imc.org>
Subject: Re: Move?
References: <EF7AC4BB3DC1D411A18E0002B313CC9D091520@rich.datcon.co.uk>
Content-Type: multipart/mixed; boundary="------------AD66766772BFAF0AAFAAFD54"
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>

This is a multi-part message in MIME format.
--------------AD66766772BFAF0AAFAAFD54
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Edward Hibbert wrote:

> My motivation for a MOVE is not based on an infatuation with OS commands
> :-).  I have a nice transactional database with rollback and all that good
> stuff.
>
> Instead it's about quota.  At the moment we enforce the quota limit on the
> COPY command.  We have come up against a client which maintains a Deleted
> Items folder (mailbox in IMAP terminology), so it moves items into it when
> the user deletes them.  To do the move it does a COPY/DELETE/EXPUNGE.
>
> But this process requires that you have as much free quota as the size of
> the message you're trying to move - which is obviously not possible if the
> message is itself more than half your quota limit.

We have exactly this problem as well.   We just ignore the limitation.  At some
stage, someone will complain and then we might have to do something about it.
I have also given up on the idea of having a DELETE command as well.   (Quite
apart from the various race conditions in a mark/delete scheme, we get problems
with users who delete a message but since the client doesn't actually delete it
just yet, you don't drop below quota.   One of these days, someone is going to
decide that merely modifying messages when you are over quota is a bad move and
you won't be able to get below it again...)

jch, dispirited

--------------AD66766772BFAF0AAFAAFD54
Content-Type: text/x-vcard; charset=us-ascii;
 name="jch.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for John Haxby
Content-Disposition: attachment;
 filename="jch.vcf"

begin:vcard 
n:Haxby;John
tel;fax:+44 1344 763686
tel;work:+44 1344 763711
x-mozilla-html:FALSE
url:https://ecardfile.com/id/jch
org:OpenMail R&D
adr:;;Hewlett Packard<br>Nine Mile Ride;Wokingham;Berks;RG40 3LL;United Kingdom
version:2.1
email;internet:jch@pwd.hp.com
note;quoted-printable:<em>OpenMail for All!</em>&nbsp=3B<img src=3D"http://www.openmail.com/cyc/om/00/graphics/omlinux.jpg" width=3D53 height=3D62 align=3Dbottom>
x-mozilla-cpt:;25408
fn:John Haxby
end:vcard

--------------AD66766772BFAF0AAFAAFD54--



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id BAA11762 for ietf-imapext-bks; Thu, 18 Jan 2001 01:01:07 -0800 (PST)
Received: from coltrane.dataconnection.com (smtp.dataconnection.com [192.91.191.4]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id BAA11746 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 01:01:03 -0800 (PST)
Received: by coltrane.datcon.co.uk with Internet Mail Service (5.5.2653.19) id <CG0SV3K5>; Thu, 18 Jan 2001 09:06:03 -0000
Message-ID: <EF7AC4BB3DC1D411A18E0002B313CC9D091520@rich.datcon.co.uk>
From: Edward Hibbert <EH@dataconnection.com>
To: "'Mark Crispin'" <MRC@cac.washington.edu>
Cc: "'ietf-imapext@imc.org'" <ietf-imapext@imc.org>
Subject: RE: Move?
Date: Thu, 18 Jan 2001 09:06:04 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain; charset="iso-8859-1"
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>

My motivation for a MOVE is not based on an infatuation with OS commands
:-).  I have a nice transactional database with rollback and all that good
stuff.

Instead it's about quota.  At the moment we enforce the quota limit on the
COPY command.  We have come up against a client which maintains a Deleted
Items folder (mailbox in IMAP terminology), so it moves items into it when
the user deletes them.  To do the move it does a COPY/DELETE/EXPUNGE.  

But this process requires that you have as much free quota as the size of
the message you're trying to move - which is obviously not possible if the
message is itself more than half your quota limit.

Changing the client is not really an option, so I'm left with couple of
ideas, neither of which I like very much:
- don't check quota on COPY
- hardcode the Deleted Items folder name and don't check quota if we're
copying to there.

Obviously with a MOVE command it would be clear that you weren't trying to
violate your quota.  It wouldn't help me just now because I can't change the
client to use it, but it seems to me that this is an argument in favour of
it.

Do any of you folk have any other ideas as to how to solve this?

Regards,

Edward Hibbert
Internet Applications Group
Data Connection Ltd
Tel:	+44 131 662 1212		Fax:	+44 131 662 1345
Email:	eh@dataconnection.com	Web:	http://www.dataconnection.com

-----Original Message-----
From: Mark Crispin [mailto:MRC@CAC.Washington.EDU]
Sent: Wednesday, January 17, 2001 9:52 PM
To: Edward Hibbert
Cc: 'ietf-imapext@imc.org'
Subject: re: Move?


On Wed, 17 Jan 2001 21:47:16 -0000, Edward Hibbert wrote:
> There's a COPY command to copy an item from one mailbox to another.  But
so
> far as I'm aware there isn't a MOVE command, so a client has to do a COPY
> and then a DELETE (and possibly an EXPUNGE if it wants the item to
disappear
> from its view of the current folder, depending on how it presents this).

That is correct.

> Is there any particular reason why there isn't a MOVE command?

You just gave the reason: the functionality of a MOVE command can be done
with
the existing commands.  It also preserves the IMAP delete-expunge model in
which it is impossible to remove a message from a mailbox in a single step.

The obvious temptation for implementations which have a one-file/one-message
form of mail store would be to implement MOVE via a rename() system call;
it's
also the primary motivation for asking for it (the secondary reason is to
eliminate the additional RTT).  That violates the IMAP delete-expunge model.

An additional problem which is often overlooked with rename() is that COPY
requires that the operation succeed or fail atomicly.  There is no atomic
rename(); which means that if a rename() fails (e.g. due to disk quota in
the
target) the previous messages have to be rename()d back -- which could also
fail!

The bottom line here is that the rename() idea is an "attractive nuisance";
one that looks desirable on the surface but has serious problems.  Since
these
problems are not necessarily obvious, affirmative measures need to be in
place
to prevent it.

For MOVE, such affirmative measures would require the preservation of a
deleted copy in the source mailbox; hence resulting in the exact equivalent
of
COPY+STORE \DELETED.  This could be done, but such a command would just be
protocol bloat.


Received: by ns.secondary.com (8.9.3/8.9.3) id OAA02574 for ietf-imapext-bks; Wed, 17 Jan 2001 14:01:37 -0800 (PST)
Received: from Tomobiki-Cho.CAC.Washington.EDU (ajohnson@tomobiki-cho.cac.washington.edu [128.95.135.58]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id OAA02569 for <ietf-imapext@imc.org>; Wed, 17 Jan 2001 14:01:36 -0800 (PST)
Date: Wed, 17 Jan 2001 13:52:09 -0800 (PST)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: re: Move?
To: Edward Hibbert <EH@dataconnection.com>
cc: "'ietf-imapext@imc.org'" <ietf-imapext@imc.org>
In-Reply-To: <EF7AC4BB3DC1D411A18E0002B313CC9D09151C@rich.datcon.co.uk>
Message-ID: <MailManager.979768329.16184.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>

On Wed, 17 Jan 2001 21:47:16 -0000, Edward Hibbert wrote:
> There's a COPY command to copy an item from one mailbox to another.  But so
> far as I'm aware there isn't a MOVE command, so a client has to do a COPY
> and then a DELETE (and possibly an EXPUNGE if it wants the item to disappear
> from its view of the current folder, depending on how it presents this).

That is correct.

> Is there any particular reason why there isn't a MOVE command?

You just gave the reason: the functionality of a MOVE command can be done with
the existing commands.  It also preserves the IMAP delete-expunge model in
which it is impossible to remove a message from a mailbox in a single step.

The obvious temptation for implementations which have a one-file/one-message
form of mail store would be to implement MOVE via a rename() system call; it's
also the primary motivation for asking for it (the secondary reason is to
eliminate the additional RTT).  That violates the IMAP delete-expunge model.

An additional problem which is often overlooked with rename() is that COPY
requires that the operation succeed or fail atomicly.  There is no atomic
rename(); which means that if a rename() fails (e.g. due to disk quota in the
target) the previous messages have to be rename()d back -- which could also
fail!

The bottom line here is that the rename() idea is an "attractive nuisance";
one that looks desirable on the surface but has serious problems.  Since these
problems are not necessarily obvious, affirmative measures need to be in place
to prevent it.

For MOVE, such affirmative measures would require the preservation of a
deleted copy in the source mailbox; hence resulting in the exact equivalent of
COPY+STORE \DELETED.  This could be done, but such a command would just be
protocol bloat.



Received: by ns.secondary.com (8.9.3/8.9.3) id NAA01413 for ietf-imapext-bks; Wed, 17 Jan 2001 13:42:34 -0800 (PST)
Received: from miles.dataconnection.com (smtp2.dataconnection.com [192.91.191.8]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA01407 for <ietf-imapext@imc.org>; Wed, 17 Jan 2001 13:42:31 -0800 (PST)
Received: by miles.datcon.co.uk with Internet Mail Service (5.5.2653.19) id <CG0QR9PB>; Wed, 17 Jan 2001 21:47:30 -0000
Message-ID: <EF7AC4BB3DC1D411A18E0002B313CC9D09151C@rich.datcon.co.uk>
From: Edward Hibbert <EH@dataconnection.com>
To: "'ietf-imapext@imc.org'" <ietf-imapext@imc.org>
Subject: Move?
Date: Wed, 17 Jan 2001 21:47:16 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain; charset="iso-8859-1"
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'm sure this is going to turn out to be a stupid question.

There's a COPY command to copy an item from one mailbox to another.  But so
far as I'm aware there isn't a MOVE command, so a client has to do a COPY
and then a DELETE (and possibly an EXPUNGE if it wants the item to disappear
from its view of the current folder, depending on how it presents this).

Is there any particular reason why there isn't a MOVE command?

Edward Hibbert
Internet Applications Group
Data Connection Ltd
Tel:	+44 131 662 1212		Fax:	+44 131 662 1345
Email:	eh@dataconnection.com	Web:	http://www.dataconnection.com



Received: by ns.secondary.com (8.9.3/8.9.3) id LAA06605 for ietf-imapext-bks; Fri, 5 Jan 2001 11:33:13 -0800 (PST)
Received: from Tomobiki-Cho.CAC.Washington.EDU (trungt@tomobiki-cho.cac.washington.edu [128.95.135.58]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA06600 for <ietf-imapext@IMC.ORG>; Fri, 5 Jan 2001 11:33:12 -0800 (PST)
Date: Fri, 5 Jan 2001 11:24:19 -0800 (PST)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: Re: LAST CALL: IMAP base and MULTIAPPEND drafts
To: Simon Josefsson <simon+IMAP@josefsson.org>
cc: IMAP Interest List <IMAP@cac.washington.edu>, IMAP Extensions WG <ietf-imapext@imc.org>
In-Reply-To: <ilu66juryne.fsf@barbar.josefsson.org>
Message-ID: <MailManager.978722659.16184.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>

On 05 Jan 2001 13:06:45 +0100, Simon Josefsson wrote:
> Suggestion, replace:
>       8-bit characters
>       are permitted in the message.
> with
>       8-bit characters
>       are permitted in the message body.
> since 8-bit characters are not permitted at all in the header section
> of a message, I think.

Nominally, this is a good idea.  However, I have not made this change, and
unless there is strong concensus for it I don't intend to do so, for the
following reasons:

 1) it would require that both the IMAP base (which has similar wording) and
IMAP MULTIAPPEND documents be revised if 8-bit characters are ever allowed in
the header.  I'm thinking of the time when all the world is Unicode and we can
dispense with all other charsets, encoded words, etc.

 2) There is also the question of allowing APPEND for messages that don't
necessarily conform to RFC 822; this is particularly an issue with drafts.

There seems to be a concensus (which I share) that IMAP servers should not
attempt to do message format validation on APPEND because of the issue with
drafts.  However, if such validation is done, I feel that the specification of
the validation should be in the message format document (RFC 822 or successor)
and not in an IMAP document.  As far as the IMAP document is concerned, the
APPEND text is simply a literal.

> Also, regarding UIDPLUS interactions, I'd suggest replacing
>    That is, the APPENDUID response code returns as many UIDs as there
>    were messages appended in the multiple append.
> with
>    That is, the APPENDUID response code returns as many UIDs as there
>    were messages appended in the multiple append.  The UIDs returned
>    should be in the order the articles where appended.  The message
>    set may not contain extraneous UIDs or the symbol '*'.
> to mimic some of the text from RFC 2359 regarding `set's and COPYUID.

This is a good idea and I've made the change.




Received: by ns.secondary.com (8.9.3/8.9.3) id LAA06343 for ietf-imapext-bks; Fri, 5 Jan 2001 11:29:34 -0800 (PST)
Received: from dolk.extundo.com (dolk.extundo.com [195.42.214.242]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA06336 for <ietf-imapext@IMC.ORG>; Fri, 5 Jan 2001 11:29:31 -0800 (PST)
Received: from barbar.josefsson.org (localhost.localdomain [127.0.0.1]) (authenticated) by dolk.extundo.com (8.11.1/8.11.1) with ESMTP id f05JY7031312 for <ietf-imapext@IMC.ORG>; Fri, 5 Jan 2001 20:34:08 +0100
To: Mark Crispin <mrc@cac.washington.edu>
Cc: IMAP Interest List <IMAP@cac.washington.edu>, IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: LAST CALL: IMAP base and MULTIAPPEND drafts
References: <Pine.NXT.4.32.0101041938420.7661-100000@Tomobiki-Cho.CAC.Washington.EDU>
In-Reply-To: <Pine.NXT.4.32.0101041938420.7661-100000@Tomobiki-Cho.CAC.Washington.EDU>
From: Simon Josefsson <simon+IMAP@josefsson.org>
Date: 05 Jan 2001 13:06:45 +0100
Message-ID: <ilu66juryne.fsf@barbar.josefsson.org>
Lines: 56
User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/21.0.94
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>

Mark Crispin <mrc@cac.washington.edu> writes:

> This is also a last call for
>  http://www.ietf.org/internet-drafts/draft-crispin-imap-multiappend-02.txt
> which is a minor (but exceedingly useful) extension.  It is unchanged from
> the -01 draft except for an updated expiration date.

I haven't had time to read this draft until now, so this is a late
minor clearification of two points...  Sorry for late reaction.

Suggestion, replace:

      The APPEND command appends the literal arguments as new messages
      to the end of the specified destination mailbox.  This argument
      SHOULD be in the format of an [RFC-822] message.  8-bit characters
      are permitted in the message.  A server implementation that is
      unable to preserve 8-bit data properly MUST be able to reversibly
      convert 8-bit APPEND data to 7-bit using a [MIME-IMB] content
      transfer encoding.

with

      The APPEND command appends the literal arguments as new messages
      to the end of the specified destination mailbox.  This argument
      SHOULD be in the format of an [RFC-822] message.  8-bit characters
      are permitted in the message body.  A server implementation that is
      unable to preserve 8-bit data properly MUST be able to reversibly
      convert 8-bit APPEND data to 7-bit using a [MIME-IMB] content
      transfer encoding.

since 8-bit characters are not permitted at all in the header section
of a message, I think.

Also, regarding UIDPLUS interactions, I'd suggest replacing

   Servers which support both MULTIAPPEND and [UIDPLUS] will have the
   "resp-code-apnd" rule modified as follows:

   resp-code-apnd  = "APPENDUID" SP nz-number SP set

   That is, the APPENDUID response code returns as many UIDs as there
   were messages appended in the multiple append.

with

   Servers which support both MULTIAPPEND and [UIDPLUS] will have the
   "resp-code-apnd" rule modified as follows:

   resp-code-apnd  = "APPENDUID" SP nz-number SP set

   That is, the APPENDUID response code returns as many UIDs as there
   were messages appended in the multiple append.  The UIDs returned
   should be in the order the articles where appended.  The message
   set may not contain extraneous UIDs or the symbol '*'.

to mimic some of the text from RFC 2359 regarding `set's and COPYUID.



Received: by ns.secondary.com (8.9.3/8.9.3) id TAA21050 for ietf-imapext-bks; Thu, 4 Jan 2001 19:40:21 -0800 (PST)
Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id TAA21046 for <ietf-imapext@IMC.ORG>; Thu, 4 Jan 2001 19:40:20 -0800 (PST)
Received: from microdol1.cac.washington.edu (microdol1.cac.washington.edu [140.142.112.196]) by mxout2.cac.washington.edu (8.9.3+UW00.02/8.9.3+UW00.01) with ESMTP id TAA07455; Thu, 4 Jan 2001 19:44:55 -0800
Received: from Tomobiki-Cho.CAC.Washington.EDU (localhost [127.0.0.1]) (authenticated) by microdol1.cac.washington.edu (8.11.1+UW00.11/8.11.1+UW00.11) with ESMTP id f053isD25819; Thu, 4 Jan 2001 19:44:54 -0800
Date: Thu, 4 Jan 2001 19:44:53 -0800 (PST)
From: Mark Crispin <mrc@cac.washington.edu>
To: IMAP Interest List <IMAP@cac.washington.edu>
cc: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: LAST CALL: IMAP base and MULTIAPPEND drafts
Message-ID: <Pine.NXT.4.32.0101041938420.7661-100000@Tomobiki-Cho.CAC.Washington.EDU>
Organization: Networks & Distributed Computing
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>

As discussed in the IMAPEXT meeting in San Diego,...

This is a last call for
 http://www.ietf.org/internet-drafts/draft-crispin-imapv-13.txt
which is the latest revision of RFC 2060, correcting all known errors and
omissions.  It has been 4 years since RFC 2060 was released, and there are
a lot of changes and clarifications.

This is also a last call for
 http://www.ietf.org/internet-drafts/draft-crispin-imap-multiappend-02.txt
which is a minor (but exceedingly useful) extension.  It is unchanged from
the -01 draft except for an updated expiration date.

Does IMAPEXT want to take on MULTIAPPEND, or just let it advance to
Proposed Standard status by itself?  I don't forsee any further work being
done to MULTIAPPEND, and people have been implementing it...

-- Mark --

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



Received: by ns.secondary.com (8.9.3/8.9.3) id EAA02759 for ietf-imapext-bks; Thu, 4 Jan 2001 04:23:02 -0800 (PST)
Received: from ietf.org (odin.ietf.org [132.151.1.176]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id EAA02751 for <ietf-imapext@imc.org>; Thu, 4 Jan 2001 04:22:57 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id HAA02391; Thu, 4 Jan 2001 07:27:27 -0500 (EST)
Message-Id: <200101041227.HAA02391@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-imapext@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-imapext-thread-06.txt
Date: Thu, 04 Jan 2001 07:27:27 -0500
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

--NextPart

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

	Title		: INTERNET MESSAGE ACCESS PROTOCOL - THREAD EXTENSION
	Author(s)	: M. Crispin, K. Murchison
	Filename	: draft-ietf-imapext-thread-06.txt
	Pages		: 13
	Date		: 03-Jan-01
	
This document describes the server-based threading extension to the
IMAP4rev1 protocol.  This extension provides substantial performance
improvements for IMAP clients which offer threaded views.
A server which supports this extension indicates this with more or
more capability names consisting of 'THREAD-' followed by a supported
threading algorithm name as described in this document.  This
provides for future upwards-compatible extensions.

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

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-thread-06.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-thread-06.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:	<20010103133751.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-imapext-thread-06.txt

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

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

--OtherAccess--

--NextPart--




Received: by ns.secondary.com (8.9.3/8.9.3) id EAA02758 for ietf-imapext-bks; Thu, 4 Jan 2001 04:22:59 -0800 (PST)
Received: from ietf.org (odin.ietf.org [132.151.1.176]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id EAA02749 for <ietf-imapext@imc.org>; Thu, 4 Jan 2001 04:22:57 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id HAA02375; Thu, 4 Jan 2001 07:27:23 -0500 (EST)
Message-Id: <200101041227.HAA02375@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-imapext@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-imapext-sort-06.txt
Date: Thu, 04 Jan 2001 07:27:22 -0500
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

--NextPart

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

	Title		: INTERNET MESSAGE ACCESS PROTOCOL - SORT EXTENSION
	Author(s)	: M. Crispin, K. Murchison
	Filename	: draft-ietf-imapext-sort-06.txt
	Pages		: 10
	Date		: 03-Jan-01
	
This document describes an experimental server-based sorting
extension to the IMAP4rev1 protocol, as implemented by the University
of Washington's IMAP toolkit.  This extension provides substantial
performance improvements for IMAP clients which offer sorted views.
A server which supports this extension indicates this with a
capability name of 'SORT'.  Client implementations SHOULD accept any
capability name which begins with 'SORT' as indicating support for
the extension described in this document.  This provides for future
upwards-compatible extensions.
At the time of this document was written, the IMAP Extensions Working
Group (IETF-IMAPEXT) was considering upwards-compatible additions to
the SORT extension described in this document, tenatively called the
SORT2 extension.

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

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-sort-06.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-sort-06.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:	<20010103133742.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-imapext-sort-06.txt

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

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

--OtherAccess--

--NextPart--




Received: by ns.secondary.com (8.9.3/8.9.3) id OAA17072 for ietf-imapext-bks; Sun, 21 Jan 2001 14:20:14 -0800 (PST)
Received: from episteme-software.com (presnick-fw.flexabit.net [64.198.230.34]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id OAA17068 for <ietf-imapext@imc.org>; Sun, 21 Jan 2001 14:20:12 -0800 (PST)
Received: from [64.198.230.35] (64.198.230.35) by episteme-software.com with ESMTP (Eudora Internet Mail Server 3.0.2); Sun, 21 Jan 2001 16:25:41 -0600
Mime-Version: 1.0
X-Sender: resnick@resnick1.qualcomm.com (Unverified)
Message-Id: <a05100800b6910c5394e0@[64.198.230.35]>
In-Reply-To: <MailManager.979946961.12670.mrc@Ikkoku-Kan.Panda.COM>
References: <MailManager.979946961.12670.mrc@Ikkoku-Kan.Panda.COM>
X-Mailer: Eudora [Macintosh version 5.1a1-12.00]
Date: Sun, 21 Jan 2001 16:25:38 -0600
To: Mark Crispin <MRC@cac.washington.edu>
From: Pete Resnick <presnick@qualcomm.com>
Subject: re: Delete-Expunge (Was: Move?)
Cc: ietf-imapext@imc.org
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
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 1/19/01 at 3:29 PM -0800, Mark Crispin wrote:

>Let me ask you again; would SHOULD type wording such as that above be
>satisfactory for your purposes?  You're invited to suggest any wordsmithing.

I think a SHOULD is asking for someone to violate it. However, I 
don't think we need a MUST to solve the problem. Let me suggest the 
following:

2.3.2: Change the description of the deleted flag to:

         \Deleted
            Message is marked for deletion, removed by later EXPUNGE or CLOSE

That makes it explicit that the message is removed by all and only 
the EXPUNGE and CLOSE commands.

7.4.1: Change the description of the EXPUNGE response to:

       The EXPUNGE response reports that the specified message sequence
       number has been permanently removed from the mailbox.  This response
       This response occurs as the result of EXPUNGE or CLOSE command.

       Note: Even though a message with the \Deleted flag set is not removed
       until an EXPUNGE or CLOSE is issued, untagged EXPUNGE responses
       may be the result of EXPUNGE or CLOSE commands issued in another
       session. In particular, a client MUST NOT assume that messages with the
       \Deleted flag will not be expunged simply because that client 
did not issue
       an EXPUNGE or CLOSE.

       Upon receipt of an EXPUNGE response, the message sequence number...

Now, we haven't issued any unenforceable directives. We've just very 
specifically defined the semantics of \Deleted and the EXPUNGE 
response. No MUSTs or SHOULDs; just explicit definition of the 
semantics.

pr

-- 
Pete Resnick <mailto:presnick@qualcomm.com>
Eudora Engineering - QUALCOMM Incorporated
Ph: (217)337-6377 or (858)651-4478, Fax: (858)651-1102


Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id PAA07516 for ietf-imapext-bks; Fri, 19 Jan 2001 15:49:16 -0800 (PST)
Received: from Tomobiki-Cho.CAC.Washington.EDU (tonyb@tomobiki-cho.cac.washington.edu [128.95.135.58]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id PAA07511 for <ietf-imapext@imc.org>; Fri, 19 Jan 2001 15:49:15 -0800 (PST)
Date: Fri, 19 Jan 2001 15:29:21 -0800 (PST)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: re: Delete-Expunge (Was: Move?)
To: Pete Resnick <presnick@qualcomm.com>
cc: ietf-imapext@imc.org
In-Reply-To: <a05100804b68e4f20e537@[64.198.230.35]>
Message-ID: <MailManager.979946961.12670.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>

On Fri, 19 Jan 2001 14:43:12 -0600, Pete Resnick wrote:
> >Unfortunately, I do not believe that it is as easy as telling client
> >writers "servers are only allowed to expunge when they are explicitly told
> >to do so."
> I can tell you for us, if we had the statement in the RFC, we would
> do it. It would actually turn out to be less work for us to do it
> only the "IMAP way".

Please believe me when I say that I would like very much to make such a
statement, especially if it induces Qualcomm to make Eudora only use the
delete-expunge mechanism.

My problem is that I don't think that I can make such a statement, or at least
I don't think that I can make it a MUST.

Would you settle for a SHOULD?

For example:
	A server SHOULD NOT unilaterally expunge deleted messages from
	a mailbox unless it receives an EXPUNGE or CLOSE command from
	a client session that has that mailbox selected.  The server
	SHOULD retain deleted messages, with the \Deleted flag set,
	across multiple sessions until an explicit EXPUNGE or CLOSE is
	issued.

	Note that an EXPUNGE or CLOSE in one session MAY cause the
	messages to be removed in all sessions which have that mailbox
	selected.  In particular, a client MUST NOT assume that
	messages will not be expunged unless it issues an EXPUNGE or
	CLOSE.

> The
> only sense in which this is enforceable is that servers which fail to
> follow the directive will behave badly and will get beat up on.

Exactly, but I believe that in this case we are talking BCP and SHOULD, not
MUST.

> Similarly, we can say (if we want) that a successful STORE of a
> \Deleted flag for a message doesn't mean "Mark this for deletion and
> expunge it whenever you feel like it", but rather "Mark this for
> deletion and expunge it when you get an EXPUNGE or CLOSE command."

Historically, the former was the original intent; but the latter is what
everybody seems to have implemented.  There hasn't been much call for a long
time for systemwide auto-EXPUNGE when the disk is full.  Although who knows,
maybe someone will want to do that (ref. certain other messages in this
thread).

> 1. They performed the action in their client which called the EXPUNGE
> or CLOSE command.
> 2. Someone else who shared the mailbox did an EXPUNGE or CLOSE command.
> 3. Their server is not following the IMAP standard.
> We all have to code (and document to the user) dealing with things of
> type 1 and 2. Things of type 3 we can dismiss.

Except that, all the time, we have people who defy the standards with such
statements as "the standards are no good if they get in the way of doing
work."  Just the other day, I had someone wanting me to add "AW:" as an
alternative to "re:" because some broken software in Germany writes it.

> Indeed, by the same people that I initially asked about this
> behavior, I was told that any server that did would be soundly
> beat-up on by the community.

In my observation, practices which are "soundly beat-up on by the community"
become "widely accepted" just a few years later; and such practices that are
enshrined in standards result in the standards being defied or criticized.

If I am so unfortunate as to have to still be defending stipulations in IMAP
10 years from now, I need stronger consensus and support than this.  I've been
burnt a lot by this in the past, and I don't want

> My argument
> is that if we already believe auto-EXPUNGE is prohibited behavior, we
> should document that.

I don't consider it prohibited.  I consider it bad, unfortunate, and totally
unsuitable for any software I would use.  But compliant client software
handles it just fine, and thus I see the issue as one of implementor morality
rather than harm.

Let me ask you again; would SHOULD type wording such as that above be
satisfactory for your purposes?  You're invited to suggest any wordsmithing.
Also, does anyone object to text such as this?



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id OAA06418 for ietf-imapext-bks; Fri, 19 Jan 2001 14:45:20 -0800 (PST)
Received: from episteme-software.com (presnick-fw.flexabit.net [64.198.230.34]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id OAA06414 for <ietf-imapext@imc.org>; Fri, 19 Jan 2001 14:45:18 -0800 (PST)
Received: from [64.198.230.35] (64.198.230.35) by episteme-software.com with ESMTP (Eudora Internet Mail Server 3.0.2); Fri, 19 Jan 2001 14:43:16 -0600
Mime-Version: 1.0
X-Sender: resnick@resnick1.qualcomm.com (Unverified)
Message-Id: <a05100804b68e4f20e537@[64.198.230.35]>
In-Reply-To: <MailManager.979926280.12670.mrc@Ikkoku-Kan.Panda.COM>
References: <MailManager.979926280.12670.mrc@Ikkoku-Kan.Panda.COM>
X-Mailer: Eudora [Macintosh version 5.1a1-12.00]
Date: Fri, 19 Jan 2001 14:43:12 -0600
To: Mark Crispin <MRC@cac.washington.edu>
From: Pete Resnick <presnick@qualcomm.com>
Subject: re: Delete-Expunge (Was: Move?)
Cc: ietf-imapext@imc.org
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
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 1/19/01 at 9:44 AM -0800, Mark Crispin wrote:

>Unfortunately, I do not believe that it is as easy as telling client writers
>"servers are only allowed to expunge when they are explicitly told to do so."

I can tell you for us, if we had the statement in the RFC, we would 
do it. It would actually turn out to be less work for us to do it 
only the "IMAP way".

>Yes, "it is compliant behavior according to the IMAP specification 
>for a server to expunge messages which are marked \Deleted even if 
>it receives no EXPUNGE or CLOSE command and even if the mailbox is 
>not shared."  It is compliant because it is not explicitly 
>forbidden.  It is not forbidden because such a prohibition is 
>unenforceable.

Let's start from the end: unenforceability. Take the case of SMTP. 
RFC 1123 says:

       5.3.3  Reliable Mail Receipt

          When the receiver-SMTP accepts a piece of mail (by sending a
          "250 OK" message in response to DATA), it is accepting
          responsibility for delivering or relaying the message.  It must
          take this responsibility seriously, i.e., it MUST NOT lose the
          message for frivolous reasons, e.g., because the host later
          crashes or because of a predictable resource shortage.

Now you could say, "This requirement is unenforceable; a client can't 
tell the difference between a server that loses the message for 
frivolous reasons rather than for good reasons. Therefore, this 
shouldn't have ever been explicitly forbidden." That's nonsense. The 
only sense in which this is enforceable is that servers which fail to 
follow the directive will behave badly and will get beat up on. We're 
not defining syntactic requirements here which are visible from the 
wire; we're defining semantic requirements. A successful DATA command 
doesn't mean "this message has been accepted if I feel like it". It 
is defined as meaning "this message has been accepted and I won't 
lose it for frivolous reasons."

Similarly, we can say (if we want) that a successful STORE of a 
\Deleted flag for a message doesn't mean "Mark this for deletion and 
expunge it whenever you feel like it", but rather "Mark this for 
deletion and expunge it when you get an EXPUNGE or CLOSE command."

>How can a client know that an unexpected EXPUNGE of messages 
>occurred because of the server's capricious behavior, as opposed to 
>some other client having issued an EXPUNGE?  It can't.

Absolutely irrelevant. A client can't tell the difference and must be 
coded to accept untagged EXPUNGE responses. But if the requirement 
were in the document, the user could be guaranteed that if they mark 
a message for deletion (i.e., put it in the virtual "Trash"), it 
won't be expunged unless:

1. They performed the action in their client which called the EXPUNGE 
or CLOSE command.
2. Someone else who shared the mailbox did an EXPUNGE or CLOSE command.
3. Their server is not following the IMAP standard.

We all have to code (and document to the user) dealing with things of 
type 1 and 2. Things of type 3 we can dismiss. We can't crash or do 
something stupid, but we can sure tell our users, "Sorry, your server 
is broken. We're not going to write some special Trash mailbox code 
to fix it."

>I don't know of any server that auto-EXPUNGEs...

Indeed, by the same people that I initially asked about this 
behavior, I was told that any server that did would be soundly 
beat-up on by the community. That fact ought to be documented.

>but there's probably someone out there who would consider it 
>capricious to prohibit server auto-EXPUNGE. Observing that all 
>clients are required to handle the event anyway, he'll just ignore 
>the prohibition.

Implementors ignore countless prohibitions in standards now. That's 
utterly irrelevant too. That a prohibition exists defines what the 
community thinks are the standards of protocol behavior. My argument 
is that if we already believe auto-EXPUNGE is prohibited behavior, we 
should document that. We have to code around stupidity of some broken 
implementations, but having the ability to call something broken goes 
a long way.

If we all believe that auto-EXPUNGE is wrong, please document that.

pr

-- 
Pete Resnick <mailto:presnick@qualcomm.com>
Eudora Engineering - QUALCOMM Incorporated
Ph: (217)337-6377 or (858)651-4478, Fax: (858)651-1102


Received: by ns.secondary.com (8.9.3/8.9.3) id LAA01970 for ietf-imapext-bks; Fri, 19 Jan 2001 11:34:30 -0800 (PST)
Received: from episteme-software.com (presnick-fw.flexabit.net [64.198.230.34]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA01965 for <ietf-imapext@imc.org>; Fri, 19 Jan 2001 11:34:29 -0800 (PST)
Received: from [64.198.230.35] (64.198.230.35) by episteme-software.com with ESMTP (Eudora Internet Mail Server 3.0.2); Fri, 19 Jan 2001 10:28:39 -0600
Mime-Version: 1.0
X-Sender: resnick@resnick1.qualcomm.com (Unverified)
Message-Id: <a05100803b68e18660965@[64.198.230.35]>
In-Reply-To: <MailManager.979853626.11673.mrc@Ikkoku-Kan.Panda.COM>
References: <MailManager.979853626.11673.mrc@Ikkoku-Kan.Panda.COM>
X-Mailer: Eudora [Macintosh version 5.1a1-12.00]
Date: Fri, 19 Jan 2001 10:28:37 -0600
To: Mark Crispin <MRC@cac.washington.edu>
From: Pete Resnick <presnick@qualcomm.com>
Subject: Delete-Expunge (Was: Move?)
Cc: ietf-imapext@imc.org
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
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 1/18/01 at 1:33 PM -0800, Mark Crispin wrote:

>You are confusing a user interface (and server storage) issue with a 
>protocol issue.  The client can present a "Trash" view to the user, 
>while still using the IMAP delete-expunge model.  It should; and 
>most clients do.

While you're trying to get the IMAP rev to last call, this might be a 
good time to ask:

There is a reason client writers provide a "Trash" mailbox mode 
instead of the IMAP delete-expunge mode. (Eudora, BTW, provides both 
modes.) I have heard the claim that it is compliant behavior 
according to the IMAP specification for a server to expunge messages 
which are marked \Deleted even if it receives no EXPUNGE or CLOSE 
command and even if the mailbox is not shared. Now, I carefully went 
through imapv-14 yesterday looking for support for this claim. There 
are several notes about untagged EXPUNGE responses that I might 
interpret to mean this, but there was no direct note one way or the 
other.

If it is true that servers can expunge at will, then there is no way 
to achieve the semantics of a "Trash" mailbox with the IMAP 
delete-expunge model: There is no way to say, "Mark this message for 
deletion and permanently delete it only when I tell you to." If the 
widespread belief is not true, and servers (barring nasty error 
conditions) are only allowed to expunge when they are explicitly told 
to, that should be clarified in the spec. I firmly believe that with 
such assurance, clients will stop playing this "Trash" mailbox game.

pr

-- 
Pete Resnick <mailto:presnick@qualcomm.com>
Eudora Engineering - QUALCOMM Incorporated
Ph: (217)337-6377 or (858)651-4478, Fax: (858)651-1102


Received: by ns.secondary.com (8.9.3/8.9.3) id KAA00945 for ietf-imapext-bks; Fri, 19 Jan 2001 10:40:02 -0800 (PST)
Received: from Tomobiki-Cho.CAC.Washington.EDU (pth@tomobiki-cho.cac.washington.edu [128.95.135.58]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id KAA00941 for <ietf-imapext@imc.org>; Fri, 19 Jan 2001 10:40:01 -0800 (PST)
Date: Fri, 19 Jan 2001 09:44:40 -0800 (PST)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: re: Delete-Expunge (Was: Move?)
To: Pete Resnick <presnick@qualcomm.com>
cc: ietf-imapext@imc.org
In-Reply-To: <a05100803b68e18660965@[64.198.230.35]>
Message-ID: <MailManager.979926280.12670.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>

Unfortunately, I do not believe that it is as easy as telling client writers
"servers are only allowed to expunge when they are explicitly told to do so."
I have had client writers tell me in no uncertain terms that they use a
"Trash" mailbox because it's less work for them to program it that way.

I don't see that situation changing, because "less work for me" is a powerful
motivator.  That is what is behind the demands for message MOVE and DELETE
operators.

Yes, "it is compliant behavior according to the IMAP specification for a
server to expunge messages which are marked \Deleted even if it receives no
EXPUNGE or CLOSE command and even if the mailbox is not shared."  It is
compliant because it is not explicitly forbidden.  It is not forbidden because
such a prohibition is unenforceable.

How can a client know that an unexpected EXPUNGE of messages occurred because
of the server's capricious behavior, as opposed to some other client having
issued an EXPUNGE?  It can't.

It's clearly possible for another client to issue an EXPUNGE.  Quite a bit of
protocol work was expended on stipulating when an unsolicited EXPUNGE can
happen.  None of that would have been necessary if shared EXPUNGE was
prohibited (as shared access is in POP3); but it was clear that people wanted
shared EXPUNGE.

I don't know of any server that auto-EXPUNGEs, but there's probably someone
out there who would consider it capricious to prohibit server auto-EXPUNGE.
Observing that all clients are required to handle the event anyway, he'll just
ignore the prohibition.



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id EAA08552 for ietf-imapext-bks; Fri, 19 Jan 2001 04:14:34 -0800 (PST)
Received: from bbnrel4.net.external.hp.com (bbnrel4.net.external.hp.com [155.208.254.68]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id EAA08542 for <ietf-imapext@imc.org>; Fri, 19 Jan 2001 04:14:31 -0800 (PST)
Received: from hpopd.pwd.hp.com (hpopd.pwd.hp.com [15.145.205.59]) by bbnrel4.net.external.hp.com (Postfix) with ESMTP id A297122797 for <ietf-imapext@imc.org>; Fri, 19 Jan 2001 13:20:17 +0100 (MET)
Received: from hpopd.pwd.hp.com (root@localhost) by hpopd.pwd.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.01 OpenMail) with ESMTP id MAA19792 for <ietf-imapext@imc.org>; Fri, 19 Jan 2001 12:20:16 GMT
X-OpenMail-Authenticated-Sender: <jch@pwd.hp.com> at 15.145.204.106
Received: from pwd.hp.com (ilex.pwd.hp.com 15.145.204.106) by hpopd.pwd.hp.com (OpenMail SMTP Relay X.de.bu.g0) via ESMTP; Fri, 19 Jan 2001 12:20:17 +0000 (GMT)
Message-ID: <3A6830FE.89E0935C@pwd.hp.com>
Date: Fri, 19 Jan 2001 12:20:14 +0000
From: John Haxby <jch@pwd.hp.com>
Organization: OpenMail R&D
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
Cc: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: Move?
References: <MailManager.979861183.11673.mrc@Ikkoku-Kan.Panda.COM>
Content-Type: multipart/mixed; boundary="------------86BF67392CCA2C8ABE2F11C2"
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>

This is a multi-part message in MIME format.
--------------86BF67392CCA2C8ABE2F11C2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Mark Crispin wrote:

> On Thu, 18 Jan 2001 15:12:59 -0800 (PST), Mark Crispin wrote:
> >       1) maximum message size
> >       2) maximum overall long-term storage use
> >       3) maximum transient (short-term) storage use
> >
> > The point being that the second and third values should be quite different.
>
> Another point needs to be made about the first value.  The need for it is to
> prevent a denial of service problem.  It should be impossible for a single
> message to push a user near his second limit to the third limit.

While modifying the server quota model would permit this, you then run into a
selection of interesting extra problems.   For example, how long does the
transient quota last?  Until the next logout?  For five minutes? Until all
current sessions have logged out?   Does (or can) the server know about this
last state?  What if the client crashes half way through the copy/mark/expunge
(as they often do :-) you're then left badly over quota and, depending on the
implementation, this may mean that messages to the user might be rejected.  You
might wind up with two copies of the message because the mark didn't work and
you don't know, then whether the copy is corrupt ...

Suppose, further, you have a Very Large Message, slightly over half the
available free space in the message store.   You cannot copy that, regardless of
any quota systems (fortunately, the better message stores copy references which
neatly gets around this).

Quite apart from the difficulties of designing, yet alone implementing, a quota
scheme that allows copy to work, there are the various temporal difficulties of
not having an atomic move operation in the protocol.  I've mentioned the
crashing one.   There's also the problem of multiple client access (which, as
I've said, is partially addressed by UID+, partially because it requires all
clients to cooperate and use UID+).

The quota problem is really not going be solved without MOVE and/or
DELETE (message) in the protocol, but then there's the slightly harder problem
of getting users to deploy a client that actually uses the extension ... and
this should never be underestimated.   (Various people, Mark mostly, have often
suggested that the client should be fixed to avoid a particular problem, but
have failed to realise that getting, say, 110,000 users to do *anything* is well
nigh impossible.)

jch

--------------86BF67392CCA2C8ABE2F11C2
Content-Type: text/x-vcard; charset=us-ascii;
 name="jch.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for John Haxby
Content-Disposition: attachment;
 filename="jch.vcf"

begin:vcard 
n:Haxby;John
tel;fax:+44 1344 763686
tel;work:+44 1344 763711
x-mozilla-html:FALSE
url:https://ecardfile.com/id/jch
org:OpenMail R&D
adr:;;Hewlett Packard<br>Nine Mile Ride;Wokingham;Berks;RG40 3LL;United Kingdom
version:2.1
email;internet:jch@pwd.hp.com
note;quoted-printable:<em>OpenMail for All!</em>&nbsp=3B<img src=3D"http://www.openmail.com/cyc/om/00/graphics/omlinux.jpg" width=3D53 height=3D62 align=3Dbottom>
x-mozilla-cpt:;25408
fn:John Haxby
end:vcard

--------------86BF67392CCA2C8ABE2F11C2--



Received: by ns.secondary.com (8.9.3/8.9.3) id DAA07320 for ietf-imapext-bks; Fri, 19 Jan 2001 03:59:32 -0800 (PST)
Received: from bbnrel4.net.external.hp.com (bbnrel4.net.external.hp.com [155.208.254.68]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id DAA07314 for <ietf-imapext@imc.org>; Fri, 19 Jan 2001 03:59:30 -0800 (PST)
Received: from hpopd.pwd.hp.com (hpopd.pwd.hp.com [15.145.205.59]) by bbnrel4.net.external.hp.com (Postfix) with ESMTP id 011BE21FB3; Fri, 19 Jan 2001 13:05:11 +0100 (MET)
Received: from hpopd.pwd.hp.com (root@localhost) by hpopd.pwd.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.01 OpenMail) with ESMTP id MAA19001; Fri, 19 Jan 2001 12:04:58 GMT
X-OpenMail-Authenticated-Sender: <jch@pwd.hp.com> at 15.145.204.106
Received: from pwd.hp.com (ilex.pwd.hp.com 15.145.204.106) by hpopd.pwd.hp.com (OpenMail SMTP Relay X.de.bu.g0) via ESMTP; Fri, 19 Jan 2001 12:05:11 +0000 (GMT)
Message-ID: <3A682D63.586EA1C8@pwd.hp.com>
Date: Fri, 19 Jan 2001 12:04:51 +0000
From: John Haxby <jch@pwd.hp.com>
Organization: OpenMail R&D
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Edward Hibbert <EH@dataconnection.com>
Cc: ietf-imapext@imc.org
Subject: Re: Move?
References: <EF7AC4BB3DC1D411A18E0002B313CC9D091563@rich.datcon.co.uk>
Content-Type: multipart/mixed; boundary="------------6DA3E24986CBE1C5325A9D95"
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>

This is a multi-part message in MIME format.
--------------6DA3E24986CBE1C5325A9D95
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Edward Hibbert wrote:

> Seems to me that deprecating clients which behave like this isn't going to
> be effective as a method of resolving the problem long term - as a user I
> find the Deleted Items folder much more useful than having messages in the
> same folder marked as deleted cluttering up the view.  Opinions clearly vary
> but I think there is a body of support for this approach and for the
> forseeable future there are going to be clients which have this model.
>

I agree.  The trouble with forcing any one model is that different users prefer
different things -- some like mark/delete, some like move to wastebasket, and
some like to just delete.   This leads users to choose specific clients, or
configure clients like Netscape in a particular way.   It seems rather odd that
the IMAP protocol should dictate user preferences ...

>
> Perhaps we should look at an extension for MOVE, though I'm not sure I'm
> competent to draft one.  I know Mark objects to this - what about other
> folk?
>

I'm not competant either.   To draft an extension, I mean.   However, I'll
happily review any extension that would provide MOVE (and preferably its
companion, DELETE).

jch


--------------6DA3E24986CBE1C5325A9D95
Content-Type: text/x-vcard; charset=us-ascii;
 name="jch.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for John Haxby
Content-Disposition: attachment;
 filename="jch.vcf"

begin:vcard 
n:Haxby;John
tel;fax:+44 1344 763686
tel;work:+44 1344 763711
x-mozilla-html:FALSE
url:https://ecardfile.com/id/jch
org:OpenMail R&D
adr:;;Hewlett Packard<br>Nine Mile Ride;Wokingham;Berks;RG40 3LL;United Kingdom
version:2.1
email;internet:jch@pwd.hp.com
note;quoted-printable:<em>OpenMail for All!</em>&nbsp=3B<img src=3D"http://www.openmail.com/cyc/om/00/graphics/omlinux.jpg" width=3D53 height=3D62 align=3Dbottom>
x-mozilla-cpt:;25408
fn:John Haxby
end:vcard

--------------6DA3E24986CBE1C5325A9D95--



Received: by ns.secondary.com (8.9.3/8.9.3) id PAA14621 for ietf-imapext-bks; Thu, 18 Jan 2001 15:36:40 -0800 (PST)
Received: from Tomobiki-Cho.CAC.Washington.EDU (ph18@tomobiki-cho.cac.washington.edu [128.95.135.58]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id PAA14617 for <ietf-imapext@IMC.ORG>; Thu, 18 Jan 2001 15:36:39 -0800 (PST)
Date: Thu, 18 Jan 2001 15:39:43 -0800 (PST)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: RE: Move?
To: IMAP Extensions WG <ietf-imapext@imc.org>
In-Reply-To: <MailManager.979859579.11673.mrc@Ikkoku-Kan.Panda.COM>
Message-ID: <MailManager.979861183.11673.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>

On Thu, 18 Jan 2001 15:12:59 -0800 (PST), Mark Crispin wrote:
> 	1) maximum message size
> 	2) maximum overall long-term storage use
> 	3) maximum transient (short-term) storage use
>
> The point being that the second and third values should be quite different.

Another point needs to be made about the first value.  The need for it is to
prevent a denial of service problem.  It should be impossible for a single
message to push a user near his second limit to the third limit.

Consequently, Q3 > Q2, Q3-Q2 > Q1



Received: by ns.secondary.com (8.9.3/8.9.3) id PAA14544 for ietf-imapext-bks; Thu, 18 Jan 2001 15:31:55 -0800 (PST)
Received: from Tomobiki-Cho.CAC.Washington.EDU (jrr@tomobiki-cho.cac.washington.edu [128.95.135.58]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id PAA14540 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 15:31:50 -0800 (PST)
Date: Thu, 18 Jan 2001 15:12:59 -0800 (PST)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: RE: Move?
To: Edward Hibbert <EH@dataconnection.com>
cc: "'Larry Osterman'" <larryo@exchange.MICROSOFT.com>, Caleb Clausen <clausen@connsys.com>, ietf-imapext@imc.org
In-Reply-To: <EF7AC4BB3DC1D411A18E0002B313CC9D091564@rich.datcon.co.uk>
Message-ID: <MailManager.979859579.11673.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>

On Thu, 18 Jan 2001 22:40:12 -0000, Edward Hibbert wrote:
> So, how is one to allow a client MOVE operation - which feels to me as
> though it should work as long as you are below your quota - and
> simultaneously not violate server quota limits?  Violating quota limits is
> anathema to some of our ISP customers.

Today, a client has to do COPY-STORE \DELETED.  I contend that this is
correct, since, unlike the proposed MOVE, it is reversible.  This is
important, not just from the perspective of allowing the user to "undo".

Specifically, if the MOVE operation fails for any reason -- such as a quota
exceeded condition at the target -- the state prior to the MOVE has to be
restored.  You can't do this unless the mail store implements MOVE of multiple
messages as an atomic operation; furthermore that it must lock the source
mailbox against any other operations until the MOVE is complete (especially
append of new messages or EXPUNGE of the moved messages); and on top of that
MOVE must guarantee that it can reverse without quota problems (suppose the
source mailbox is currently over quota).

A further complication exists with any other client which has the mailbox
selected at the time a MOVE is going on; that client can not get the untagged
EXPUNGE until it does a "safe" command.  The question then becomes about how
you maintain the necessary zombie state (which probably requires leaving
ghosts of the message behind...hence not solving the quota problem); since
MOVE forces an EXPUNGE the server can't take the easy out of no-op'ing the
EXPUNGE until such time as there is exclusive access.

These entail a lot of difficult requirements for MOVE, and ones that are
likely to be ignored by careless implementors who would just do a bunch of
rename() calls.  The result would be worse than the original problem.

A better solution is to reconsider your assumptions behind quotas; and in
particular the idea that a user's permanent space allotment should equal his
transient space allotment.  I spent many years in a past life (1973-1984)
dealing with file quotas in which users were constantly at the limit of their
quota.  Far more money was spent in human salaries than would have been
expended by buying more disk -- and that was at a time when disks were
expensive!

More to the point: a user with a 5MB quota should not be receiving 4.5MB MIME
godzillagrams.  Either his quota is much too low, or his expectations of what
size messages he can receive are too high.  A reasonable quota facility needs
at least three values:
	1) maximum message size
	2) maximum overall long-term storage use
	3) maximum transient (short-term) storage use

The point being that the second and third values should be quite different.



Received: by ns.secondary.com (8.9.3/8.9.3) id OAA10783 for ietf-imapext-bks; Thu, 18 Jan 2001 14:35:12 -0800 (PST)
Received: from miles.dataconnection.com (smtp2.dataconnection.com [192.91.191.8]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id OAA10773 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 14:35:08 -0800 (PST)
Received: by miles.datcon.co.uk with Internet Mail Service (5.5.2653.19) id <CG0QSAR5>; Thu, 18 Jan 2001 22:40:09 -0000
Message-ID: <EF7AC4BB3DC1D411A18E0002B313CC9D091564@rich.datcon.co.uk>
From: Edward Hibbert <EH@dataconnection.com>
To: "'Mark Crispin'" <MRC@cac.washington.edu>
Cc: "'Larry Osterman'" <larryo@exchange.MICROSOFT.com>, Caleb Clausen <clausen@connsys.com>, ietf-imapext@imc.org
Subject: RE: Move?
Date: Thu, 18 Jan 2001 22:40:12 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain
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:

> Leaving aside the quota problem, 

But this is precisely the issue I want to address.  We can argue all day
about whether Trash folders are a good idea and how clients can best
represent them.  Let's not do that because it's emotive and outside the
scope of the server.  And I implement servers so I'm not too interested in
it.

Instead, let's concentrate on the quota issue, which applies just as much in
moving mail from one folder to another.  I'm assuming this is an operation
that most clients do.

So, how is one to allow a client MOVE operation - which feels to me as
though it should work as long as you are below your quota - and
simultaneously not violate server quota limits?  Violating quota limits is
anathema to some of our ISP customers.

One way round the problem would be to say that the quota should apply to
individual folders rather than mailboxes (apologies for the violation of
IMAP terminology here).  But that seems artificial to me, and more
irritating to users.

So I don't see a way of solving this without a MOVE extension.  I'm not
arguing that this is the most serious problem in the world, and I'm prepared
to be convinced that it's not worth doing anything about except perhaps
adding something to the implementation notes.  But I'd like to see whether
I'm missing some way of solving this, or whether there's support for a MOVE
extension.

Regards,

Edward.

Regards,

Edward.


Received: by ns.secondary.com (8.9.3/8.9.3) id NAA09166 for ietf-imapext-bks; Thu, 18 Jan 2001 13:51:43 -0800 (PST)
Received: from gollum.esys.ca (dhcp198-52.esys.ca [198.161.92.52]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA09156 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 13:51:36 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by gollum.esys.ca (8.11.1/8.11.1) with ESMTP id f0ILuer01976; Thu, 18 Jan 2001 14:56:40 -0700 (MST) (envelope-from lyndon@gollum.esys.ca)
Message-Id: <200101182156.f0ILuer01976@gollum.esys.ca>
X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4
From: Lyndon Nerenberg <lyndon@messagingdirect.com>
To: Edward Hibbert <EH@dataconnection.com>
cc: ietf-imapext@imc.org
Subject: Re: Move? 
In-reply-to: Your message of "Thu, 18 Jan 2001 20:33:08 GMT." <EF7AC4BB3DC1D411A18E0002B313CC9D091563@rich.datcon.co.uk> 
Organization: ACI Worldwide
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 18 Jan 2001 14:56:40 -0700
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>

> Seems to me that deprecating clients which behave like this isn't going to
> be effective as a method of resolving the problem long term - as a user I
> find the Deleted Items folder much more useful than having messages in the
> same folder marked as deleted cluttering up the view.

So fix the GUI interface. There is nothing on the planet that
says a message marked \Deleted cannot be displayed by the client as if
it was in a different folder (called Trash or whatever else you want
to call it). This is *not* rocket science. (Simeon had functionality
in it similar to this five years ago.)

--lyndon



Received: by ns.secondary.com (8.9.3/8.9.3) id NAA08933 for ietf-imapext-bks; Thu, 18 Jan 2001 13:47:17 -0800 (PST)
Received: from Tomobiki-Cho.CAC.Washington.EDU (vsl@tomobiki-cho.cac.washington.edu [128.95.135.58]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA08929 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 13:47:16 -0800 (PST)
Date: Thu, 18 Jan 2001 13:33:46 -0800 (PST)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: RE: Move?
To: Edward Hibbert <EH@dataconnection.com>
cc: "'Larry Osterman'" <larryo@exchange.MICROSOFT.com>, Caleb Clausen <clausen@connsys.com>, ietf-imapext@imc.org
In-Reply-To: <EF7AC4BB3DC1D411A18E0002B313CC9D091563@rich.datcon.co.uk>
Message-ID: <MailManager.979853626.11673.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>

> as a user I
> find the Deleted Items folder much more useful than having messages in the
> same folder marked as deleted cluttering up the view.  Opinions clearly vary
> but I think there is a body of support for this approach and for the
> forseeable future there are going to be clients which have this model.

You are confusing a user interface (and server storage) issue with a protocol
issue.  The client can present a "Trash" view to the user, while still using
the IMAP delete-expunge model.  It should; and most clients do.  Doing so also
neatly avoids the quota problem.

Leaving aside the quota problem, as a protocol operation, the Trash model is
fatally flawed -- unlike deleted status, it is impossible to reverse a "Trash"
operation.  The only thing you can do is add a new message (with a new UID!)
to the original mailbox containing the message in question.

Yes, it is highly unfortunate that one commonly-used client made the wrong
choice.  That program is disproportionately represented among my incoming
support question, due to this and certain other unfortunate design decisions.
We all have to make the best of it, but I don't think that breaking IMAP's
fundamentals is a good idea.

> Perhaps we should look at an extension for MOVE, though I'm not sure I'm
> competent to draft one.  I know Mark objects to this - what about other
> folk?

Let me emphasize:

I oppose the standardization of any extension which creates an independent
means from EXPUNGE to remove a message from a mailbox.  This is a very serious
violation of the IMAP architecture.

Even if this extension is promulgated over my objections, there is no reason
to believe that it will solve your problem.  It presupposes widespread
implementation, including in the particular client that you're purposing to
convenience -- assuming there is still any development in that program.



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id NAA06585 for ietf-imapext-bks; Thu, 18 Jan 2001 13:01:43 -0800 (PST)
Received: from coltrane.dataconnection.com (smtp.dataconnection.com [192.91.191.4]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA06576 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 13:01:40 -0800 (PST)
Received: by coltrane.datcon.co.uk with Internet Mail Service (5.5.2653.19) id <CG0SVPYB>; Thu, 18 Jan 2001 21:06:40 -0000
Message-ID: <EF7AC4BB3DC1D411A18E0002B313CC9D091563@rich.datcon.co.uk>
From: Edward Hibbert <EH@dataconnection.com>
To: "'Larry Osterman'" <larryo@exchange.MICROSOFT.com>, Caleb Clausen <clausen@connsys.com>
Cc: ietf-imapext@imc.org
Subject: RE: Move?
Date: Thu, 18 Jan 2001 20:33:08 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain; charset="iso-8859-1"
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

That's precisely right.  We do already make a reference when a COPY is done
(and for multirecipient messages), but if you don't charge that copy against
the quota then you have the problem of which of the messages actually holds
the size and therefore which one the user has to delete to free up the
space.  I guess you could split the charged size across the number of copies
and recalculate it each time you copy, but that gets silly, and as Larry
says, you end up with users deleting messages and wondering why their
mailbox is still full.

Another point to note is that references themselves consume some space - for
us the minimal message size, because they do have to have their own flags -
and so ought to be charged against the quota.

Seems to me that deprecating clients which behave like this isn't going to
be effective as a method of resolving the problem long term - as a user I
find the Deleted Items folder much more useful than having messages in the
same folder marked as deleted cluttering up the view.  Opinions clearly vary
but I think there is a body of support for this approach and for the
forseeable future there are going to be clients which have this model.

Perhaps we should look at an extension for MOVE, though I'm not sure I'm
competent to draft one.  I know Mark objects to this - what about other
folk?

Regards,

Edward.

-----Original Message-----
From: Larry Osterman [mailto:larryo@Exchange.Microsoft.com]
Sent: Thursday, January 18, 2001 8:11 PM
To: Caleb Clausen; Edward Hibbert
Cc: ietf-imapext@imc.org
Subject: RE: Move?


It's possible that Edwards' data store is like the Exchange store, which
natively implements this (we call it "Single Instance Storage").  The
problem is that in order to make the quota management work correctly,
the store needs to charge each instance against the quota - this means
that the amount of quota charged against a particular user is greater
than the sum of the storage they are using, however if we don't do it
this way, there is no way for a client to determine how their quota is
being used - users get REALLY annoyed if they delete an item to get
below their quota only to discover that it doesn't help them.

-----Original Message-----
From: Caleb Clausen [mailto:clausen@connsys.com]
Sent: Thursday, January 18, 2001 11:08 AM
To: Edward Hibbert
Cc: 'ietf-imapext@imc.org'
Subject: RE: Move?


From:           	Edward Hibbert <EH@dataconnection.com>
> My motivation for a MOVE is not based on an infatuation with OS
commands
> :-).  I have a nice transactional database with rollback and all that
good
> stuff.
> 
> Instead it's about quota.  At the moment we enforce the quota limit on
the
> COPY command.  We have come up against a client which maintains a
Deleted
> Items folder (mailbox in IMAP terminology), so it moves items into it
when
> the user deletes them.  To do the move it does a COPY/DELETE/EXPUNGE.

> 
> But this process requires that you have as much free quota as the size
of
> the message you're trying to move - which is obviously not possible if
the
> message is itself more than half your quota limit.
> 
> Changing the client is not really an option, so I'm left with couple
of
> ideas, neither of which I like very much:
> - don't check quota on COPY
> - hardcode the Deleted Items folder name and don't check quota if
we're
> copying to there.
> 
> Obviously with a MOVE command it would be clear that you weren't
trying to
> violate your quota.  It wouldn't help me just now because I can't
change the
> client to use it, but it seems to me that this is an argument in
favour of
> it.
> 
> Do any of you folk have any other ideas as to how to solve this?

well, here's an idea. use reference counts internally on your 
messages. that way, you wouldn't have to have room for an extra 
message when the user does a COPY, just an extra reference.

i haven't given this a lot of thought; i don't know how hard it would 
be to implement. one thing that springs to mind is the flags; each 
reference would have to have it's own set of them.

"For, I say fortunately, I always carry a spare set 
of feathers."
  --Foghorn Leghorn


Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id MAA03688 for ietf-imapext-bks; Thu, 18 Jan 2001 12:07:40 -0800 (PST)
Received: from DF-INET-1.dogfoodinternet.com (df-inet1.exchange.microsoft.com [131.107.8.8]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id MAA03684 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 12:07:38 -0800 (PST)
Received: from df-virus2.platinum.corp.microsoft.com ([172.30.236.33]) by DF-INET-1.dogfoodinternet.com with Microsoft SMTPSVC(5.0.2195.1600); Thu, 18 Jan 2001 12:10:15 -0800
Received: from 172.30.236.11 by df-virus2.platinum.corp.microsoft.com (InterScan E-Mail VirusWall NT); Thu, 18 Jan 2001 12:10:59 -0800 (Pacific Standard Time)
Received: from df-goofy.platinum.corp.microsoft.com ([172.30.236.130]) by yuri.dns.microsoft.com with Microsoft SMTPSVC(5.0.2195.2532); Thu, 18 Jan 2001 12:10:58 -0800
X-MimeOLE: Produced By Microsoft Exchange V6.0.4604.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Subject: RE: Move?
Date: Thu, 18 Jan 2001 12:10:56 -0800
Message-ID: <52E28A515344104299B5E7AABC32045FD501AF@df-goofy.dogfood>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Move?
Thread-Index: AcCBic1a+ezYHCqQTVuTJKM3dduiiQAAH98g
From: "Larry Osterman" <larryo@exchange.MICROSOFT.com>
To: "Caleb Clausen" <clausen@connsys.com>, "Edward Hibbert" <EH@dataconnection.com>
Cc: <ietf-imapext@imc.org>
X-OriginalArrivalTime: 18 Jan 2001 20:10:58.0469 (UTC) FILETIME=[C5760550:01C0818A]
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by ns.secondary.com id MAA03685
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>

It's possible that Edwards' data store is like the Exchange store, which
natively implements this (we call it "Single Instance Storage").  The
problem is that in order to make the quota management work correctly,
the store needs to charge each instance against the quota - this means
that the amount of quota charged against a particular user is greater
than the sum of the storage they are using, however if we don't do it
this way, there is no way for a client to determine how their quota is
being used - users get REALLY annoyed if they delete an item to get
below their quota only to discover that it doesn't help them.

-----Original Message-----
From: Caleb Clausen [mailto:clausen@connsys.com]
Sent: Thursday, January 18, 2001 11:08 AM
To: Edward Hibbert
Cc: 'ietf-imapext@imc.org'
Subject: RE: Move?


From:           	Edward Hibbert <EH@dataconnection.com>
> My motivation for a MOVE is not based on an infatuation with OS
commands
> :-).  I have a nice transactional database with rollback and all that
good
> stuff.
> 
> Instead it's about quota.  At the moment we enforce the quota limit on
the
> COPY command.  We have come up against a client which maintains a
Deleted
> Items folder (mailbox in IMAP terminology), so it moves items into it
when
> the user deletes them.  To do the move it does a COPY/DELETE/EXPUNGE.

> 
> But this process requires that you have as much free quota as the size
of
> the message you're trying to move - which is obviously not possible if
the
> message is itself more than half your quota limit.
> 
> Changing the client is not really an option, so I'm left with couple
of
> ideas, neither of which I like very much:
> - don't check quota on COPY
> - hardcode the Deleted Items folder name and don't check quota if
we're
> copying to there.
> 
> Obviously with a MOVE command it would be clear that you weren't
trying to
> violate your quota.  It wouldn't help me just now because I can't
change the
> client to use it, but it seems to me that this is an argument in
favour of
> it.
> 
> Do any of you folk have any other ideas as to how to solve this?

well, here's an idea. use reference counts internally on your 
messages. that way, you wouldn't have to have room for an extra 
message when the user does a COPY, just an extra reference.

i haven't given this a lot of thought; i don't know how hard it would 
be to implement. one thing that springs to mind is the flags; each 
reference would have to have it's own set of them.

"For, I say fortunately, I always carry a spare set 
of feathers."
  --Foghorn Leghorn


Received: by ns.secondary.com (8.9.3/8.9.3) id LAA01511 for ietf-imapext-bks; Thu, 18 Jan 2001 11:31:39 -0800 (PST)
Received: from Tomobiki-Cho.CAC.Washington.EDU (scipio@tomobiki-cho.cac.washington.edu [128.95.135.58]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA01504 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 11:31:38 -0800 (PST)
Date: Thu, 18 Jan 2001 11:23:08 -0800 (PST)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: RE: Move?
To: Caleb Clausen <clausen@connsys.com>
cc: Edward Hibbert <EH@dataconnection.com>, "'ietf-imapext@imc.org'" <ietf-imapext@imc.org>
In-Reply-To: <3A66CE74.32189.3BC9C2@localhost>
Message-ID: <MailManager.979845788.11673.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>

On Thu, 18 Jan 2001 11:07:32 -0800, Caleb Clausen wrote:
> well, here's an idea. use reference counts internally on your
> messages. that way, you wouldn't have to have room for an extra
> message when the user does a COPY, just an extra reference.

That's an interesting point.  link() is a perfectly valid way of implementing
COPY for the message data since it is static.  Parts of the metadata --
INTERNALDATE, RFC822.SIZE, ENVELOPE, BODYSTRUCTURE -- can also be lunk.
However, each mailbox needs its own copy of other metadata, most notably FLAGS
and UID.

If the underlying problem is that users can't clean their mail due to quotas
and Netscape's use of a "Trash" mailbox, I suggest that the problem is in
Netscape and not in any IMAP server.  The Trash mailbox is a Netscape-ism and
is not sanctioned by IMAP in any way.  Clients which use IMAP the way IMAP was
intended to use don't have this problem.

You may be able to work around the problem by applying separate quotas to the
Trash folder; but IMHO it's also a good answer to say "use another client."



Received: by ns.secondary.com (8.9.3/8.9.3) id LAA28920 for ietf-imapext-bks; Thu, 18 Jan 2001 11:01:20 -0800 (PST)
Received: from mail.connectedsystems.com (host16.connectedsystems.com [205.227.183.113]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA28915 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 11:01:18 -0800 (PST)
Received: from software-caleb (red.hq.connsys.com [192.168.0.32]) by mail.connectedsystems.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id Z5L08J1Z; Thu, 18 Jan 2001 11:07:37 -0800
From: "Caleb Clausen" <clausen@connsys.com>
To: Edward Hibbert <EH@dataconnection.com>
Date: Thu, 18 Jan 2001 11:07:32 -0800
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: RE: Move?
CC: "'ietf-imapext@imc.org'" <ietf-imapext@imc.org>
Message-ID: <3A66CE74.32189.3BC9C2@localhost>
In-reply-to: <EF7AC4BB3DC1D411A18E0002B313CC9D091520@rich.datcon.co.uk>
X-mailer: Pegasus Mail for Win32 (v3.12c)
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>

From:           	Edward Hibbert <EH@dataconnection.com>
> My motivation for a MOVE is not based on an infatuation with OS commands
> :-).  I have a nice transactional database with rollback and all that good
> stuff.
> 
> Instead it's about quota.  At the moment we enforce the quota limit on the
> COPY command.  We have come up against a client which maintains a Deleted
> Items folder (mailbox in IMAP terminology), so it moves items into it when
> the user deletes them.  To do the move it does a COPY/DELETE/EXPUNGE.  
> 
> But this process requires that you have as much free quota as the size of
> the message you're trying to move - which is obviously not possible if the
> message is itself more than half your quota limit.
> 
> Changing the client is not really an option, so I'm left with couple of
> ideas, neither of which I like very much:
> - don't check quota on COPY
> - hardcode the Deleted Items folder name and don't check quota if we're
> copying to there.
> 
> Obviously with a MOVE command it would be clear that you weren't trying to
> violate your quota.  It wouldn't help me just now because I can't change the
> client to use it, but it seems to me that this is an argument in favour of
> it.
> 
> Do any of you folk have any other ideas as to how to solve this?

well, here's an idea. use reference counts internally on your 
messages. that way, you wouldn't have to have room for an extra 
message when the user does a COPY, just an extra reference.

i haven't given this a lot of thought; i don't know how hard it would 
be to implement. one thing that springs to mind is the flags; each 
reference would have to have it's own set of them.

"For, I say fortunately, I always carry a spare set 
of feathers."
  --Foghorn Leghorn


Received: by ns.secondary.com (8.9.3/8.9.3) id JAA25985 for ietf-imapext-bks; Thu, 18 Jan 2001 09:44:12 -0800 (PST)
Received: from eagle.oceana.com (eagle.oceana.com [208.17.123.12]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id JAA25980 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 09:44:10 -0800 (PST)
Received: from ken.oceana.com by eagle.oceana.com (Switch-2.0.5/Switch-2.0.5) with ESMTP id f0IHnKP09715; Thu, 18 Jan 2001 12:49:20 -0500
Message-ID: <3A672C02.ECB4D405@oceana.com>
Date: Thu, 18 Jan 2001 12:46:42 -0500
From: Ken Murchison <ken@oceana.com>
Organization: Oceana Matrix Ltd.
X-Mailer: Mozilla 4.73 [en] (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Edward Hibbert <EH@dataconnection.com>
CC: "'ietf-imapext@imc.org'" <ietf-imapext@imc.org>
Subject: Re: Move?
References: <EF7AC4BB3DC1D411A18E0002B313CC9D091520@rich.datcon.co.uk>
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>

Edward Hibbert wrote:
> 
> My motivation for a MOVE is not based on an infatuation with OS commands
> :-).  I have a nice transactional database with rollback and all that good
> stuff.
> 
> Instead it's about quota.  At the moment we enforce the quota limit on the
> COPY command.  We have come up against a client which maintains a Deleted
> Items folder (mailbox in IMAP terminology), so it moves items into it when
> the user deletes them.  To do the move it does a COPY/DELETE/EXPUNGE.
> 
> But this process requires that you have as much free quota as the size of
> the message you're trying to move - which is obviously not possible if the
> message is itself more than half your quota limit.
> 
> Changing the client is not really an option, so I'm left with couple of
> ideas, neither of which I like very much:
> - don't check quota on COPY
> - hardcode the Deleted Items folder name and don't check quota if we're
> copying to there.
> 
> Obviously with a MOVE command it would be clear that you weren't trying to
> violate your quota.  It wouldn't help me just now because I can't change the
> client to use it, but it seems to me that this is an argument in favour of
> it.
> 
> Do any of you folk have any other ideas as to how to solve this?

We had a similar problem here with people using Communicator with a
Trash folder.  If they ran up against their quota limit, they couldn't
delete messages for the reason you describe above.

I solved it by placing a separate QUOTAROOT (via Cyrus imapd) on the
Trash folder so "deleted" items dont count against their "main" quota.

Ken
-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp


Received: by ns.secondary.com (8.9.3/8.9.3) id BAA17743 for ietf-imapext-bks; Thu, 18 Jan 2001 01:45:50 -0800 (PST)
Received: from bbnrel4.net.external.hp.com (bbnrel4.net.external.hp.com [155.208.254.68]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id BAA17734 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 01:45:48 -0800 (PST)
Received: from hpopd.pwd.hp.com (hpopd.pwd.hp.com [15.145.205.59]) by bbnrel4.net.external.hp.com (Postfix) with ESMTP id 3DE7322804; Thu, 18 Jan 2001 10:51:28 +0100 (MET)
Received: from hpopd.pwd.hp.com (root@localhost) by hpopd.pwd.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.01 OpenMail) with ESMTP id JAA21724; Thu, 18 Jan 2001 09:50:55 GMT
X-OpenMail-Authenticated-Sender: <jch@pwd.hp.com> at 15.145.204.106
Received: from pwd.hp.com (ilex.pwd.hp.com 15.145.204.106) by hpopd.pwd.hp.com (OpenMail SMTP Relay X.de.bu.g0) via ESMTP; Thu, 18 Jan 2001 09:51:17 +0000 (GMT)
Message-ID: <3A66BC7C.346FF750@pwd.hp.com>
Date: Thu, 18 Jan 2001 09:50:52 +0000
From: John Haxby <jch@pwd.hp.com>
Organization: OpenMail R&D
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Edward Hibbert <EH@dataconnection.com>
Cc: "'ietf-imapext@imc.org'" <ietf-imapext@imc.org>
Subject: Re: Move?
References: <EF7AC4BB3DC1D411A18E0002B313CC9D091520@rich.datcon.co.uk>
Content-Type: multipart/mixed; boundary="------------AD66766772BFAF0AAFAAFD54"
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>

This is a multi-part message in MIME format.
--------------AD66766772BFAF0AAFAAFD54
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Edward Hibbert wrote:

> My motivation for a MOVE is not based on an infatuation with OS commands
> :-).  I have a nice transactional database with rollback and all that good
> stuff.
>
> Instead it's about quota.  At the moment we enforce the quota limit on the
> COPY command.  We have come up against a client which maintains a Deleted
> Items folder (mailbox in IMAP terminology), so it moves items into it when
> the user deletes them.  To do the move it does a COPY/DELETE/EXPUNGE.
>
> But this process requires that you have as much free quota as the size of
> the message you're trying to move - which is obviously not possible if the
> message is itself more than half your quota limit.

We have exactly this problem as well.   We just ignore the limitation.  At some
stage, someone will complain and then we might have to do something about it.
I have also given up on the idea of having a DELETE command as well.   (Quite
apart from the various race conditions in a mark/delete scheme, we get problems
with users who delete a message but since the client doesn't actually delete it
just yet, you don't drop below quota.   One of these days, someone is going to
decide that merely modifying messages when you are over quota is a bad move and
you won't be able to get below it again...)

jch, dispirited

--------------AD66766772BFAF0AAFAAFD54
Content-Type: text/x-vcard; charset=us-ascii;
 name="jch.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for John Haxby
Content-Disposition: attachment;
 filename="jch.vcf"

begin:vcard 
n:Haxby;John
tel;fax:+44 1344 763686
tel;work:+44 1344 763711
x-mozilla-html:FALSE
url:https://ecardfile.com/id/jch
org:OpenMail R&D
adr:;;Hewlett Packard<br>Nine Mile Ride;Wokingham;Berks;RG40 3LL;United Kingdom
version:2.1
email;internet:jch@pwd.hp.com
note;quoted-printable:<em>OpenMail for All!</em>&nbsp=3B<img src=3D"http://www.openmail.com/cyc/om/00/graphics/omlinux.jpg" width=3D53 height=3D62 align=3Dbottom>
x-mozilla-cpt:;25408
fn:John Haxby
end:vcard

--------------AD66766772BFAF0AAFAAFD54--



Received: (from majordomo@localhost) by ns.secondary.com (8.9.3/8.9.3) id BAA11762 for ietf-imapext-bks; Thu, 18 Jan 2001 01:01:07 -0800 (PST)
Received: from coltrane.dataconnection.com (smtp.dataconnection.com [192.91.191.4]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id BAA11746 for <ietf-imapext@imc.org>; Thu, 18 Jan 2001 01:01:03 -0800 (PST)
Received: by coltrane.datcon.co.uk with Internet Mail Service (5.5.2653.19) id <CG0SV3K5>; Thu, 18 Jan 2001 09:06:03 -0000
Message-ID: <EF7AC4BB3DC1D411A18E0002B313CC9D091520@rich.datcon.co.uk>
From: Edward Hibbert <EH@dataconnection.com>
To: "'Mark Crispin'" <MRC@cac.washington.edu>
Cc: "'ietf-imapext@imc.org'" <ietf-imapext@imc.org>
Subject: RE: Move?
Date: Thu, 18 Jan 2001 09:06:04 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain; charset="iso-8859-1"
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>

My motivation for a MOVE is not based on an infatuation with OS commands
:-).  I have a nice transactional database with rollback and all that good
stuff.

Instead it's about quota.  At the moment we enforce the quota limit on the
COPY command.  We have come up against a client which maintains a Deleted
Items folder (mailbox in IMAP terminology), so it moves items into it when
the user deletes them.  To do the move it does a COPY/DELETE/EXPUNGE.  

But this process requires that you have as much free quota as the size of
the message you're trying to move - which is obviously not possible if the
message is itself more than half your quota limit.

Changing the client is not really an option, so I'm left with couple of
ideas, neither of which I like very much:
- don't check quota on COPY
- hardcode the Deleted Items folder name and don't check quota if we're
copying to there.

Obviously with a MOVE command it would be clear that you weren't trying to
violate your quota.  It wouldn't help me just now because I can't change the
client to use it, but it seems to me that this is an argument in favour of
it.

Do any of you folk have any other ideas as to how to solve this?

Regards,

Edward Hibbert
Internet Applications Group
Data Connection Ltd
Tel:	+44 131 662 1212		Fax:	+44 131 662 1345
Email:	eh@dataconnection.com	Web:	http://www.dataconnection.com

-----Original Message-----
From: Mark Crispin [mailto:MRC@CAC.Washington.EDU]
Sent: Wednesday, January 17, 2001 9:52 PM
To: Edward Hibbert
Cc: 'ietf-imapext@imc.org'
Subject: re: Move?


On Wed, 17 Jan 2001 21:47:16 -0000, Edward Hibbert wrote:
> There's a COPY command to copy an item from one mailbox to another.  But
so
> far as I'm aware there isn't a MOVE command, so a client has to do a COPY
> and then a DELETE (and possibly an EXPUNGE if it wants the item to
disappear
> from its view of the current folder, depending on how it presents this).

That is correct.

> Is there any particular reason why there isn't a MOVE command?

You just gave the reason: the functionality of a MOVE command can be done
with
the existing commands.  It also preserves the IMAP delete-expunge model in
which it is impossible to remove a message from a mailbox in a single step.

The obvious temptation for implementations which have a one-file/one-message
form of mail store would be to implement MOVE via a rename() system call;
it's
also the primary motivation for asking for it (the secondary reason is to
eliminate the additional RTT).  That violates the IMAP delete-expunge model.

An additional problem which is often overlooked with rename() is that COPY
requires that the operation succeed or fail atomicly.  There is no atomic
rename(); which means that if a rename() fails (e.g. due to disk quota in
the
target) the previous messages have to be rename()d back -- which could also
fail!

The bottom line here is that the rename() idea is an "attractive nuisance";
one that looks desirable on the surface but has serious problems.  Since
these
problems are not necessarily obvious, affirmative measures need to be in
place
to prevent it.

For MOVE, such affirmative measures would require the preservation of a
deleted copy in the source mailbox; hence resulting in the exact equivalent
of
COPY+STORE \DELETED.  This could be done, but such a command would just be
protocol bloat.


Received: by ns.secondary.com (8.9.3/8.9.3) id OAA02574 for ietf-imapext-bks; Wed, 17 Jan 2001 14:01:37 -0800 (PST)
Received: from Tomobiki-Cho.CAC.Washington.EDU (ajohnson@tomobiki-cho.cac.washington.edu [128.95.135.58]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id OAA02569 for <ietf-imapext@imc.org>; Wed, 17 Jan 2001 14:01:36 -0800 (PST)
Date: Wed, 17 Jan 2001 13:52:09 -0800 (PST)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: re: Move?
To: Edward Hibbert <EH@dataconnection.com>
cc: "'ietf-imapext@imc.org'" <ietf-imapext@imc.org>
In-Reply-To: <EF7AC4BB3DC1D411A18E0002B313CC9D09151C@rich.datcon.co.uk>
Message-ID: <MailManager.979768329.16184.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>

On Wed, 17 Jan 2001 21:47:16 -0000, Edward Hibbert wrote:
> There's a COPY command to copy an item from one mailbox to another.  But so
> far as I'm aware there isn't a MOVE command, so a client has to do a COPY
> and then a DELETE (and possibly an EXPUNGE if it wants the item to disappear
> from its view of the current folder, depending on how it presents this).

That is correct.

> Is there any particular reason why there isn't a MOVE command?

You just gave the reason: the functionality of a MOVE command can be done with
the existing commands.  It also preserves the IMAP delete-expunge model in
which it is impossible to remove a message from a mailbox in a single step.

The obvious temptation for implementations which have a one-file/one-message
form of mail store would be to implement MOVE via a rename() system call; it's
also the primary motivation for asking for it (the secondary reason is to
eliminate the additional RTT).  That violates the IMAP delete-expunge model.

An additional problem which is often overlooked with rename() is that COPY
requires that the operation succeed or fail atomicly.  There is no atomic
rename(); which means that if a rename() fails (e.g. due to disk quota in the
target) the previous messages have to be rename()d back -- which could also
fail!

The bottom line here is that the rename() idea is an "attractive nuisance";
one that looks desirable on the surface but has serious problems.  Since these
problems are not necessarily obvious, affirmative measures need to be in place
to prevent it.

For MOVE, such affirmative measures would require the preservation of a
deleted copy in the source mailbox; hence resulting in the exact equivalent of
COPY+STORE \DELETED.  This could be done, but such a command would just be
protocol bloat.



Received: by ns.secondary.com (8.9.3/8.9.3) id NAA01413 for ietf-imapext-bks; Wed, 17 Jan 2001 13:42:34 -0800 (PST)
Received: from miles.dataconnection.com (smtp2.dataconnection.com [192.91.191.8]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id NAA01407 for <ietf-imapext@imc.org>; Wed, 17 Jan 2001 13:42:31 -0800 (PST)
Received: by miles.datcon.co.uk with Internet Mail Service (5.5.2653.19) id <CG0QR9PB>; Wed, 17 Jan 2001 21:47:30 -0000
Message-ID: <EF7AC4BB3DC1D411A18E0002B313CC9D09151C@rich.datcon.co.uk>
From: Edward Hibbert <EH@dataconnection.com>
To: "'ietf-imapext@imc.org'" <ietf-imapext@imc.org>
Subject: Move?
Date: Wed, 17 Jan 2001 21:47:16 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain; charset="iso-8859-1"
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'm sure this is going to turn out to be a stupid question.

There's a COPY command to copy an item from one mailbox to another.  But so
far as I'm aware there isn't a MOVE command, so a client has to do a COPY
and then a DELETE (and possibly an EXPUNGE if it wants the item to disappear
from its view of the current folder, depending on how it presents this).

Is there any particular reason why there isn't a MOVE command?

Edward Hibbert
Internet Applications Group
Data Connection Ltd
Tel:	+44 131 662 1212		Fax:	+44 131 662 1345
Email:	eh@dataconnection.com	Web:	http://www.dataconnection.com



Received: by ns.secondary.com (8.9.3/8.9.3) id LAA06605 for ietf-imapext-bks; Fri, 5 Jan 2001 11:33:13 -0800 (PST)
Received: from Tomobiki-Cho.CAC.Washington.EDU (trungt@tomobiki-cho.cac.washington.edu [128.95.135.58]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA06600 for <ietf-imapext@IMC.ORG>; Fri, 5 Jan 2001 11:33:12 -0800 (PST)
Date: Fri, 5 Jan 2001 11:24:19 -0800 (PST)
From: Mark Crispin <MRC@cac.washington.edu>
Subject: Re: LAST CALL: IMAP base and MULTIAPPEND drafts
To: Simon Josefsson <simon+IMAP@josefsson.org>
cc: IMAP Interest List <IMAP@cac.washington.edu>, IMAP Extensions WG <ietf-imapext@imc.org>
In-Reply-To: <ilu66juryne.fsf@barbar.josefsson.org>
Message-ID: <MailManager.978722659.16184.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>

On 05 Jan 2001 13:06:45 +0100, Simon Josefsson wrote:
> Suggestion, replace:
>       8-bit characters
>       are permitted in the message.
> with
>       8-bit characters
>       are permitted in the message body.
> since 8-bit characters are not permitted at all in the header section
> of a message, I think.

Nominally, this is a good idea.  However, I have not made this change, and
unless there is strong concensus for it I don't intend to do so, for the
following reasons:

 1) it would require that both the IMAP base (which has similar wording) and
IMAP MULTIAPPEND documents be revised if 8-bit characters are ever allowed in
the header.  I'm thinking of the time when all the world is Unicode and we can
dispense with all other charsets, encoded words, etc.

 2) There is also the question of allowing APPEND for messages that don't
necessarily conform to RFC 822; this is particularly an issue with drafts.

There seems to be a concensus (which I share) that IMAP servers should not
attempt to do message format validation on APPEND because of the issue with
drafts.  However, if such validation is done, I feel that the specification of
the validation should be in the message format document (RFC 822 or successor)
and not in an IMAP document.  As far as the IMAP document is concerned, the
APPEND text is simply a literal.

> Also, regarding UIDPLUS interactions, I'd suggest replacing
>    That is, the APPENDUID response code returns as many UIDs as there
>    were messages appended in the multiple append.
> with
>    That is, the APPENDUID response code returns as many UIDs as there
>    were messages appended in the multiple append.  The UIDs returned
>    should be in the order the articles where appended.  The message
>    set may not contain extraneous UIDs or the symbol '*'.
> to mimic some of the text from RFC 2359 regarding `set's and COPYUID.

This is a good idea and I've made the change.




Received: by ns.secondary.com (8.9.3/8.9.3) id LAA06343 for ietf-imapext-bks; Fri, 5 Jan 2001 11:29:34 -0800 (PST)
Received: from dolk.extundo.com (dolk.extundo.com [195.42.214.242]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id LAA06336 for <ietf-imapext@IMC.ORG>; Fri, 5 Jan 2001 11:29:31 -0800 (PST)
Received: from barbar.josefsson.org (localhost.localdomain [127.0.0.1]) (authenticated) by dolk.extundo.com (8.11.1/8.11.1) with ESMTP id f05JY7031312 for <ietf-imapext@IMC.ORG>; Fri, 5 Jan 2001 20:34:08 +0100
To: Mark Crispin <mrc@cac.washington.edu>
Cc: IMAP Interest List <IMAP@cac.washington.edu>, IMAP Extensions WG <ietf-imapext@imc.org>
Subject: Re: LAST CALL: IMAP base and MULTIAPPEND drafts
References: <Pine.NXT.4.32.0101041938420.7661-100000@Tomobiki-Cho.CAC.Washington.EDU>
In-Reply-To: <Pine.NXT.4.32.0101041938420.7661-100000@Tomobiki-Cho.CAC.Washington.EDU>
From: Simon Josefsson <simon+IMAP@josefsson.org>
Date: 05 Jan 2001 13:06:45 +0100
Message-ID: <ilu66juryne.fsf@barbar.josefsson.org>
Lines: 56
User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/21.0.94
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>

Mark Crispin <mrc@cac.washington.edu> writes:

> This is also a last call for
>  http://www.ietf.org/internet-drafts/draft-crispin-imap-multiappend-02.txt
> which is a minor (but exceedingly useful) extension.  It is unchanged from
> the -01 draft except for an updated expiration date.

I haven't had time to read this draft until now, so this is a late
minor clearification of two points...  Sorry for late reaction.

Suggestion, replace:

      The APPEND command appends the literal arguments as new messages
      to the end of the specified destination mailbox.  This argument
      SHOULD be in the format of an [RFC-822] message.  8-bit characters
      are permitted in the message.  A server implementation that is
      unable to preserve 8-bit data properly MUST be able to reversibly
      convert 8-bit APPEND data to 7-bit using a [MIME-IMB] content
      transfer encoding.

with

      The APPEND command appends the literal arguments as new messages
      to the end of the specified destination mailbox.  This argument
      SHOULD be in the format of an [RFC-822] message.  8-bit characters
      are permitted in the message body.  A server implementation that is
      unable to preserve 8-bit data properly MUST be able to reversibly
      convert 8-bit APPEND data to 7-bit using a [MIME-IMB] content
      transfer encoding.

since 8-bit characters are not permitted at all in the header section
of a message, I think.

Also, regarding UIDPLUS interactions, I'd suggest replacing

   Servers which support both MULTIAPPEND and [UIDPLUS] will have the
   "resp-code-apnd" rule modified as follows:

   resp-code-apnd  = "APPENDUID" SP nz-number SP set

   That is, the APPENDUID response code returns as many UIDs as there
   were messages appended in the multiple append.

with

   Servers which support both MULTIAPPEND and [UIDPLUS] will have the
   "resp-code-apnd" rule modified as follows:

   resp-code-apnd  = "APPENDUID" SP nz-number SP set

   That is, the APPENDUID response code returns as many UIDs as there
   were messages appended in the multiple append.  The UIDs returned
   should be in the order the articles where appended.  The message
   set may not contain extraneous UIDs or the symbol '*'.

to mimic some of the text from RFC 2359 regarding `set's and COPYUID.



Received: by ns.secondary.com (8.9.3/8.9.3) id TAA21050 for ietf-imapext-bks; Thu, 4 Jan 2001 19:40:21 -0800 (PST)
Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id TAA21046 for <ietf-imapext@IMC.ORG>; Thu, 4 Jan 2001 19:40:20 -0800 (PST)
Received: from microdol1.cac.washington.edu (microdol1.cac.washington.edu [140.142.112.196]) by mxout2.cac.washington.edu (8.9.3+UW00.02/8.9.3+UW00.01) with ESMTP id TAA07455; Thu, 4 Jan 2001 19:44:55 -0800
Received: from Tomobiki-Cho.CAC.Washington.EDU (localhost [127.0.0.1]) (authenticated) by microdol1.cac.washington.edu (8.11.1+UW00.11/8.11.1+UW00.11) with ESMTP id f053isD25819; Thu, 4 Jan 2001 19:44:54 -0800
Date: Thu, 4 Jan 2001 19:44:53 -0800 (PST)
From: Mark Crispin <mrc@cac.washington.edu>
To: IMAP Interest List <IMAP@cac.washington.edu>
cc: IMAP Extensions WG <ietf-imapext@imc.org>
Subject: LAST CALL: IMAP base and MULTIAPPEND drafts
Message-ID: <Pine.NXT.4.32.0101041938420.7661-100000@Tomobiki-Cho.CAC.Washington.EDU>
Organization: Networks & Distributed Computing
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>

As discussed in the IMAPEXT meeting in San Diego,...

This is a last call for
 http://www.ietf.org/internet-drafts/draft-crispin-imapv-13.txt
which is the latest revision of RFC 2060, correcting all known errors and
omissions.  It has been 4 years since RFC 2060 was released, and there are
a lot of changes and clarifications.

This is also a last call for
 http://www.ietf.org/internet-drafts/draft-crispin-imap-multiappend-02.txt
which is a minor (but exceedingly useful) extension.  It is unchanged from
the -01 draft except for an updated expiration date.

Does IMAPEXT want to take on MULTIAPPEND, or just let it advance to
Proposed Standard status by itself?  I don't forsee any further work being
done to MULTIAPPEND, and people have been implementing it...

-- Mark --

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



Received: by ns.secondary.com (8.9.3/8.9.3) id EAA02759 for ietf-imapext-bks; Thu, 4 Jan 2001 04:23:02 -0800 (PST)
Received: from ietf.org (odin.ietf.org [132.151.1.176]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id EAA02751 for <ietf-imapext@imc.org>; Thu, 4 Jan 2001 04:22:57 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id HAA02391; Thu, 4 Jan 2001 07:27:27 -0500 (EST)
Message-Id: <200101041227.HAA02391@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-imapext@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-imapext-thread-06.txt
Date: Thu, 04 Jan 2001 07:27:27 -0500
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

--NextPart

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

	Title		: INTERNET MESSAGE ACCESS PROTOCOL - THREAD EXTENSION
	Author(s)	: M. Crispin, K. Murchison
	Filename	: draft-ietf-imapext-thread-06.txt
	Pages		: 13
	Date		: 03-Jan-01
	
This document describes the server-based threading extension to the
IMAP4rev1 protocol.  This extension provides substantial performance
improvements for IMAP clients which offer threaded views.
A server which supports this extension indicates this with more or
more capability names consisting of 'THREAD-' followed by a supported
threading algorithm name as described in this document.  This
provides for future upwards-compatible extensions.

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

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-thread-06.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-thread-06.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:	<20010103133751.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-imapext-thread-06.txt

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

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

--OtherAccess--

--NextPart--




Received: by ns.secondary.com (8.9.3/8.9.3) id EAA02758 for ietf-imapext-bks; Thu, 4 Jan 2001 04:22:59 -0800 (PST)
Received: from ietf.org (odin.ietf.org [132.151.1.176]) by ns.secondary.com (8.9.3/8.9.3) with ESMTP id EAA02749 for <ietf-imapext@imc.org>; Thu, 4 Jan 2001 04:22:57 -0800 (PST)
Received: from CNRI.Reston.VA.US (localhost [127.0.0.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id HAA02375; Thu, 4 Jan 2001 07:27:23 -0500 (EST)
Message-Id: <200101041227.HAA02375@ietf.org>
Mime-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
To: IETF-Announce: ;
Cc: ietf-imapext@imc.org
From: Internet-Drafts@ietf.org
Reply-to: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-imapext-sort-06.txt
Date: Thu, 04 Jan 2001 07:27:22 -0500
Sender: owner-ietf-imapext@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-imapext/mail-archive/>
List-ID: <ietf-imapext.imc.org>
List-Unsubscribe: <mailto:ietf-imapext-request@imc.org?body=unsubscribe>

--NextPart

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

	Title		: INTERNET MESSAGE ACCESS PROTOCOL - SORT EXTENSION
	Author(s)	: M. Crispin, K. Murchison
	Filename	: draft-ietf-imapext-sort-06.txt
	Pages		: 10
	Date		: 03-Jan-01
	
This document describes an experimental server-based sorting
extension to the IMAP4rev1 protocol, as implemented by the University
of Washington's IMAP toolkit.  This extension provides substantial
performance improvements for IMAP clients which offer sorted views.
A server which supports this extension indicates this with a
capability name of 'SORT'.  Client implementations SHOULD accept any
capability name which begins with 'SORT' as indicating support for
the extension described in this document.  This provides for future
upwards-compatible extensions.
At the time of this document was written, the IMAP Extensions Working
Group (IETF-IMAPEXT) was considering upwards-compatible additions to
the SORT extension described in this document, tenatively called the
SORT2 extension.

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

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-sort-06.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-sort-06.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:	<20010103133742.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-imapext-sort-06.txt

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

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

--OtherAccess--

--NextPart--



