From: Timo Sirainen Date: Thu, 19 Sep 2024 10:18:04 +0000 (+0300) Subject: config: Allow specifying service settings inside @groups X-Git-Tag: 2.4.0~278 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=03d037cbb4de7b6978d47b06b849cdcddfde83e3;p=thirdparty%2Fdovecot%2Fcore.git config: Allow specifying service settings inside @groups --- diff --git a/src/config/config-parser.c b/src/config/config-parser.c index 508f85801c..96b12f9b6d 100644 --- a/src/config/config-parser.c +++ b/src/config/config-parser.c @@ -1214,8 +1214,8 @@ config_filter_add_new_filter(struct config_parser_context *ctx, return FALSE; } if (strcmp(key, "service") == 0 && - parent->filter_name_array) { - i_assert(parent->filter_name != NULL); + parent->filter_name_array && + parent->filter_name[0] != SETTINGS_INCLUDE_GROUP_PREFIX) { ctx->error = p_strdup_printf(ctx->pool, "%s { .. } not allowed under %s { .. }", key, t_strcut(parent->filter_name, '/'));