shared-storage.c revision 1a5573ebc32fae2fe576ec544e1781323c1db609
9afebd21ced1d43f638e08a1411c9a89e526231fTimo Sirainen/* Copyright (c) 2008-2014 Dovecot authors, see the included COPYING file */
9afebd21ced1d43f638e08a1411c9a89e526231fTimo Sirainenstatic struct mail_storage *shared_storage_alloc(void)
68a4946b12583b88fa802e52ebee45cd96056772Timo Sirainen pool = pool_alloconly_create("shared storage", 1024);
9afebd21ced1d43f638e08a1411c9a89e526231fTimo Sirainen storage = p_new(pool, struct shared_storage, 1);
9afebd21ced1d43f638e08a1411c9a89e526231fTimo Sirainenshared_storage_create(struct mail_storage *_storage, struct mail_namespace *ns,
9afebd21ced1d43f638e08a1411c9a89e526231fTimo Sirainen const char **error_r)
2a51b74d417285de5885460c659d92417f64b127Timo Sirainen struct shared_storage *storage = (struct shared_storage *)_storage;
2a51b74d417285de5885460c659d92417f64b127Timo Sirainen const char *driver, *p;
if (p == NULL) {
if (!have_username) {
NAMESPACE_FLAG_LIST_CHILDREN)) != 0) {
const char *path;
return TRUE;
const char **_name)
int ret;
if (*p != *name)
p++; name++;
i_unreached();
domain++;
ret = 0;
if (ret > 0)
NULL,
NULL,
NULL,