]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Don't fail with "maildir_name not supported" when using empty DIRNAME=
authorTimo Sirainen <tss@iki.fi>
Mon, 6 Sep 2010 15:35:13 +0000 (16:35 +0100)
committerTimo Sirainen <tss@iki.fi>
Mon, 6 Sep 2010 15:35:13 +0000 (16:35 +0100)
src/lib-storage/mailbox-list.c

index fc021beb6be2c962a70c262f8eee15dcae594c6c..273a957072ff3de9f1c62fff7184e1254490a469 100644 (file)
@@ -128,7 +128,7 @@ int mailbox_list_create(const char *driver, struct mail_namespace *ns,
 
        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;
        }