dovecot-2.0: lib-storage: Don't fail with "maildir_name not supp...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 6 18:35:17 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/b00d3a367d79
changeset: 12079:b00d3a367d79
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 06 16:35:13 2010 +0100
description:
lib-storage: Don't fail with "maildir_name not supported" when using empty DIRNAME=

diffstat:

 src/lib-storage/mailbox-list.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r ab72c0760133 -r b00d3a367d79 src/lib-storage/mailbox-list.c
--- a/src/lib-storage/mailbox-list.c	Mon Sep 06 15:41:31 2010 +0100
+++ b/src/lib-storage/mailbox-list.c	Mon Sep 06 16:35:13 2010 +0100
@@ -128,7 +128,7 @@
 
 	class_p = array_idx(&mailbox_list_drivers, idx);
 	if (((*class_p)->props & MAILBOX_LIST_PROP_NO_MAILDIR_NAME) != 0 &&
-	    set->maildir_name != NULL) {
+	    set->maildir_name != NULL && *set->maildir_name != '\0') {
 		*error_r = "maildir_name not supported by this driver";
 		return -1;
 	}


More information about the dovecot-cvs mailing list