[dovecot-cvs] dovecot/src/lib-index mail-index-open.c,1.48,1.49
cras at procontrol.fi
cras at procontrol.fi
Sun Oct 5 21:45:55 EEST 2003
Update of /home/cvs/dovecot/src/lib-index
In directory danu:/tmp/cvs-serv24732
Modified Files:
mail-index-open.c
Log Message:
bugfixes
Index: mail-index-open.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-open.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- mail-index-open.c 23 Sep 2003 13:41:31 -0000 1.48
+++ mail-index-open.c 5 Oct 2003 17:45:53 -0000 1.49
@@ -80,6 +80,10 @@
if (!mail_cache_open_or_create(index))
return FALSE;
+ /* custom flags file needs to be open before rebuilding index */
+ if (!mail_custom_flags_open_or_create(index))
+ return FALSE;
+
if ((index->header->flags & MAIL_INDEX_HDR_FLAG_REBUILD) != 0 ||
(index->set_flags & MAIL_INDEX_HDR_FLAG_REBUILD) != 0) {
@@ -96,10 +100,6 @@
} else {
rebuilt = FALSE;
}
-
- /* custom flags file needs to be open before rebuilding index */
- if (!mail_custom_flags_open_or_create(index))
- return FALSE;
if ((flags & _MAIL_INDEX_OPEN_FLAG_CREATING) == 0) {
if (!mail_modifylog_open_or_create(index))
More information about the dovecot-cvs
mailing list