Mercurial > dovecot > core-2.2
changeset 12529:35625c2d01a2
imap-acl, imap-quota: Compile fix for last change.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 06 Dec 2010 00:37:09 +0000 |
parents | 4d276dc712eb |
children | 9185c2a88291 |
files | src/plugins/imap-acl/imap-acl-plugin.c src/plugins/imap-quota/imap-quota-plugin.c |
diffstat | 2 files changed, 3 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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;