Mercurial > hg > nginx-mail
comparison src/mail/ngx_mail_smtp_handler.c @ 482:33394d1255b0 NGINX_0_7_34
nginx 0.7.34
*) Feature: the "off" parameter of the "if_modified_since" directive.
*) Feature: now nginx sends an HELO/EHLO command after a XCLIENT
command.
Thanks to Maxim Dounin.
*) Feature: Microsoft specific "AUTH LOGIN with User Name" mode support
in mail proxy server.
Thanks to Maxim Dounin.
*) Bugfix: in a redirect rewrite directive original arguments were
concatenated with new arguments by an "?" rather than an "&";
the bug had appeared in 0.1.18.
Thanks to Maxim Dounin.
*) Bugfix: nginx could not be built on AIX.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 10 Feb 2009 00:00:00 +0300 |
parents | 670af56a1158 |
children | c78a94ba4ae1 98143f74eb3d |
comparison
equal
deleted
inserted
replaced
479:28335b730750 | 482:33394d1255b0 |
---|---|
460 } | 460 } |
461 | 461 |
462 break; | 462 break; |
463 | 463 |
464 case ngx_smtp_auth_login_username: | 464 case ngx_smtp_auth_login_username: |
465 rc = ngx_mail_auth_login_username(s, c); | 465 rc = ngx_mail_auth_login_username(s, c, 0); |
466 | 466 |
467 s->out.len = sizeof(smtp_password) - 1; | 467 s->out.len = sizeof(smtp_password) - 1; |
468 s->out.data = smtp_password; | 468 s->out.data = smtp_password; |
469 s->mail_state = ngx_smtp_auth_login_password; | 469 s->mail_state = ngx_smtp_auth_login_password; |
470 break; | 470 break; |
608 s->out.len = sizeof(smtp_username) - 1; | 608 s->out.len = sizeof(smtp_username) - 1; |
609 s->out.data = smtp_username; | 609 s->out.data = smtp_username; |
610 s->mail_state = ngx_smtp_auth_login_username; | 610 s->mail_state = ngx_smtp_auth_login_username; |
611 | 611 |
612 return NGX_OK; | 612 return NGX_OK; |
613 | |
614 case NGX_MAIL_AUTH_LOGIN_USERNAME: | |
615 | |
616 s->out.len = sizeof(smtp_password) - 1; | |
617 s->out.data = smtp_password; | |
618 s->mail_state = ngx_smtp_auth_login_password; | |
619 | |
620 return ngx_mail_auth_login_username(s, c, 1); | |
613 | 621 |
614 case NGX_MAIL_AUTH_PLAIN: | 622 case NGX_MAIL_AUTH_PLAIN: |
615 | 623 |
616 s->out.len = sizeof(smtp_next) - 1; | 624 s->out.len = sizeof(smtp_next) - 1; |
617 s->out.data = smtp_next; | 625 s->out.data = smtp_next; |