The main idea is that with shared namespaces it now expands to the shared
username, allowing shared mailbox access via imapc.
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') {