Mercurial > dovecot > core-2.2
changeset 8571:563e61fa7726 HEAD
virtual: More syncing fixes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 19 Dec 2008 07:49:08 +0200 |
parents | 67ef46a47065 |
children | 9ec2882243a6 |
files | src/plugins/virtual/virtual-sync.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/virtual/virtual-sync.c Fri Dec 19 07:25:20 2008 +0200 +++ b/src/plugins/virtual/virtual-sync.c Fri Dec 19 07:49:08 2008 +0200 @@ -827,7 +827,7 @@ bbox->sync_highest_modseq = status.highest_modseq; bbox->sync_next_uid = status.uidnext; - if (!ctx->ext_header_rewrite) { + if (ctx->ext_header_rewrite) { /* we'll rewrite the entire header later */ return; } @@ -1213,6 +1213,8 @@ ret = virtual_sync_backend_boxes(ctx); if (ctx->retry && ret == 0) { ctx->retry = FALSE; + /* map uids again to update changed message flags */ + ctx->mbox->uids_mapped = FALSE; ret = virtual_sync_backend_boxes(ctx); i_assert(!ctx->retry); }