struct mail_namespace *ns;
struct mailbox *box;
const char *storage_name;
- enum mailbox_name_status status;
int ret;
if (ACL_USER_CONTEXT(cmd->client->user) == NULL) {
return NULL;
}
- ns = client_find_namespace(cmd, name, &storage_name, &status);
+ ns = client_find_namespace(cmd, name, &storage_name);
if (ns == NULL)
return NULL;
- switch (status) {
- case MAILBOX_NAME_INVALID:
- case MAILBOX_NAME_VALID:
- client_fail_mailbox_name_status(cmd, name, NULL, status);
- return NULL;
- default:
- break;
- }
-
/* Force opening the mailbox so that we can give a nicer error message
if mailbox isn't selectable but is listable. */
box = mailbox_alloc(ns->list, storage_name, ACL_MAILBOX_FLAGS |
return TRUE;
}
- ns = client_find_namespace(cmd, mailbox, &storage_name, NULL);
+ ns = client_find_namespace(cmd, mailbox, &storage_name);
if (ns == NULL)
return TRUE;
if (!client_read_string_args(cmd, 1, &mailbox))
return FALSE;
- ns = client_find_namespace(cmd, mailbox, &storage_name, NULL);
+ ns = client_find_namespace(cmd, mailbox, &storage_name);
if (ns == NULL)
return TRUE;