# HG changeset patch # User Igor Sysoev # Date 1272016432 0 # Node ID c631ef8beaaa5bf8a304e800df69deadea1afbf5 # Parent 2132e8ea8fe4148ac087a99a468a6ad9a495a8ae Zimbra IMAP server may return only 4 bytes: "+ \r\n" diff --git a/src/mail/ngx_mail_proxy_module.c b/src/mail/ngx_mail_proxy_module.c --- a/src/mail/ngx_mail_proxy_module.c +++ b/src/mail/ngx_mail_proxy_module.c @@ -726,7 +726,7 @@ ngx_mail_proxy_read_response(ngx_mail_se b->last += n; - if (b->last - b->pos < 5) { + if (b->last - b->pos < 4) { return NGX_AGAIN; }