[dovecot-cvs] dovecot/src/plugins/convert convert-storage.c, 1.5.2.7, 1.5.2.8

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


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

Modified Files:
      Tag: branch_1_0
	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.5.2.7
retrieving revision 1.5.2.8
diff -u -d -r1.5.2.7 -r1.5.2.8
--- convert-storage.c	15 Mar 2007 11:48:02 -0000	1.5.2.7
+++ convert-storage.c	7 Apr 2007 08:04:54 -0000	1.5.2.8
@@ -225,13 +225,16 @@
 {
 	struct mailbox_list_context *iter;
 	struct mailbox_list *list;
+	const char *dest_name;
 	int ret = 0;
 
 	iter = mail_storage_mailbox_list_init(source_storage, "", "*",
 					      MAILBOX_LIST_SUBSCRIBED |
 					      MAILBOX_LIST_FAST_FLAGS);
 	while ((list = mail_storage_mailbox_list_next(iter)) != NULL) {
-		if (mail_storage_set_subscribed(dest_storage, list->name,
+		dest_name = mailbox_name_convert(dest_storage, source_storage,
+						 list->name);
+		if (mail_storage_set_subscribed(dest_storage, dest_name,
 						TRUE) < 0) {
 			ret = -1;
 			break;



More information about the dovecot-cvs mailing list