Lines Matching refs:ns
27 struct mail_namespace *ns, *default_ns = list->ns;
40 if (src_list->ns->prefix_len == 0)
43 /* we could have two-level namespace: ns/ns2/ */
44 ns_name = t_strconcat(src_list->ns->prefix, name, NULL);
46 ns = mail_namespace_find_unsubscribable(namespaces, ns_name);
47 if (ns != NULL && ns != default_ns) {
48 if (ns->prefix_len > 0)
52 ns = NULL;
57 if (ns == NULL &&
64 if (ns != NULL && mail_namespace_is_shared_user_root(ns)) {
68 (void)mailbox_list_join_refpattern(ns->list, ns_name, "");
73 if (ns == NULL)
74 ns = default_ns;
75 else if (strncmp(ns_name, ns->prefix, ns->prefix_len) == 0) {
76 ns_name += ns->prefix_len;
81 i_assert(strncmp(ns_name, ns->prefix, ns->prefix_len-1) == 0 &&
82 ns_name[ns->prefix_len-1] == '\0');
87 if (len > 0 && name[len-1] == mail_namespace_get_sep(ns)) {
119 i_assert((src_list->ns->flags & NAMESPACE_FLAG_SUBSCRIPTIONS) != 0);
122 sep = mail_namespace_get_sep(src_list->ns);
232 char sep = mail_namespace_get_sep(list->ns);
245 ctx->info.ns = list->ns;