[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-mail.c, 1.7, 1.8

tss-movial at dovecot.org tss-movial at dovecot.org
Thu Apr 20 17:16:00 EEST 2006


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

Modified Files:
	dbox-mail.c 
Log Message:
If dbox mail is lost, synchronize the dbox instead of just refreshing index (it's not enough).



Index: dbox-mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-mail.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- dbox-mail.c	12 Apr 2006 19:24:57 -0000	1.7
+++ dbox-mail.c	20 Apr 2006 14:15:58 -0000	1.8
@@ -105,12 +105,10 @@
 			break;
 		}
 
-		/* mail was moved. resync index file to find out the new offset
+		/* mail was moved. resync dbox to find out the new offset
 		   and try again. */
-		if (mail_index_refresh(mbox->ibox.index) < 0) {
-			mail_storage_set_index_error(&mbox->ibox);
+		if (dbox_sync(mbox, FALSE) < 0)
 			return -1;
-		}
 		prev_file_seq = file_seq;
 		prev_offset = offset;
 	}



More information about the dovecot-cvs mailing list