aboutsummaryrefslogtreecommitdiff
path: root/src/imap/ngx_imap_parse.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-10-24 18:38:31 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-10-24 18:38:31 +0000
commit50cca1cb4b045c1b8fa3328e9ed0ae4245ad9db4 (patch)
tree2c6292a34568e7252f3d47460faedf87c1cbc2de /src/imap/ngx_imap_parse.c
parentdf6f57afebe1c3cc564fa57f233e9a2bc97b225a (diff)
downloadnginx-50cca1cb4b045c1b8fa3328e9ed0ae4245ad9db4.tar.gz
nginx-50cca1cb4b045c1b8fa3328e9ed0ae4245ad9db4.zip
AUTH PLAIN LOGIN CRAM-MD5
Diffstat (limited to 'src/imap/ngx_imap_parse.c')
-rw-r--r--src/imap/ngx_imap_parse.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/imap/ngx_imap_parse.c b/src/imap/ngx_imap_parse.c
index 6256cc863..c7fc3343c 100644
--- a/src/imap/ngx_imap_parse.c
+++ b/src/imap/ngx_imap_parse.c
@@ -441,6 +441,10 @@ ngx_int_t ngx_pop3_parse_command(ngx_imap_session_t *s)
{
s->command = NGX_POP3_CAPA;
+ } else if (c0 == 'A' && c1 == 'U' && c2 == 'T' && c3 == 'H')
+ {
+ s->command = NGX_POP3_AUTH;
+
} else if (c0 == 'N' && c1 == 'O' && c2 == 'O' && c3 == 'P')
{
s->command = NGX_POP3_NOOP;
@@ -571,8 +575,7 @@ done:
s->arg_start = NULL;
}
- s->state = sw_start;
-
+ s->state = (s->command != NGX_POP3_AUTH) ? sw_start : sw_argument;
return NGX_OK;
invalid: