[dovecot-cvs] dovecot/src/lib-index mail-transaction-util.c, 1.11, 1.12

cras at procontrol.fi cras at procontrol.fi
Wed Jun 16 03:46:54 EEST 2004


Update of /home/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv19452

Modified Files:
	mail-transaction-util.c 
Log Message:
merging expunge buffers sometimes produced wrong results



Index: mail-transaction-util.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-transaction-util.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- mail-transaction-util.c	14 Jun 2004 04:27:44 -0000	1.11
+++ mail-transaction-util.c	16 Jun 2004 00:46:51 -0000	1.12
@@ -207,7 +207,8 @@
 
 		if (first > 0 && new_exp.uid1 <= dest[first-1].uid2+1) {
 			/* continue previous record */
-			dest[first-1].uid2 = new_exp.uid2;
+			if (dest[first-1].uid2 < new_exp.uid2)
+				dest[first-1].uid2 = new_exp.uid2;
 		} else if (i == first) {
 			buffer_insert(expunges_buf, i * sizeof(new_exp),
 				      &new_exp, sizeof(new_exp));



More information about the dovecot-cvs mailing list