# HG changeset patch # User Igor Sysoev # Date 1190382453 0 # Node ID 3c4111e07b58ebd2778effce8263ba8084becc95 # Parent 22fb8f72d3e7f1471e7e207788082ce8f176e56b use "_" instead of " " as new line substitute, do not delete trailing new line diff --git a/src/mail/ngx_mail_smtp_handler.c b/src/mail/ngx_mail_smtp_handler.c --- a/src/mail/ngx_mail_smtp_handler.c +++ b/src/mail/ngx_mail_smtp_handler.c @@ -539,15 +539,7 @@ ngx_mail_smtp_log_rejected_command(ngx_m continue; } - cmd.data[i] = ' '; - } - - while (i) { - if (cmd.data[i - 1] != ' ') { - break; - } - - i--; + cmd.data[i] = '_'; } cmd.len = i;