dovecot-2.1: acl: Fixed looking up parent mailbox name with diff...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Apr 26 00:27:09 EEST 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/e8b80e0767ac
changeset: 14487:e8b80e0767ac
user: Timo Sirainen <tss at iki.fi>
date: Thu Apr 26 00:26:58 2012 +0300
description:
acl: Fixed looking up parent mailbox name with different namespace vs. layout separators.
diffstat:
src/plugins/acl/acl-backend-vfile.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r 249c1c89d9d3 -r e8b80e0767ac src/plugins/acl/acl-backend-vfile.c
--- a/src/plugins/acl/acl-backend-vfile.c Wed Apr 25 23:44:32 2012 +0300
+++ b/src/plugins/acl/acl-backend-vfile.c Thu Apr 26 00:26:58 2012 +0300
@@ -184,10 +184,9 @@
static const char *
get_parent_mailbox(struct acl_backend *backend, const char *name)
{
- struct mail_namespace *ns = mailbox_list_get_namespace(backend->list);
const char *p;
- p = strrchr(name, mail_namespace_get_sep(ns));
+ p = strrchr(name, mailbox_list_get_hierarchy_sep(backend->list));
return p == NULL ? NULL : t_strdup_until(name, p);
}
More information about the dovecot-cvs
mailing list