]> git.kaiwu.me - nginx.git/commit
Mail: IMAP pipelining support.
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 19 May 2021 00:13:28 +0000 (03:13 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 19 May 2021 00:13:28 +0000 (03:13 +0300)
commit5015209054f68141cd4f5f61e874d4497d4ef49c
tree7e3caab12367ee7d3be8b2f33b5bb1c0ecec9c95
parent4617dd64b863df111e33b1b395709f4c2f427350
Mail: IMAP pipelining support.

The change is mostly the same as the SMTP one (04e43d03e153 and 3f5d0af4e40a),
and ensures that nginx is able to properly handle or reject multiple IMAP
commands.  The s->cmd field is not really used and set for consistency.

Non-synchronizing literals handling in invalid/unknown commands is limited,
so when a non-synchronizing literal is detected at the end of a discarded
line, the connection is closed.
src/mail/ngx_mail.h
src/mail/ngx_mail_imap_handler.c
src/mail/ngx_mail_parse.c
src/mail/ngx_mail_proxy_module.c