changeset 5052:831fa7e4caa0 HEAD

If message had one invalid X-UID and another valid X-UID, we still marked the valid one with uid_broken=TRUE.
author Timo Sirainen <tss@iki.fi>
date Mon, 22 Jan 2007 14:10:20 +0200
parents eef4cdd5df99
children 38adf005146b
files src/lib-storage/index/mbox/mbox-sync-parse.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync-parse.c	Mon Jan 22 13:54:58 2007 +0200
+++ b/src/lib-storage/index/mbox/mbox-sync-parse.c	Mon Jan 22 14:10:20 2007 +0200
@@ -383,6 +383,9 @@
 
 	ctx->sync_ctx->prev_msg_uid = value;
 	ctx->mail.uid = value;
+	/* if we had multiple X-UID headers, we could have
+	   uid_broken=TRUE here. */
+	ctx->mail.uid_broken = FALSE;
 
 	if (ctx->sync_ctx->dest_first_mail && ctx->seq != 1) {
 		/* if we're expunging the first mail, delete this header since