dovecot-2.1: lib-storage: mailbox_keyword_is_valid() returns now...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 5 10:33:36 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/a5e47ce5a5a0
changeset: 13395:a5e47ce5a5a0
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 05 10:30:15 2011 +0300
description:
lib-storage: mailbox_keyword_is_valid() returns now FALSE if keyword can't be created.

diffstat:

 src/lib-storage/mailbox-keywords.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r d15b173688f9 -r a5e47ce5a5a0 src/lib-storage/mailbox-keywords.c
--- a/src/lib-storage/mailbox-keywords.c	Mon Sep 05 10:28:49 2011 +0300
+++ b/src/lib-storage/mailbox-keywords.c	Mon Sep 05 10:30:15 2011 +0300
@@ -109,6 +109,10 @@
 		*error_r = "Empty keywords not allowed";
 		return FALSE;
 	}
+	if (box->disallow_new_keywords) {
+		*error_r = "Can't create new keywords";
+		return FALSE;
+	}
 
 	/* these are IMAP-specific restrictions, but for now IMAP is all we
 	   care about */


More information about the dovecot-cvs mailing list