comparison src/mail/ngx_mail_smtp_handler.c @ 1493:3c4111e07b58

use "_" instead of " " as new line substitute, do not delete trailing new line
author Igor Sysoev <igor@sysoev.ru>
date Fri, 21 Sep 2007 13:47:33 +0000
parents f69493e8faab
children e584e946e198
comparison
equal deleted inserted replaced
1492:22fb8f72d3e7 1493:3c4111e07b58
537 537
538 if (ch != CR && ch != LF) { 538 if (ch != CR && ch != LF) {
539 continue; 539 continue;
540 } 540 }
541 541
542 cmd.data[i] = ' '; 542 cmd.data[i] = '_';
543 }
544
545 while (i) {
546 if (cmd.data[i - 1] != ' ') {
547 break;
548 }
549
550 i--;
551 } 543 }
552 544
553 cmd.len = i; 545 cmd.len = i;
554 546
555 ngx_log_error(NGX_LOG_INFO, c->log, 0, err, &cmd); 547 ngx_log_error(NGX_LOG_INFO, c->log, 0, err, &cmd);