The callers are now expected to handle returned NULLs. In future some other
non-filesystem based storages will probably also return NULLs.
--HG--
branch : HEAD
{
struct mail_namespace *ns;
- if (list->ns->storage == NULL ||
+ if (list->ns->storage == NULL || name == NULL ||
shared_storage_get_namespace(list->ns->storage, &name, &ns) < 0) {
switch (type) {
case MAILBOX_LIST_PATH_TYPE_DIR:
/* we can safely say we don't use indexes */
return "";
}
- i_panic("shared mailbox list: Can't return path for '%s'",
- list->ns->prefix);
+ /* we don't have a directory we can use. */
+ return NULL;
}
return mailbox_list_get_path(ns->list, name, type);
}