From: Timo Sirainen Date: Tue, 4 Apr 2017 12:59:04 +0000 (+0300) Subject: imap: Set command reason strings using the new human_args X-Git-Tag: 2.3.0.rc1~1792 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=670a335d55df4b5191e92544fd876c5daad2a7e2;p=thirdparty%2Fdovecot%2Fcore.git imap: Set command reason strings using the new human_args This way the reason string is already suitable for logging, since it's guaranteed to be valid UTF-8 without control chars. --- diff --git a/src/imap/imap-commands-util.c b/src/imap/imap-commands-util.c index 81044ae602..c9eaf988e0 100644 --- a/src/imap/imap-commands-util.c +++ b/src/imap/imap-commands-util.c @@ -135,7 +135,7 @@ int client_open_save_dest_box(struct client_command_context *cmd, const char *imap_client_command_get_reason(struct client_command_context *cmd) { return cmd->args[0] == '\0' ? cmd->name : - t_strdup_printf("%s %s", cmd->name, cmd->args); + t_strdup_printf("%s %s", cmd->name, cmd->human_args); } void imap_transaction_set_cmd_reason(struct mailbox_transaction_context *trans,