dovecot-2.1: imap-acl: MYRIGHTS command used UTF-8 instead of mU...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jul 3 01:06:30 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/880af3c78df9
changeset: 14590:880af3c78df9
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jul 03 01:06:10 2012 +0300
description:
imap-acl: MYRIGHTS command used UTF-8 instead of mUTF-7 encoding for mailbox name.

diffstat:

 src/plugins/imap-acl/imap-acl-plugin.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r a698fccd37c3 -r 880af3c78df9 src/plugins/imap-acl/imap-acl-plugin.c
--- a/src/plugins/imap-acl/imap-acl-plugin.c	Mon Jul 02 14:54:33 2012 +0300
+++ b/src/plugins/imap-acl/imap-acl-plugin.c	Tue Jul 03 01:06:10 2012 +0300
@@ -309,12 +309,13 @@
 {
 	struct mail_namespace *ns;
 	struct mailbox *box;
-	const char *mailbox;
+	const char *mailbox, *orig_mailbox;
 	const char *const *rights;
 	string_t *str;
 
 	if (!client_read_string_args(cmd, 1, &mailbox))
 		return FALSE;
+	orig_mailbox = mailbox;
 
 	if (ACL_USER_CONTEXT(cmd->client->user) == NULL) {
 		client_send_command_error(cmd, "ACLs disabled.");
@@ -346,7 +347,7 @@
 
 	str = t_str_new(128);
 	str_append(str, "* MYRIGHTS ");
-	imap_quote_append_string(str, mailbox, FALSE);
+	imap_quote_append_string(str, orig_mailbox, FALSE);
 	str_append_c(str,' ');
 	imap_acl_write_rights_list(str, rights);
 


More information about the dovecot-cvs mailing list