dovecot-2.0: imap-acl: Don't allow ACL commands for mailboxes th...

dovecot at dovecot.org dovecot at dovecot.org
Mon Aug 9 17:33:23 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/8814ced6d012
changeset: 11963:8814ced6d012
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Aug 09 15:33:20 2010 +0100
description:
imap-acl: Don't allow ACL commands for mailboxes that don't exist.

diffstat:

 src/plugins/imap-acl/imap-acl-plugin.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 874422af78b1 -r 8814ced6d012 src/plugins/imap-acl/imap-acl-plugin.c
--- a/src/plugins/imap-acl/imap-acl-plugin.c	Fri Aug 06 20:03:44 2010 +0100
+++ b/src/plugins/imap-acl/imap-acl-plugin.c	Mon Aug 09 15:33:20 2010 +0100
@@ -70,9 +70,13 @@
 	if (ns == NULL)
 		return NULL;
 
-	if (status == MAILBOX_NAME_INVALID) {
+	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


More information about the dovecot-cvs mailing list