Mercurial > dovecot > original-hg > dovecot-1.2
changeset 3471:138e242c53c9 HEAD
Keywords weren't saved to index while saving.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 12 Jul 2005 15:24:16 +0300 |
parents | 346a494c2feb |
children | db29cc6754d5 |
files | src/lib-storage/index/mbox/mbox-save.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-save.c Mon Jul 04 14:32:13 2005 +0300 +++ b/src/lib-storage/index/mbox/mbox-save.c Tue Jul 12 15:24:16 2005 +0300 @@ -374,10 +374,13 @@ if (!mbox->ibox.keep_recent) save_flags &= ~MAIL_RECENT; - // FIXME: set keywords mail_index_append(ctx->trans, ctx->next_uid, &ctx->seq); mail_index_update_flags(ctx->trans, ctx->seq, MODIFY_REPLACE, save_flags); + if (keywords != NULL) { + mail_index_update_keywords(ctx->trans, ctx->seq, + MODIFY_REPLACE, keywords); + } offset = ctx->output->offset == 0 ? 0 : ctx->output->offset - 1; @@ -385,6 +388,7 @@ mbox->mbox_ext_idx, &offset, NULL); ctx->next_uid++; + /* parse and cache the mail headers as we read it */ if (ctx->mail == NULL) ctx->mail = index_mail_alloc(_t, 0, NULL); mail_set_seq(ctx->mail, ctx->seq);