From a102caecf7ab481bf4f3f5f4a233a5e64467e4d2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 19 May 2020 17:00:25 +0100 Subject: [Minor] Add a simple way to limit number of email addresses --- src/lua/lua_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lua/lua_util.c') diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index 5948f4b4b..4d2758c5e 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -1650,7 +1650,7 @@ lua_util_parse_mail_address (lua_State *L) own_pool = TRUE; } - addrs = rspamd_email_address_from_mime (pool, str, len, NULL); + addrs = rspamd_email_address_from_mime (pool, str, len, NULL, -1); if (addrs == NULL) { lua_pushnil (L); -- cgit v1.2.3