Skip to content

Commit

Permalink
lib-index: "first saved UID of the day" wasn't updated right always.
Browse files Browse the repository at this point in the history
It was using the UID of the first append. But it may not have been the
lowest UID. Do this after the appends are first sorted by their UID.
  • Loading branch information
sirainen committed May 10, 2016
1 parent d9be91c commit 04a7e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-index/mail-index-transaction-finish.c
Expand Up @@ -326,8 +326,8 @@ mail_index_transaction_convert_to_uids(struct mail_index_transaction *t)
void mail_index_transaction_finish(struct mail_index_transaction *t)
{
if (array_is_created(&t->appends)) {
mail_index_update_day_headers(t);
mail_index_transaction_sort_appends(t);
mail_index_update_day_headers(t);
}
mail_index_transaction_finish_flag_updates(t);

Expand Down

0 comments on commit 04a7e89

Please sign in to comment.