[dovecot-cvs] dovecot/src/lib-index/maildir maildir-index.c,1.22,1.23

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


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

Modified Files:
	maildir-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: maildir-index.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/maildir/maildir-index.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- maildir-index.c	11 Feb 2003 15:07:31 -0000	1.22
+++ maildir-index.c	23 Feb 2003 21:06:57 -0000	1.23
@@ -12,10 +12,10 @@
 extern struct mail_index maildir_index;
 
 static int maildir_index_open(struct mail_index *index,
-			      int update_recent, int fast)
+			      enum mail_index_open_flags flags)
 {
 	maildir_clean_tmp(t_strconcat(index->mailbox_path, "/tmp", NULL));
-	return mail_index_open(index, update_recent, fast);
+	return mail_index_open(index, flags);
 }
 
 enum mail_flags maildir_filename_get_flags(const char *fname,
@@ -145,7 +145,6 @@
 {
 	struct mail_index *index;
 
-	i_assert(dir != NULL);
 	i_assert(maildir != NULL);
 
 	index = i_new(struct mail_index, 1);
@@ -244,7 +243,6 @@
 
 struct mail_index maildir_index = {
 	maildir_index_open,
-	mail_index_open_or_create,
 	maildir_index_free,
 	mail_index_set_lock,
 	mail_index_try_lock,




More information about the dovecot-cvs mailing list