changeset 149:e1a810a57d4e HEAD

make sure the hash gets rebuilt if it wasn't opened yet when message was being expunged (probably unnecessary)
author Timo Sirainen <tss@iki.fi>
date Wed, 04 Sep 2002 17:45:59 +0300
parents 00b6ffc4d342
children cb05d392ad24
files src/lib-index/mail-index.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index.c	Wed Sep 04 14:53:15 2002 +0300
+++ b/src/lib-index/mail-index.c	Wed Sep 04 17:45:59 2002 +0300
@@ -1249,6 +1249,10 @@
 	   there's no hash yet */
 	if (index->hash != NULL)
 		mail_hash_update(index->hash, rec->uid, 0);
+	else {
+		/* make sure it also gets updated */
+		index->flags |= MAIL_INDEX_FLAG_REBUILD_HASH;
+	}
 
 	/* setting UID to 0 is enough for deleting the mail from index */
 	rec->uid = 0;