changeset 2888:c1b4d0e7dff0 HEAD

If we synced external transactions at the beginning of index sync, we have to reopen the syncing view so it shows the latest updates.
author Timo Sirainen <tss@iki.fi>
date Wed, 24 Nov 2004 19:31:53 +0200
parents 70ce8c45e86b
children 51982771ba4c
files src/lib-index/mail-index-sync.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-sync.c	Wed Nov 24 18:46:15 2004 +0200
+++ b/src/lib-index/mail-index-sync.c	Wed Nov 24 19:31:53 2004 +0200
@@ -376,6 +376,9 @@
 			return -1;
 		}
 
+		mail_index_view_close(ctx->view);
+		ctx->view = mail_index_view_open(index);
+
 		if (mail_transaction_log_view_set(ctx->view->log_view,
 					index->hdr->log_file_seq,
 					index->hdr->log_file_int_offset,