changeset 3540:0ddbfc6aa2d7 HEAD

We weren't properly checking if X-IMAPbase header was seen when we parsed X-UID header. Could cause assert-crash while rewriting.
author Timo Sirainen <tss@iki.fi>
date Wed, 17 Aug 2005 02:32:31 +0300
parents 7a94871543f5
children 3cc9212b1c66
files src/lib-storage/index/mbox/mbox-sync-parse.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync-parse.c	Mon Aug 15 13:56:48 2005 +0300
+++ b/src/lib-storage/index/mbox/mbox-sync-parse.c	Wed Aug 17 02:32:31 2005 +0300
@@ -342,7 +342,7 @@
 		return TRUE;
 	}
 
-	if (ctx->sync_ctx->seq == 1 && !ctx->seen_imapbase) {
+	if (ctx->seq == 1 && !ctx->seen_imapbase) {
 		/* Don't bother allowing X-UID before X-IMAPbase
 		   header. c-client doesn't allow it either, and this
 		   way the UID doesn't have to be reset if X-IMAPbase