changeset 401:98c752b41cbc PATCH_NGINX_MAIL_0_3

Mail: raise number of arguments parsed in smtp. MAIL FROM / RCPT TO commands may have arbitrary number of parameters defined by various extensions. I'm aware of at least following used in wild: SIZE=, AUTH=, RET=, ENVID= (DSN), BODY= (8BITMIME). Additionally, rfc2821 address may contain spaces - so it will be parsed as several arguments too. Suppose 11 arguments is enough (3 was definitely not enough).
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 23 Jul 2007 00:09:59 +0000
parents f1e2fab7a46c
children 29cf4046a9a5
files src/mail/ngx_mail_parse.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/mail/ngx_mail_parse.c
+++ b/src/mail/ngx_mail_parse.c
@@ -741,7 +741,7 @@ ngx_int_t ngx_smtp_parse_command(ngx_mai
                 s->arg_end = p;
                 goto done;
             default:
-                if (s->args.nelts <= 2) {
+                if (s->args.nelts <= 10) {
                     state = sw_argument;
                     s->arg_start = p;
                     break;