comparison src/mail/ngx_mail_parse.c @ 468:2580fe1c5a9a PATCH_NGINX_MAIL_0_6

Mail: support for smtp auth login with username. According to "[MS-XLOGIN]: SMTP Protocol AUTH LOGIN Extension Specification" (http://msdn.microsoft.com/en-us/library/cc433484.aspx) there is special mode called "AUTH LOGIN with User Name". And it seems to be used by some Microsoft software seen in wild.
author Maxim Dounin <mdounin@mdounin.ru>
date Sun, 11 Jan 2009 23:19:26 +0300
parents d67e93e97b4a
children c78a94ba4ae1
comparison
equal deleted inserted replaced
467:d67e93e97b4a 468:2580fe1c5a9a
884 884
885 if (nelts == 1) { 885 if (nelts == 1) {
886 return NGX_MAIL_AUTH_LOGIN; 886 return NGX_MAIL_AUTH_LOGIN;
887 } 887 }
888 888
889 if (nelts == 2) {
890 return NGX_MAIL_AUTH_LOGIN_USERNAME;
891 }
892
889 return NGX_MAIL_PARSE_INVALID_COMMAND; 893 return NGX_MAIL_PARSE_INVALID_COMMAND;
890 } 894 }
891 895
892 if (ngx_strncasecmp(arg[0].data, (u_char *) "PLAIN", 5) == 0) { 896 if (ngx_strncasecmp(arg[0].data, (u_char *) "PLAIN", 5) == 0) {
893 897