Re: Problem with Cyrus 2.4.0 when move message to Mailbox Trash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 12, 2010 at 06:21:36PM -0300, Lucas Zinato Carraro wrote:
>   When i delete a message ( technically, move to trash ) one copy of message
> is created in mailbox Trash but the message remains on INBOX.

Ok - here's the patch that fixes this issue.

It will be in the next release, and you can either pull it immediately
from the git repository at git://git.cyrusimap.org/cyrus-imapd or you
can apply from the attached file.

Regards,

Bron.
>From e8592ae38b894016d7a4c19df3c099e11243b80e Mon Sep 17 00:00:00 2001
From: Bron Gondwana <brong@xxxxxxxxx>
Date: Wed, 13 Oct 2010 17:21:09 -0400
Subject: [PATCH 3/3] Fix expunge crash on murder frontend

We were trying to cache a value too early, before knowing if it was a
frontend issue.
---
 imap/imapd.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/imap/imapd.c b/imap/imapd.c
index d979f3b..d8109cc 100644
--- a/imap/imapd.c
+++ b/imap/imapd.c
@@ -4846,7 +4846,7 @@ void cmd_copy(char *tag, char *sequence, char *name, int usinguid)
  */
 void cmd_expunge(char *tag, char *sequence)
 {
-    modseq_t old = index_highestmodseq(imapd_index);
+    modseq_t old;
     modseq_t new;
     int r = 0;
 
@@ -4867,6 +4867,8 @@ void cmd_expunge(char *tag, char *sequence)
 	r = IMAP_PERMISSION_DENIED;
     }
 
+    old = index_highestmodseq(imapd_index);
+
     if (!r) r = index_expunge(imapd_index, sequence);
     /* tell expunges */
     if (!r) index_tellchanges(imapd_index, 1, sequence ? 1 : 0);
-- 
1.7.1

----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux