Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9428:ebdba086e3b1 HEAD
maildir: Saving a mail after fast syncing caused slow sync the next time.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 14 Oct 2009 12:45:18 -0400 |
parents | 5fc4fb574c9f |
children | 7956cc1086e1 |
files | src/lib-storage/index/maildir/maildir-uidlist.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-uidlist.c Mon Oct 12 16:20:35 2009 -0400 +++ b/src/lib-storage/index/maildir/maildir-uidlist.c Wed Oct 14 12:45:18 2009 -0400 @@ -932,6 +932,9 @@ uidlist->next_uid = hdr->next_uid; uidlist->initial_hdr_read = TRUE; mail_index_view_close(&view); + + if (UIDLIST_IS_LOCKED(uidlist)) + uidlist->locked_refresh = TRUE; return 1; } else { return maildir_uidlist_refresh(uidlist); @@ -1332,7 +1335,7 @@ { struct maildir_uidlist *uidlist = ctx->uidlist; - if (!uidlist->locked_refresh) + if (!uidlist->locked_refresh || !uidlist->initial_read) return FALSE; if (ctx->finish_change_counter != uidlist->change_counter)