]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap-acl, imap-quota: Compile fix for last change.
authorTimo Sirainen <tss@iki.fi>
Mon, 6 Dec 2010 00:37:09 +0000 (00:37 +0000)
committerTimo Sirainen <tss@iki.fi>
Mon, 6 Dec 2010 00:37:09 +0000 (00:37 +0000)
src/plugins/imap-acl/imap-acl-plugin.c
src/plugins/imap-quota/imap-quota-plugin.c

index e160b8eb852c17eb52f0257b7fcc1cece2e7aec6..ef3d64040def3bc540097c96fba85639d6acdb93 100644 (file)
@@ -58,7 +58,6 @@ acl_mailbox_open_as_admin(struct client_command_context *cmd, const char *name)
        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) {
@@ -66,19 +65,10 @@ acl_mailbox_open_as_admin(struct client_command_context *cmd, const char *name)
                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 |
@@ -330,7 +320,7 @@ static bool cmd_myrights(struct client_command_context *cmd)
                return TRUE;
        }
 
-       ns = client_find_namespace(cmd, mailbox, &storage_name, NULL);
+       ns = client_find_namespace(cmd, mailbox, &storage_name);
        if (ns == NULL)
                return TRUE;
 
index f06a2ccf3c37e1f814eb15ed6e427eee473d4df8..2817145b602b9fd408f27f6a7c29f1eb205afe4c 100644 (file)
@@ -81,7 +81,7 @@ static bool cmd_getquotaroot(struct client_command_context *cmd)
        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;