Mercurial > dovecot > core-2.2
changeset 10055:e7aa137f3a11 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 | 5cb162da8708 |
children | 4996ca56a1ee |
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 18:40:35 2009 -0400 +++ b/src/lib-storage/index/maildir/maildir-uidlist.c Wed Oct 14 12:45:18 2009 -0400 @@ -966,6 +966,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); @@ -1416,7 +1419,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)