From: Vsevolod Stakhov Date: Thu, 21 Nov 2019 13:33:08 +0000 (+0000) Subject: [Minor] Multimap: Also handle table like options X-Git-Tag: 2.3~318 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d727dda235afb5cf4671aae4d9f72ad4d0a8bc9a;p=thirdparty%2Frspamd.git [Minor] Multimap: Also handle table like options --- diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 347dee9bcc..06db71053e 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -590,7 +590,12 @@ local function multimap_callback(task, rule) if opt then - task:insert_result(forced, symbol, score, tostring(opt)) + if type(opt) == 'table' then + task:insert_result(forced, symbol, score, fun.totable(fun.map(tostring, opt))) + else + task:insert_result(forced, symbol, score, tostring(opt)) + end + else task:insert_result(forced, symbol, score) end