Mercurial > dovecot > original-hg > dovecot-1.2
changeset 2169:73e9cf84a92a HEAD
New mails pointed to beginning of file.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 19 Jun 2004 20:14:18 +0300 |
parents | d6687626c6a1 |
children | fb785d235c43 |
files | src/lib-storage/index/mbox/mbox-sync.c |
diffstat | 1 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync.c Sat Jun 19 04:04:16 2004 +0300 +++ b/src/lib-storage/index/mbox/mbox-sync.c Sat Jun 19 20:14:18 2004 +0300 @@ -466,8 +466,10 @@ const struct mbox_sync_mail *mails; uint32_t extra_idx = ibox->mbox_extra_idx; uint64_t offset; + size_t size; - mails = buffer_get_modifyable_data(mails_buf, NULL); + mails = buffer_get_modifyable_data(mails_buf, &size); + i_assert((seq2-seq1+1) * sizeof(*mails) == size); for (; seq1 <= seq2; seq1++, mails++) { if (mails->uid != 0) { @@ -820,12 +822,11 @@ sync_ctx->need_space_seq, sync_ctx->seq) < 0) return -1; + } - update_from_offsets(sync_ctx->ibox, sync_ctx->t, - sync_ctx->mails, - sync_ctx->need_space_seq, - sync_ctx->seq); - } + update_from_offsets(sync_ctx->ibox, sync_ctx->t, + sync_ctx->mails, + sync_ctx->need_space_seq, sync_ctx->seq); sync_ctx->need_space_seq = 0; buffer_set_used_size(sync_ctx->mails, 0);