dovecot-1.2: Mail index view sync: Don't look for expunges if we...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 17 12:36:49 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/94fe6f7747da
changeset: 7876:94fe6f7747da
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 17 10:52:18 2008 +0300
description:
Mail index view sync: Don't look for expunges if we already did it once.

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
src/lib-index/mail-index-view-sync.c |    4 +++-

diffs (21 lines):

diff -r 8ded6c06bcfc -r 94fe6f7747da src/lib-index/mail-index-view-sync.c
--- a/src/lib-index/mail-index-view-sync.c	Tue Jun 17 10:43:16 2008 +0300
+++ b/src/lib-index/mail-index-view-sync.c	Tue Jun 17 10:52:18 2008 +0300
@@ -329,6 +329,9 @@ mail_index_view_sync_begin(struct mail_i
 			ctx->failed = TRUE;
 			return ctx;
 		}
+		have_expunges = expunge_count > 0;
+	} else {
+		have_expunges = view_sync_have_expunges(view);
 	}
 
 	ctx->finish_min_msg_count = reset ? 0 :
@@ -343,7 +346,6 @@ mail_index_view_sync_begin(struct mail_i
 				     view->index->filepath);
 	}
 
-	have_expunges = view_sync_have_expunges(view);
 	if (!have_expunges) {
 		/* no expunges, we can just replace the map */
 		if (view->index->map->hdr.messages_count <


More information about the dovecot-cvs mailing list