dovecot-1.0: If we expunged the first message but there were no ...

dovecot at dovecot.org dovecot at dovecot.org
Thu Aug 9 20:02:14 EEST 2007


details:   http://hg.dovecot.org/dovecot-1.0/rev/1b6c41524c6a
changeset: 5376:1b6c41524c6a
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Aug 09 20:02:10 2007 +0300
description:
If we expunged the first message but there were no other changes, we might
have not actually expunged it.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/mbox/mbox-sync.c |    2 +-

diffs (12 lines):

diff -r 3e284bbbb93d -r 1b6c41524c6a src/lib-storage/index/mbox/mbox-sync.c
--- a/src/lib-storage/index/mbox/mbox-sync.c	Thu Aug 09 20:01:47 2007 +0300
+++ b/src/lib-storage/index/mbox/mbox-sync.c	Thu Aug 09 20:02:10 2007 +0300
@@ -1833,7 +1833,7 @@ __again:
 
 		if (mbox_sync_read_index_syncs(&sync_ctx, 1, &expunged) < 0)
 			return -1;
-		if (sync_ctx.sync_rec.uid1 == 0) {
+		if (sync_ctx.sync_rec.uid1 == 0 && !expunged) {
 			if (mail_index_transaction_commit(&sync_ctx.t,
 							  &seq, &offset) < 0) {
 				mail_storage_set_index_error(&mbox->ibox);


More information about the dovecot-cvs mailing list