[dovecot-cvs] dovecot/src/lib-index/mbox mbox-index.c,1.63,1.64

cras at procontrol.fi cras at procontrol.fi
Sun Feb 23 23:06:59 EET 2003


Update of /home/cvs/dovecot/src/lib-index/mbox
In directory danu:/tmp/cvs-serv1249/src/lib-index/mbox

Modified Files:
	mbox-index.c 
Log Message:
Index opening rewrites. We don't try to support .imap.index-<hostname> style
indexes anymore. They just made things more difficult, and it's really not a
good idea to use index files via NFS anyway.

Added support for :INDEX=MEMORY in MAIL env to disable using index files.
Also if we can't open or create index file for any reason, we now fallback
to in-memory indexes. Before we fallbacked only with out of disk space
errors.

If .customflags can't be created, we still work now by not allowing to
create new custom flags.



Index: mbox-index.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-index.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- mbox-index.c	19 Feb 2003 20:01:55 -0000	1.63
+++ mbox-index.c	23 Feb 2003 21:06:57 -0000	1.64
@@ -730,7 +730,7 @@
 {
 	struct mail_index *index;
 
-	i_assert(dir != NULL);
+	i_assert(mbox_path != NULL);
 
 	index = i_new(struct mail_index, 1);
 	memcpy(index, &mbox_index, sizeof(struct mail_index));
@@ -801,7 +801,6 @@
 
 struct mail_index mbox_index = {
 	mail_index_open,
-	mail_index_open_or_create,
 	mbox_index_free,
 	mbox_index_set_lock,
 	mbox_index_try_lock,




More information about the dovecot-cvs mailing list