Mercurial > dovecot > core-2.2
changeset 7622:23bbefd2ef4e 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:37 +0200 |
parents | bec7141872eb |
children | 1285aedb353c |
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 Thu Mar 13 15:16:57 2008 +0200 +++ b/src/lib-index/mail-index-transaction.c Fri Mar 14 11:56:37 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)