changeset 5267:02a4228a921b HEAD

comment update
author Timo Sirainen <tss@iki.fi>
date Sat, 10 Mar 2007 18:14:33 +0200
parents 0dc6b54bb6aa
children debb7be008dc
files src/lib-storage/index/mbox/mbox-sync-rewrite.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync-rewrite.c	Sat Mar 10 18:05:48 2007 +0200
+++ b/src/lib-storage/index/mbox/mbox-sync-rewrite.c	Sat Mar 10 18:14:33 2007 +0200
@@ -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;
 	}