diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-04 17:32:03 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-04 17:32:03 +0100 |
commit | f5aac8de010eaf3221dd152e98a5f1a5208ecb2b (patch) | |
tree | 49cdb55445222c2286e6f098880cdc4f9233ea08 /rules/misc.lua | |
parent | fe0b7b5c838bf966fabbb102d9fb8da93acdcaeb (diff) | |
download | rspamd-f5aac8de010eaf3221dd152e98a5f1a5208ecb2b.tar.gz rspamd-f5aac8de010eaf3221dd152e98a5f1a5208ecb2b.zip |
[Fix] Avoid `table.getn` method as it has been removed in lua 5.3
Issue: #697
Reported by: @jessbo
Diffstat (limited to 'rules/misc.lua')
-rw-r--r-- | rules/misc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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('@','=') |