Lines Matching refs:ns
31 shared_storage_create(struct mail_storage *_storage, struct mail_namespace *ns,
40 p = strchr(ns->set->location, ':');
45 driver = t_strdup_until(ns->set->location, p);
46 storage->location = p_strdup(_storage->pool, ns->set->location);
48 p_strdup(_storage->pool, ns->unexpanded_set->location);
58 wildcardp = strchr(ns->prefix, '%');
84 if (p[-1] != mail_namespace_get_sep(ns) &&
85 (ns->flags & (NAMESPACE_FLAG_LIST_PREFIX |
94 ns->prefix_len = strlen(ns->prefix);
99 shared_storage_get_list_settings(const struct mail_namespace *ns ATTR_UNUSED,
120 static bool shared_namespace_exists(struct mail_namespace *ns)
125 path = mailbox_list_get_root_forced(ns->list, MAILBOX_LIST_PATH_TYPE_DIR);
140 struct mail_namespace *new_ns, *ns = *_ns;
146 char ns_sep = mail_namespace_get_sep(ns);
236 str_append(prefix, ns->prefix);
246 *_name = mailbox_list_get_storage_name(ns->list,
247 t_strconcat(ns->prefix, name, NULL));
262 ns->prefix, userdomain, error);
274 ns->prefix, userdomain);
296 new_ns->flags = (NAMESPACE_FLAG_SUBSCRIPTIONS & ns->flags) |
306 if (ns->user->mail_debug) {
350 ns->flags |= NAMESPACE_FLAG_USABLE;