# HG changeset patch # User Timo Sirainen # Date 1031150759 -10800 # Node ID e1a810a57d4ec3cebaf1335fc4a02bf1ff1eb205 # Parent 00b6ffc4d3421c0c82cda42b114fcb22d62674b0 make sure the hash gets rebuilt if it wasn't opened yet when message was being expunged (probably unnecessary) diff -r 00b6ffc4d342 -r e1a810a57d4e src/lib-index/mail-index.c --- 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;