Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7876:94fe6f7747da HEAD
Mail index view sync: Don't look for expunges if we already did it once.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 17 Jun 2008 10:52:18 +0300 |
parents | 8ded6c06bcfc |
children | 2e75e5a42f0e |
files | src/lib-index/mail-index-view-sync.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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 @@ 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 <