[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.172, 1.173

cras at dovecot.org cras at dovecot.org
Thu Oct 27 13:30:29 EEST 2005


Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv8596/lib-storage/index/mbox

Modified Files:
	mbox-sync.c 
Log Message:
When updating pseudo mail, we also tried to update it as the first mail in
index file. Normally it shouldn't have mattered, but if there were no mails
in mailbox it caused a crash.



Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.172
retrieving revision 1.173
diff -u -d -r1.172 -r1.173
--- mbox-sync.c	9 Oct 2005 09:55:35 -0000	1.172
+++ mbox-sync.c	27 Oct 2005 10:30:27 -0000	1.173
@@ -1098,7 +1098,8 @@
 			sync_ctx->prev_msg_uid = mail_ctx->mail.uid;
 		}
 
-		mail_ctx->mail.idx_seq = sync_ctx->idx_seq;
+		if (!mail_ctx->pseudo)
+			mail_ctx->mail.idx_seq = sync_ctx->idx_seq;
 
 		if (!expunged) {
 			if (mbox_sync_handle_header(mail_ctx) < 0)



More information about the dovecot-cvs mailing list