------ Original Message ------
From: "Jan Kundrát" <[email protected]>
To: "[email protected]" <[email protected]>
Sent: 2/06/2012 10:54:04 a.m.
Subject: Re: [imap5] Should unsolicited EXPUNGE responses be returned
during UID MOVE?
On 06/02/12 00:26, Bron Gondwana wrote:


Huh?  Who sends untagged COPYUID responses?  Cyrus puts the COPYUID
in the tagged OK.  The docs back me up:


http://www.faqs.org/rfcs/rfc2359.html


4.3. COPYUID response code

  Successful COPY and UID COPY commands return a COPYUID response code
  in the tagged OK response [...]



When my client sees an EXPUNGE, it removes the message from its cache,
almost immediately. If the UID MOVE command sent regular EXPUNGEs
followed by regular tagged OK COPYUID, my client would have lost the
cached data, effectively negating any benefits of UIDPLUS.

Either you postpone the EXPUNGEs until the tagged OK with COPYUID
arrives (which looks very un-IMAPy to me), or you somehow report the
COPYUID before the untagged EXpUNGEs *and* the tagged OK gets sent.


Or, your client could - knowing it is in a MOVE command - defer the
processing of those expunges, or actually probably ignore them, since
the information required is in the COPYUID response (tells you which
messages were moved and are therefore gone from source folder).

Maybe we should make MOVE depend on existence of UIDPLUS...

What do other clients do here?

Adrien


With kind regards,
Jan

--
Trojita, a fast e-mail client --
http://trojita.flaska.net/

_______________________________________________
imap5 mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/imap5

Reply via email to