# HG changeset patch # User Timo Sirainen # Date 1031628950 -10800 # Node ID b426c07093d381b215d6225dd9be3da0a16acce9 # Parent 12f056754b7baca1155164f778ec9ed03360e057 Don't fsck() at mbox_index_rewrite() if there's no dirty flags. diff -r 12f056754b7b -r b426c07093d3 src/lib-index/mbox/mbox-rewrite.c --- a/src/lib-index/mbox/mbox-rewrite.c Tue Sep 10 06:32:42 2002 +0300 +++ b/src/lib-index/mbox/mbox-rewrite.c Tue Sep 10 06:35:50 2002 +0300 @@ -277,14 +277,14 @@ i_assert(index->lock_type == MAIL_LOCK_EXCLUSIVE); - if (!mbox_index_fsck(index)) - return FALSE; - if (index->header->flags & MAIL_INDEX_FLAG_DIRTY_MESSAGES) { /* no need to rewrite */ return TRUE; } + if (!mbox_index_fsck(index)) + return FALSE; + in_fd = open(index->mbox_path, O_RDWR); if (in_fd == -1) { index_set_error(index, "Can't open mbox file %s: %m",