dovecot-2.2: imapc: Empty imapc_user expands to namespace's owne...
dovecot at dovecot.org
dovecot at dovecot.org
Fri May 31 17:36:56 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/6e07d290066c
changeset: 16434:6e07d290066c
user: Timo Sirainen <tss at iki.fi>
date: Fri May 31 17:36:19 2013 +0300
description:
imapc: Empty imapc_user expands to namespace's owner, or with public namespaces to user itself.
The main idea is that with shared namespaces it now expands to the shared
username, allowing shared mailbox access via imapc.
diffstat:
src/lib-storage/index/imapc/imapc-storage.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r a6b0a45319ab -r 6e07d290066c src/lib-storage/index/imapc/imapc-storage.c
--- a/src/lib-storage/index/imapc/imapc-storage.c Fri May 31 17:05:13 2013 +0300
+++ b/src/lib-storage/index/imapc/imapc-storage.c Fri May 31 17:36:19 2013 +0300
@@ -230,7 +230,12 @@
return -1;
}
set.port = storage->set->imapc_port;
- set.username = storage->set->imapc_user;
+ if (storage->set->imapc_user[0] != '\0')
+ set.username = storage->set->imapc_user;
+ else if (ns->owner != NULL)
+ set.username = ns->owner->username;
+ else
+ set.username = ns->user->username;
set.master_user = storage->set->imapc_master_user;
set.password = storage->set->imapc_password;
if (*set.password == '\0') {
More information about the dovecot-cvs
mailing list