From 02b7e85db17510019e504a11e4be50c3ddf5251b Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan.bosch@open-xchange.com>
Date: Thu, 22 Dec 2022 23:41:56 +0100
Subject: [PATCH] lib-sieve: plugins: vacation: cmd-vacation - Use event log
 functions everywhere.

---
 src/lib-sieve/plugins/vacation/cmd-vacation.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib-sieve/plugins/vacation/cmd-vacation.c b/src/lib-sieve/plugins/vacation/cmd-vacation.c
index 97f74b1d4..15c2fb9c3 100644
--- a/src/lib-sieve/plugins/vacation/cmd-vacation.c
+++ b/src/lib-sieve/plugins/vacation/cmd-vacation.c
@@ -1055,7 +1055,8 @@ act_vacation_get_default_subject(const struct sieve_action_exec_env *aenv,
 	tab = _get_var_expand_table(aenv, header);
 	if (var_expand(str, config->default_subject_template,
 		       tab, &error) <= 0) {
-		i_error("Failed to expand deliver_log_format=%s: %s",
+		e_error(aenv->event,
+			"Failed to expand deliver_log_format=%s: %s",
 			config->default_subject_template, error);
 		*subject_r = t_strconcat("Auto: ", header, NULL);
 		return SIEVE_EXEC_OK;
-- 
GitLab