]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: Support %{userdb:*} variables in mail_log_prefix
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 18 Aug 2016 08:22:09 +0000 (11:22 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 18 Aug 2016 08:23:38 +0000 (11:23 +0300)
src/lmtp/commands.c

index 56cb94b3fc3a81b3d322b499a0623097e9c84507..0602e45f307c9501f75409fdd6d7b1352202c475 100644 (file)
@@ -836,8 +836,10 @@ client_deliver(struct client *client, const struct mail_recipient *rcpt,
                return -1;
        }
        str = t_str_new(256);
-       var_expand(str, client->state.dest_user->set->mail_log_prefix,
-                  mail_user_var_expand_table(client->state.dest_user));
+       var_expand_with_funcs(str, client->state.dest_user->set->mail_log_prefix,
+                             mail_user_var_expand_table(client->state.dest_user),
+                             mail_user_var_expand_func_table,
+                             client->state.dest_user);
        i_set_failure_prefix("%s", str_c(str));
 
        sets = mail_storage_service_user_get_set(rcpt->service_user);