Lines Matching refs:ns
19 struct mail_namespace *ns;
21 ns = mail_namespace_find_inbox(user->namespaces);
22 if (ns != NULL)
23 return ns;
25 for (ns = user->namespaces; ns != NULL; ns = ns->next) {
26 if (ns->type == MAIL_NAMESPACE_TYPE_PRIVATE)
27 return ns;
37 struct mail_namespace *ns;
50 ns = mail_user_find_attribute_namespace(user);
51 if (ns == NULL) {
57 attr_storage = mail_namespace_get_default_storage(ns);
85 struct mail_namespace *ns;
94 ns = mailbox_get_namespace(box);
98 } else if (ns->user == ns->owner) {
102 } else if (ns->owner != NULL) {
105 return index_storage_get_user_dict(storage, ns->owner, dict_r);