dovecot-2.1: shared mailboxes: Avoid doing "@domain" userdb look...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 11 23:39:02 EEST 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/28ddc2058877
changeset: 14555:28ddc2058877
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 11 23:38:45 2012 +0300
description:
shared mailboxes: Avoid doing "@domain" userdb lookups.
diffstat:
src/lib-storage/index/shared/shared-list.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 46d01b728647 -r 28ddc2058877 src/lib-storage/index/shared/shared-list.c
--- a/src/lib-storage/index/shared/shared-list.c Mon Jun 11 16:54:14 2012 +0300
+++ b/src/lib-storage/index/shared/shared-list.c Mon Jun 11 23:38:45 2012 +0300
@@ -43,8 +43,12 @@
const char *name;
name = mailbox_list_get_storage_name(*list, vname);
- if (shared_storage_get_namespace(&ns, &name) < 0)
- return -1;
+ if (*name == '\0' && (ns->flags & NAMESPACE_FLAG_AUTOCREATED) == 0) {
+ /* trying to access the shared/ prefix itself */
+ } else {
+ if (shared_storage_get_namespace(&ns, &name) < 0)
+ return -1;
+ }
*list = ns->list;
*storage_r = ns->storage;
return 0;
More information about the dovecot-cvs
mailing list