[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.28, 1.29

cras at procontrol.fi cras at procontrol.fi
Fri Jun 18 01:06:42 EEST 2004


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

Modified Files:
	mbox-sync.c 
Log Message:
X-IMAPbase update fix



Index: mbox-sync.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- mbox-sync.c	17 Jun 2004 21:29:20 -0000	1.28
+++ mbox-sync.c	17 Jun 2004 22:06:40 -0000	1.29
@@ -958,6 +958,15 @@
 {
 	struct mbox_sync_mail_context mail_ctx;
 
+	if (istream_raw_mbox_seek(sync_ctx->input, 0) < 0) {
+		/* doesn't begin with a From-line, which is weird because it
+		   just did. */
+		mail_storage_set_critical(sync_ctx->ibox->box.storage,
+			"Unexpectedly lost From-header line from mbox file %s",
+			sync_ctx->ibox->path);
+		return -1;
+	}
+
 	sync_ctx->t = mail_index_transaction_begin(sync_ctx->sync_view, FALSE);
 	sync_ctx->update_base_uid_last = sync_ctx->next_uid-1;
 



More information about the dovecot-cvs mailing list