# HG changeset patch # User Maxim Dounin # Date 1717426989 -10800 # Node ID 20017bff0de8d62f99283a7582c35ee4c2576e9d # Parent f83cb031a4a4b43869f7a80c4265f580af3cf0d4 Mail: added some parsing debug logging. diff --git a/src/mail/ngx_mail_parse.c b/src/mail/ngx_mail_parse.c --- a/src/mail/ngx_mail_parse.c +++ b/src/mail/ngx_mail_parse.c @@ -30,6 +30,9 @@ ngx_mail_pop3_parse_command(ngx_mail_ses state = s->state; + ngx_log_debug1(NGX_LOG_DEBUG_MAIL, s->connection->log, 0, + "pop3 parse: %d", state); + for (p = s->buffer->pos; p < s->buffer->last; p++) { ch = *p; @@ -248,6 +251,9 @@ ngx_mail_imap_parse_command(ngx_mail_ses state = s->state; + ngx_log_debug1(NGX_LOG_DEBUG_MAIL, s->connection->log, 0, + "imap parse: %d", state); + for (p = s->buffer->pos; p < s->buffer->last; p++) { ch = *p; @@ -692,6 +698,9 @@ ngx_mail_smtp_parse_command(ngx_mail_ses state = s->state; + ngx_log_debug1(NGX_LOG_DEBUG_MAIL, s->connection->log, 0, + "smtp parse: %d", state); + for (p = s->buffer->pos; p < s->buffer->last; p++) { ch = *p;