]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: Allow specifying service settings inside @groups
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 19 Sep 2024 10:18:04 +0000 (13:18 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 17 Jan 2025 08:40:00 +0000 (10:40 +0200)
src/config/config-parser.c

index 508f85801c69981ada582d9cbf2df79ffb8adff8..96b12f9b6d1050ac4bf71e2eb7f97f117176a48a 100644 (file)
@@ -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, '/'));