[dovecot-cvs] dovecot/src/plugins/convert convert-storage.c, 1.5.2.5, 1.5.2.6

tss at dovecot.org tss at dovecot.org
Mon Mar 12 14:35:26 EET 2007


Update of /var/lib/cvs/dovecot/src/plugins/convert
In directory talvi:/tmp/cvs-serv22174

Modified Files:
      Tag: branch_1_0
	convert-storage.c 
Log Message:
Mailbox name conversion wasn't done for directories.



Index: convert-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/convert/convert-storage.c,v
retrieving revision 1.5.2.5
retrieving revision 1.5.2.6
diff -u -d -r1.5.2.5 -r1.5.2.6
--- convert-storage.c	6 Mar 2007 20:06:20 -0000	1.5.2.5
+++ convert-storage.c	12 Mar 2007 12:35:23 -0000	1.5.2.6
@@ -138,9 +138,12 @@
 	name = strcasecmp(list->name, "INBOX") == 0 ? "INBOX" : list->name;
 	if ((list->flags & MAILBOX_NOSELECT) != 0) {
 		/* \NoSelect mailbox, so it's probably a "directory" */
-		if (mail_storage_mailbox_create(dest_storage, name, TRUE) < 0) {
+		dest_name = mailbox_name_convert(dest_storage, source_storage,
+						 name);
+		if (mail_storage_mailbox_create(dest_storage, dest_name,
+						TRUE) < 0) {
 			i_error("Mailbox conversion: Couldn't create mailbox "
-				"directory %s", name);
+				"directory %s", dest_name);
 			return -1;
 		}
 		return 0;



More information about the dovecot-cvs mailing list