changeset 2664:f54b0f04c628 HEAD

hdr_flag_have_dirty wasn't set if dirty flags were set in appends.
author Timo Sirainen <tss@iki.fi>
date Fri, 24 Sep 2004 14:44:33 +0300
parents cecf6f5a0d80
children ccf563859be5
files src/lib-index/mail-index-sync-update.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-sync-update.c	Fri Sep 24 14:18:50 2004 +0300
+++ b/src/lib-index/mail-index-sync-update.c	Fri Sep 24 14:44:33 2004 +0300
@@ -155,6 +155,9 @@
 	view->messages_count++;
 	map->records_count++;
 
+	if ((rec->flags & MAIL_INDEX_MAIL_FLAG_DIRTY) != 0)
+		hdr->flags |= MAIL_INDEX_HDR_FLAG_HAVE_DIRTY;
+
 	mail_index_header_update_counts(hdr, 0, rec->flags);
 	mail_index_header_update_lowwaters(hdr, rec);
 	return 1;