]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: smtp-server-command - Add cmd_args and cmd_human_args fields.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 26 Oct 2021 22:48:28 +0000 (00:48 +0200)
committerStephan Bosch <stephan.bosch@open-xchange.com>
Sun, 14 Nov 2021 22:22:11 +0000 (23:22 +0100)
This mirrors the identically named fields for the imap service. For SMTP,
though, cmd_human_args == cmd_args.

src/lib-smtp/smtp-server-command.c

index 2cb1c562463883db9e6d3a6c6ddf9006db28d31d..ff7a313c6dbeae41de02ee1a13bd8e36f2a05f6c 100644 (file)
@@ -220,6 +220,11 @@ void smtp_server_command_execute(struct smtp_server_command *cmd,
 {
        struct smtp_server_connection *conn = cmd->context.conn;
 
+       if (params != NULL) {
+               event_add_str(cmd->context.event, "cmd_args", params);
+               event_add_str(cmd->context.event, "cmd_human_args", params);
+       }
+
        if (cmd->reg == NULL) {
                /* RFC 5321, Section 4.2.4: Reply Code 502