From f5aac8de010eaf3221dd152e98a5f1a5208ecb2b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 4 Jul 2016 17:32:03 +0100 Subject: [Fix] Avoid `table.getn` method as it has been removed in lua 5.3 Issue: #697 Reported by: @jessbo --- rules/misc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rules/misc.lua') diff --git a/rules/misc.lua b/rules/misc.lua index e51b0435a..6c3b732b1 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -325,7 +325,7 @@ rspamd_config.ENVFROM_VERP = { local envfrom = task:get_from(1) local envrcpts = task:get_recipients(1) -- VERP only works for single recipient messages - if table.getn(envrcpts) > 1 then return false end + if #envrcpts > 1 then return false end -- Get recipient and compute VERP address local rcpt = envrcpts[1].addr:lower() local verp = rcpt:gsub('@','=') -- cgit v1.2.3