diff options
author | Andrew Lewis <nerf@judo.za.org> | 2020-11-25 14:55:18 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2020-11-25 15:03:00 +0200 |
commit | 68cb5ea8c9b0b6437a60f1deb84b62691b0b62bc (patch) | |
tree | a145eabcc66d62010af578b816c850c1a0140698 /src | |
parent | bf735322848cab7ab9f68aba2514c7510e0d5d6c (diff) | |
download | rspamd-68cb5ea8c9b0b6437a60f1deb84b62691b0b62bc.tar.gz rspamd-68cb5ea8c9b0b6437a60f1deb84b62691b0b62bc.zip |
[Feature] Multimap: support adding map values as extra options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/multimap.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 109f974cd..7faaaf265 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -561,6 +561,15 @@ local function multimap_callback(task, rule) symbol, rule.symbol, rule.symbol) symbol = rule.symbol end + elseif rule.disable_multisymbol then + symbol = rule.symbol + if type(opt) == 'table' then + table.insert(opt, result) + elseif type(opt) ~= nil then + opt = {opt,result} + else + opt = {result} + end else forced = true end |