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

cras at procontrol.fi cras at procontrol.fi
Mon Sep 15 21:38:39 EEST 2003


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

Modified Files:
	mbox-storage.c 
Log Message:
CREATE mailbox/ with maildir now creates the mailbox instead of ignoring it.



Index: mbox-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-storage.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- mbox-storage.c	24 Aug 2003 12:45:33 -0000	1.64
+++ mbox-storage.c	15 Sep 2003 17:38:37 -0000	1.65
@@ -455,7 +455,7 @@
 }
 
 static int mbox_create_mailbox(struct mail_storage *storage, const char *name,
-			       int only_hierarchy)
+			       int directory)
 {
 	const char *path, *p;
 	struct stat st;
@@ -489,7 +489,7 @@
 	}
 
 	/* create the hierarchy if needed */
-	p = only_hierarchy ? path + strlen(path) : strrchr(path, '/');
+	p = directory ? path + strlen(path) : strrchr(path, '/');
 	if (p != NULL) {
 		p = t_strdup_until(path, p);
 		if (mkdir_parents(p, CREATE_MODE) < 0) {
@@ -501,7 +501,7 @@
 			return FALSE;
 		}
 
-		if (only_hierarchy) {
+		if (directory) {
 			/* wanted to create only the directory */
 			return TRUE;
 		}



More information about the dovecot-cvs mailing list