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.2.29.rc1~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15bc8827a4e7c21f9ecfcbe3b73110c53632e3e5;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,