Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7467:abc88e664e63 HEAD
Fixed updating first_recent_uid in index header.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 30 Apr 2008 17:06:08 +0300 |
parents | f5af6ce6376f |
children | 080dd4d2fd94 |
files | src/lib-storage/index/mbox/mbox-sync.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync.c Wed Apr 30 17:05:19 2008 +0300 +++ b/src/lib-storage/index/mbox/mbox-sync.c Wed Apr 30 17:06:08 2008 +0300 @@ -1410,8 +1410,8 @@ &sync_size, sizeof(sync_size), TRUE); } - first_recent_uid = !sync_ctx->mbox->ibox.keep_recent ? 0 : - sync_ctx->last_nonrecent_uid + 1; + first_recent_uid = !sync_ctx->mbox->ibox.keep_recent ? + sync_ctx->next_uid : sync_ctx->last_nonrecent_uid + 1; if (sync_ctx->hdr->first_recent_uid < first_recent_uid) { mail_index_update_header(sync_ctx->t, offsetof(struct mail_index_header, first_recent_uid),