comparison src/mail/ngx_mail_parse.c @ 386:1878e9c00f22 NGINX_0_6_37

nginx 0.6.37 *) Feature: Microsoft specific "AUTH LOGIN with User Name" mode support in mail proxy server. Thanks to Maxim Dounin. *) Bugfix: nginx could not be built on platforms different from i386, amd64, sparc, and ppc; the bug had appeared in 0.6.36.
author Igor Sysoev <http://sysoev.ru>
date Mon, 18 May 2009 00:00:00 +0400
parents 1c519aff5c0c
children
comparison
equal deleted inserted replaced
385:842321c9fc84 386:1878e9c00f22
846 846
847 if (s->args.nelts == 1) { 847 if (s->args.nelts == 1) {
848 return NGX_MAIL_AUTH_LOGIN; 848 return NGX_MAIL_AUTH_LOGIN;
849 } 849 }
850 850
851 if (s->args.nelts == 2) {
852 return NGX_MAIL_AUTH_LOGIN_USERNAME;
853 }
854
851 return NGX_MAIL_PARSE_INVALID_COMMAND; 855 return NGX_MAIL_PARSE_INVALID_COMMAND;
852 } 856 }
853 857
854 if (ngx_strncasecmp(arg[0].data, (u_char *) "PLAIN", 5) == 0) { 858 if (ngx_strncasecmp(arg[0].data, (u_char *) "PLAIN", 5) == 0) {
855 859