[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync-update.c, 1.34, 1.35

cras at dovecot.org cras at dovecot.org
Fri Apr 29 15:47:01 EEST 2005


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

Modified Files:
	mbox-sync-update.c 
Log Message:
If data inside headers was moved within the first mail, we might have gotten 
"uid-last unexpectedly lost" error.



Index: mbox-sync-update.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync-update.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- mbox-sync-update.c	26 Apr 2005 14:07:31 -0000	1.34
+++ mbox-sync-update.c	29 Apr 2005 12:46:59 -0000	1.35
@@ -42,6 +42,8 @@
 			    ctx->hdr_pos[i] != (size_t)-1)
 				ctx->hdr_pos[i] += diff;
 		}
+		if (ctx->sync_ctx->dest_first_mail)
+			ctx->sync_ctx->base_uid_last_offset += diff;
 
 		if (diff < 0)
 			str_delete(ctx->header, pos, -diff);



More information about the dovecot-cvs mailing list