# HG changeset patch # User Timo Sirainen # Date 1291595829 0 # Node ID 35625c2d01a2c1d7328d138624fa7ec14331e90a # Parent 4d276dc712eb8997ae20ddb922c6603e6c8b82af imap-acl, imap-quota: Compile fix for last change. diff -r 4d276dc712eb -r 35625c2d01a2 src/plugins/imap-acl/imap-acl-plugin.c --- a/src/plugins/imap-acl/imap-acl-plugin.c Mon Dec 06 00:30:36 2010 +0000 +++ b/src/plugins/imap-acl/imap-acl-plugin.c Mon Dec 06 00:37:09 2010 +0000 @@ -58,7 +58,6 @@ 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 @@ 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 @@ return TRUE; } - ns = client_find_namespace(cmd, mailbox, &storage_name, NULL); + ns = client_find_namespace(cmd, mailbox, &storage_name); if (ns == NULL) return TRUE; diff -r 4d276dc712eb -r 35625c2d01a2 src/plugins/imap-quota/imap-quota-plugin.c --- a/src/plugins/imap-quota/imap-quota-plugin.c Mon Dec 06 00:30:36 2010 +0000 +++ b/src/plugins/imap-quota/imap-quota-plugin.c Mon Dec 06 00:37:09 2010 +0000 @@ -81,7 +81,7 @@ 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;