[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync-rewrite.c, 1.62.2.12, 1.62.2.13

tss at dovecot.org tss at dovecot.org
Sat Mar 10 18:14:33 EET 2007


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

Modified Files:
      Tag: branch_1_0
	mbox-sync-rewrite.c 
Log Message:
comment update



Index: mbox-sync-rewrite.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync-rewrite.c,v
retrieving revision 1.62.2.12
retrieving revision 1.62.2.13
diff -u -d -r1.62.2.12 -r1.62.2.13
--- mbox-sync-rewrite.c	10 Mar 2007 16:05:45 -0000	1.62.2.12
+++ mbox-sync-rewrite.c	10 Mar 2007 16:14:31 -0000	1.62.2.13
@@ -331,13 +331,15 @@
 		istream_raw_mbox_get_header_offset(sync_ctx->input);
 	mail_ctx->mail.body_size = mails[idx].body_size;
 
-	/* This will force the UID to be the one that we originally assigned
-	   to it, regardless of whether it's broken or not in the file. */
 	orig_next_uid = sync_ctx->next_uid;
 	if (mails[idx].uid != 0) {
+		/* This will force the UID to be the one that we originally
+		   assigned to it, regardless of whether it's broken or not in
+		   the file. */
 		sync_ctx->next_uid = mails[idx].uid;
 		sync_ctx->prev_msg_uid = mails[idx].uid - 1;
 	} else {
+		/* Pseudo mail shouldn't have X-UID header at all */
 		i_assert(mails[idx].pseudo);
 		sync_ctx->prev_msg_uid = 0;
 	}



More information about the dovecot-cvs mailing list