Re: [imap5] Should unsolicited EXPUNGE responses be returned during UID MOVE?

"Adrien W. de Croy" <adrien@qbik.com> Fri, 01 June 2012 22:59 UTC

Return-Path: <adrien@qbik.com>
X-Original-To: imap5@ietfa.amsl.com
Delivered-To: imap5@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3150C11E809A for <imap5@ietfa.amsl.com>; Fri, 1 Jun 2012 15:59:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.197
X-Spam-Level:
X-Spam-Status: No, score=-2.197 tagged_above=-999 required=5 tests=[AWL=0.101, BAYES_00=-2.599, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 57urwrF3wfzD for <imap5@ietfa.amsl.com>; Fri, 1 Jun 2012 15:59:14 -0700 (PDT)
Received: from smtp.qbik.com (smtp.qbik.com [210.55.214.35]) by ietfa.amsl.com (Postfix) with ESMTP id 0A5E711E808D for <imap5@ietf.org>; Fri, 1 Jun 2012 15:59:13 -0700 (PDT)
Received: From [192.168.1.10] (unverified [219.89.218.74]) by SMTP Server [210.55.214.35] (WinGate SMTP Receiver v7.2.2 (Build 3416)) with SMTP id <0019057737@smtp.qbik.com>; Sat, 02 Jun 2012 10:59:12 +1200
From: "Adrien W. de Croy" <adrien@qbik.com>
To: Jan Kundrát <jkt@flaska.net>, "imap5@ietf.org" <imap5@ietf.org>
Date: Fri, 01 Jun 2012 22:59:04 +0000
Content-Type: multipart/alternative; boundary="------=_MB42BE2BF9-A76F-41F1-B46B-4A45979734C9"
In-Reply-To: <4FC9480C.50101@flaska.net>
Message-Id: <emd8f4a5b9-31dc-4990-8084-57a260c1cd44@boist>
Mime-Version: 1.0
User-Agent: eM_Client/4.0.14522.0
Subject: Re: [imap5] Should unsolicited EXPUNGE responses be returned during UID MOVE?
X-BeenThere: imap5@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: "Adrien W. de Croy" <adrien@qbik.com>
List-Id: "Discussion on drastically slimming-down IMAP." <imap5.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imap5>, <mailto:imap5-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imap5>
List-Post: <mailto:imap5@ietf.org>
List-Help: <mailto:imap5-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imap5>, <mailto:imap5-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 01 Jun 2012 22:59:15 -0000

------ Original Message ------
From: "Jan Kundrát" <jkt@flaska.net>
To: "imap5@ietf.org" <imap5@ietf.org>
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/
>