[dovecot-cvs] dovecot/src/plugins/convert convert-storage.c, 1.17, 1.18

tss at dovecot.org tss at dovecot.org
Sat Apr 7 11:04:58 EEST 2007


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

Modified Files:
	convert-storage.c 
Log Message:
Mailbox names weren't converted in subscription list.



Index: convert-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/convert/convert-storage.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- convert-storage.c	3 Apr 2007 08:34:30 -0000	1.17
+++ convert-storage.c	7 Apr 2007 08:04:55 -0000	1.18
@@ -226,6 +226,7 @@
 	struct mailbox_list_iterate_context *iter;
 	struct mailbox_info *info;
 	struct mailbox_list *dest_list;
+	const char *dest_name;
 	int ret = 0;
 
 	dest_list = mail_storage_get_list(dest_storage);
@@ -233,7 +234,9 @@
 				      "*", MAILBOX_LIST_ITER_SUBSCRIBED |
 				      MAILBOX_LIST_ITER_FAST_FLAGS);
 	while ((info = mailbox_list_iter_next(iter)) != NULL) {
-		if (mailbox_list_set_subscribed(dest_list, info->name,
+		dest_name = mailbox_name_convert(dest_storage, source_storage,
+						 info->name);
+		if (mailbox_list_set_subscribed(dest_list, dest_name,
 						TRUE) < 0) {
 			ret = -1;
 			break;



More information about the dovecot-cvs mailing list