# HG changeset patch # User Timo Sirainen # Date 1030574520 -10800 # Node ID dc0891523276c9219d087cb4814a0b03a7d48089 # Parent ccb155c2c93fbc3eb0abb3df8bb00d9d7407ee73 bugfix for sync fix diff -r ccb155c2c93f -r dc0891523276 src/lib-index/mail-index.c --- a/src/lib-index/mail-index.c Thu Aug 29 01:39:13 2002 +0300 +++ b/src/lib-index/mail-index.c Thu Aug 29 01:42:00 2002 +0300 @@ -462,10 +462,15 @@ index->set_flags |= MAIL_INDEX_FLAG_REBUILD; } - /* finally reset the modify log marks, fsck or syncing might have - deleted some messages, and since we're only just opening the - index, there's no need to remember them */ - return mail_modifylog_mark_synced(index->modifylog); + if (index->lock_type == MAIL_LOCK_EXCLUSIVE) { + /* finally reset the modify log marks, fsck or syncing might + have deleted some messages, and since we're only just + opening the index, there's no need to remember them */ + if (!mail_modifylog_mark_synced(index->modifylog)) + return FALSE; + } + + return TRUE; } static int mail_index_open_file(MailIndex *index, const char *filename,