diff src/mail/ngx_mail_parse.c @ 2495:a59b26eee816

compatibility with Microsoft's AUTH LOGIN [base64 encoded user name ] patch by Maxim Dounin
author Igor Sysoev <igor@sysoev.ru>
date Mon, 09 Feb 2009 12:03:55 +0000
parents 8156bc03982a
children d620f497c50f
line wrap: on
line diff
--- a/src/mail/ngx_mail_parse.c	Thu Feb 05 16:01:50 2009 +0000
+++ b/src/mail/ngx_mail_parse.c	Mon Feb 09 12:03:55 2009 +0000
@@ -848,6 +848,10 @@
                 return NGX_MAIL_AUTH_LOGIN;
             }
 
+            if (s->args.nelts == 2) {
+                return NGX_MAIL_AUTH_LOGIN_USERNAME;
+            }
+
             return NGX_MAIL_PARSE_INVALID_COMMAND;
         }