]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-master: Add DOVECONF_SERVICE environment to doveconf
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 9 Jan 2023 22:59:00 +0000 (00:59 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 27 Jan 2023 13:01:47 +0000 (13:01 +0000)
This is needed to avoid calling managesieve dump-capability for doveadm and
other processes that don't need it.

src/lib-master/master-service-settings.c

index e8ea4f6879f59a69c4726097bea41ed7c1b069a6..b7afdeb46c3d19a9737381a33c0098c6dd555ec0 100644 (file)
@@ -208,6 +208,9 @@ master_service_exec_config(struct master_service *service,
        if (input->use_sysexits)
                env_put("USE_SYSEXITS", "1");
 
+       if (input->service != NULL)
+               env_put("DOVECONF_SERVICE", input->service);
+
        t_array_init(&conf_argv, 11 + (service->argc + 1) + 1);
        strarr_push(&conf_argv, DOVECOT_CONFIG_BIN_PATH);
        strarr_push(&conf_argv, "-c");