]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mail_index_expunge: Drop also modseq updates when expunging a newly appended record.
authorTimo Sirainen <tss@iki.fi>
Mon, 3 Aug 2009 19:20:11 +0000 (15:20 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 3 Aug 2009 19:20:11 +0000 (15:20 -0400)
--HG--
branch : HEAD

src/lib-index/mail-index-transaction-update.c

index 2bb335911e0d9885006c8debc1bf4d4d7e0be759..79769d60cebcaeeedb88f56a2e528e1bc0bc0af9 100644 (file)
@@ -315,6 +315,10 @@ mail_index_expunge_last_append(struct mail_index_transaction *t, uint32_t seq)
                        }
                }
        }
+       /* remove modseqs */
+       if (array_is_created(&t->modseq_updates) &&
+           mail_index_seq_array_lookup((void *)&t->modseq_updates, seq, &i))
+               array_delete(&t->modseq_updates, i, 1);
 
        /* and finally remove the append itself */
        array_delete(&t->appends, seq - t->first_new_seq, 1);