Mercurial > dovecot > core-2.2
changeset 7660:e6e32571025e HEAD
MAIL_INDEX_TRANSACTION_FLAG_AVOID_FLAG_UPDATES: Don't crash if trying to add
keywords to newly added messages.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 14 Mar 2008 11:56:36 +0200 |
parents | 4c9027eacfce |
children | d274d0870a1a |
files | src/lib-index/mail-index-transaction.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-transaction.c Fri Mar 14 09:44:34 2008 +0200 +++ b/src/lib-index/mail-index-transaction.c Fri Mar 14 11:56:36 2008 +0200 @@ -1339,7 +1339,8 @@ bool found; t_array_init(&existing, 32); - mail_index_lookup_keywords(t->view, seq, &existing); + if (seq < t->first_new_seq) + mail_index_lookup_keywords(t->view, seq, &existing); existing_idx = array_get(&existing, &existing_count); if (modify_type == MODIFY_REPLACE && existing_count != keywords->count)