dovecot: mail_cache_add(): Update existing fields array so mail_...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Jul 15 02:43:40 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/6645e902b8a0
changeset: 6004:6645e902b8a0
user: Timo Sirainen <tss at iki.fi>
date: Sun Jul 15 02:31:20 2007 +0300
description:
mail_cache_add(): Update existing fields array so mail_cache_field_exists()
works right.
diffstat:
1 file changed, 4 insertions(+)
src/lib-index/mail-cache-transaction.c | 4 ++++
diffs (14 lines):
diff -r 6f66ce9491ad -r 6645e902b8a0 src/lib-index/mail-cache-transaction.c
--- a/src/lib-index/mail-cache-transaction.c Sun Jul 15 02:30:34 2007 +0300
+++ b/src/lib-index/mail-cache-transaction.c Sun Jul 15 02:31:20 2007 +0300
@@ -780,6 +780,10 @@ void mail_cache_add(struct mail_cache_tr
ctx->view->trans_seq2 = seq;
}
+ /* remember that this value exists, in case we try to look it up */
+ buffer_write(ctx->view->cached_exists_buf, field_idx,
+ &ctx->view->cached_exists_value, 1);
+
full_size = (data_size + 3) & ~3;
if (fixed_size == (unsigned int)-1)
full_size += sizeof(data_size32);
More information about the dovecot-cvs
mailing list