[dovecot-cvs] dovecot/src/plugins/imap-quota imap-quota-plugin.c, 1.7.2.3, 1.7.2.4
tss at dovecot.org
tss at dovecot.org
Fri Mar 9 21:37:22 EET 2007
Update of /var/lib/cvs/dovecot/src/plugins/imap-quota
In directory talvi:/tmp/cvs-serv19341
Modified Files:
Tag: branch_1_0
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.7.2.3
retrieving revision 1.7.2.4
diff -u -d -r1.7.2.3 -r1.7.2.4
--- imap-quota-plugin.c 22 Feb 2007 14:27:22 -0000 1.7.2.3
+++ imap-quota-plugin.c 9 Mar 2007 19:37:20 -0000 1.7.2.4
@@ -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(box);
while ((root = quota_root_iter_next(iter)) != NULL) {
More information about the dovecot-cvs
mailing list