Procházet zdrojové kódy

Merge pull request #2063 from trallen/master

Allow the multimap header type to be a list of headers as well as a single header
tags/1.7.0
Vsevolod Stakhov před 6 roky
rodič
revize
460323a1cb
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 9 přidání a 2 odebrání
  1. 9
    2
      src/plugins/lua/multimap.lua

+ 9
- 2
src/plugins/lua/multimap.lua Zobrazit soubor

@@ -708,8 +708,15 @@ local function multimap_callback(task, rule)
end
end,
header = function()
local hv = task:get_header_full(rule['header'])
match_list(rule, hv, {'decoded'})
if type(rule['header']) == 'table' then
for _,rh in ipairs(rule['header']) do
local hv = task:get_header_full(rh)
match_list(rule, hv, {'decoded'})
end
else
local hv = task:get_header_full(rule['header'])
match_list(rule, hv, {'decoded'})
end
end,
rcpt = function()
if task:has_recipients('smtp') then

Načítá se…
Zrušit
Uložit