Lines Matching refs:ns
133 mailbox_autoexpunge_set(struct mail_namespace *ns, const char *vname,
143 box = mailbox_alloc(ns->list, vname, MAILBOX_FLAG_IGNORE_ACLS);
155 mailbox_autoexpunge_wildcards(struct mail_namespace *ns,
163 iter_name = t_strconcat(ns->prefix, set->name, NULL);
164 iter = mailbox_list_iter_init(ns->list, iter_name,
169 mailbox_autoexpunge_set(ns, info->vname, set->autoexpunge,
175 iter_name, mailbox_list_get_last_internal_error(ns->list, NULL));
180 mail_namespace_autoexpunge(struct mail_namespace *ns, struct file_lock **lock,
186 if (!array_is_created(&ns->set->mailboxes))
189 array_foreach(&ns->set->mailboxes, box_set) {
194 if (!mailbox_autoexpunge_lock(ns->user, lock))
198 mailbox_autoexpunge_wildcards(ns, *box_set, expunged_count);
200 if ((*box_set)->name[0] == '\0' && ns->prefix_len > 0 &&
201 ns->prefix[ns->prefix_len-1] == mail_namespace_get_sep(ns))
202 vname = t_strndup(ns->prefix, ns->prefix_len - 1);
204 vname = t_strconcat(ns->prefix, (*box_set)->name, NULL);
205 mailbox_autoexpunge_set(ns, vname, (*box_set)->autoexpunge,
216 struct mail_namespace *ns;
219 for (ns = user->namespaces; ns != NULL; ns = ns->next) {
220 if (ns->alias_for == NULL) {
221 if (!mail_namespace_autoexpunge(ns, &lock, &expunged_count))