[dovecot-cvs] dovecot/src/lib-index/mbox mbox-index.c,1.72,1.73 mbox-index.h,1.28,1.29

cras at procontrol.fi cras at procontrol.fi
Sat May 17 17:09:57 EEST 2003


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

Modified Files:
	mbox-index.c mbox-index.h 
Log Message:
Maildir: CONTROL=<dir> in MAIL environment now specifies where to save
.customflags and dovecot-uidlist files. This can be useful if the main
mail directory is under hard quota.



Index: mbox-index.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-index.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -d -r1.72 -r1.73
--- mbox-index.c	15 May 2003 19:22:22 -0000	1.72
+++ mbox-index.c	17 May 2003 13:09:55 -0000	1.73
@@ -744,7 +744,9 @@
 	return TRUE;
 }
 
-struct mail_index *mbox_index_alloc(const char *dir, const char *mbox_path)
+struct mail_index *
+mbox_index_alloc(const char *mbox_path, const char *index_dir,
+		 const char *control_dir)
 {
 	struct mail_index *index;
 
@@ -758,7 +760,8 @@
 	index->mailbox_readonly = access(mbox_path, W_OK) < 0;
 
 	index->mailbox_path = i_strdup(mbox_path);
-	mail_index_init(index, dir);
+	index->control_dir = i_strdup(control_dir);
+	mail_index_init(index, index_dir);
 	return index;
 }
 

Index: mbox-index.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-index.h,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- mbox-index.h	3 May 2003 17:31:13 -0000	1.28
+++ mbox-index.h	17 May 2003 13:09:55 -0000	1.29
@@ -52,7 +52,9 @@
 			   struct mail_index_record *rec,
 			   uoff_t *offset, uoff_t *hdr_size, uoff_t *body_size);
 
-struct mail_index *mbox_index_alloc(const char *dir, const char *mbox_path);
+struct mail_index *
+mbox_index_alloc(const char *mbox_path, const char *index_dir,
+		 const char *control_dir);
 int mbox_index_rebuild(struct mail_index *index);
 int mbox_index_sync(struct mail_index *index,
 		    enum mail_lock_type lock_type, int *changes);



More information about the dovecot-cvs mailing list