[dovecot-cvs] dovecot/src/plugins/imap-quota imap-quota-plugin.c, 1.11, 1.12

tss at dovecot.org tss at dovecot.org
Fri Mar 9 21:37:26 EET 2007


Update of /var/lib/cvs/dovecot/src/plugins/imap-quota
In directory talvi:/tmp/cvs-serv19336

Modified Files:
	imap-quota-plugin.c 
Log Message:
When returning mailbox name with GETQUOTAROOT, return the original name
instead of the converted storage name.



Index: imap-quota-plugin.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/imap-quota/imap-quota-plugin.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- imap-quota-plugin.c	22 Feb 2007 14:27:39 -0000	1.11
+++ imap-quota-plugin.c	9 Mar 2007 19:37:23 -0000	1.12
@@ -55,13 +55,14 @@
 	struct mailbox *box;
 	struct quota_root_iter *iter;
         struct quota_root *root;
-	const char *mailbox;
+	const char *orig_mailbox, *mailbox;
 	string_t *str;
 
 	/* <mailbox> */
 	if (!client_read_string_args(cmd, 1, &mailbox))
 		return FALSE;
 
+	orig_mailbox = mailbox;
 	storage = client_find_storage(cmd, &mailbox);
 	if (storage == NULL)
 		return TRUE;
@@ -83,7 +84,7 @@
 	/* send QUOTAROOT reply */
 	str = t_str_new(128);
 	str_append(str, "* QUOTAROOT ");
-	imap_quote_append_string(str, mailbox, FALSE);
+	imap_quote_append_string(str, orig_mailbox, FALSE);
 
 	iter = quota_root_iter_init(quota_set, box);
 	while ((root = quota_root_iter_next(iter)) != NULL) {



More information about the dovecot-cvs mailing list