[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-uidlist.c, 1.28, 1.28.2.1

cras at dovecot.org cras at dovecot.org
Wed May 10 13:34:12 EEST 2006


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

Modified Files:
      Tag: branch_1_0
	dbox-uidlist.c 
Log Message:
Fix



Index: dbox-uidlist.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-uidlist.c,v
retrieving revision 1.28
retrieving revision 1.28.2.1
diff -u -d -r1.28 -r1.28.2.1
--- dbox-uidlist.c	3 May 2006 18:59:38 -0000	1.28
+++ dbox-uidlist.c	10 May 2006 10:34:10 -0000	1.28.2.1
@@ -1019,6 +1019,17 @@
 			   to create the file back and cause problems. */
 			ret = dbox_file_seq_was_used(mbox, str_c(path),
 						     file_seq);
+
+			if (i < count) {
+				/* dbox file was re-read, find the entry
+				   again */
+				entries = array_get(&ctx->uidlist->entries,
+						    &count);
+				for (i = 0; i < count; i++) {
+					if (entries[i]->file_seq == file_seq)
+						break;
+				}
+			}
 			if (ret == 0)
 				break;
 



More information about the dovecot-cvs mailing list