[dovecot-cvs] dovecot/src/imap cmd-create.c,1.6,1.7

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


Update of /home/cvs/dovecot/src/imap
In directory danu:/tmp/cvs-serv9399/imap

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



Index: cmd-create.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/cmd-create.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- cmd-create.c	27 Jul 2003 04:48:32 -0000	1.6
+++ cmd-create.c	15 Sep 2003 17:38:36 -0000	1.7
@@ -7,7 +7,7 @@
 {
 	struct mail_storage *storage;
 	const char *mailbox;
-	int only_hiearchy;
+	int directory;
 	size_t len;
 
 	/* <mailbox> */
@@ -20,19 +20,19 @@
 
 	len = strlen(mailbox);
 	if (mailbox[len-1] != storage->hierarchy_sep)
-		only_hiearchy = FALSE;
+		directory = FALSE;
 	else {
 		/* name ends with hierarchy separator - client is just
-		   informing us that it wants to create a mailbox under
-		   this name. */
-                only_hiearchy = TRUE;
+		   informing us that it wants to create children under this
+		   mailbox. */
+                directory = TRUE;
 		mailbox = t_strndup(mailbox, len-1);
 	}
 
 	if (!client_verify_mailbox_name(client, mailbox, FALSE, TRUE))
 		return TRUE;
 
-	if (!storage->create_mailbox(storage, mailbox, only_hiearchy)) {
+	if (!storage->create_mailbox(storage, mailbox, directory)) {
 		client_send_storage_error(client, storage);
 		return TRUE;
 	}



More information about the dovecot-cvs mailing list