Mercurial > dovecot > core-2.2
changeset 250:0c5832e58728 HEAD
don't set flags dirty when they were updated by external change
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 16 Sep 2002 08:40:16 +0300 |
parents | f0a52521d844 |
children | ff68d1f1e75b |
files | src/lib-index/mbox/mbox-index.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mbox/mbox-index.c Mon Sep 16 08:34:44 2002 +0300 +++ b/src/lib-index/mbox/mbox-index.c Mon Sep 16 08:40:16 2002 +0300 @@ -361,8 +361,10 @@ if (!mail_index_update_flags(index, rec, seq, flags, external_change)) return FALSE; - rec->index_flags |= INDEX_MAIL_FLAG_DIRTY; - index->header->flags |= MAIL_INDEX_FLAG_DIRTY_MESSAGES; + if (!external_change) { + rec->index_flags |= INDEX_MAIL_FLAG_DIRTY; + index->header->flags |= MAIL_INDEX_FLAG_DIRTY_MESSAGES; + } return TRUE; }