]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Multimap: received: filtering of artificial header
authorAndrew Lewis <nerf@judo.za.org>
Tue, 12 Dec 2017 12:03:01 +0000 (14:03 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 24 Jan 2018 09:55:09 +0000 (11:55 +0200)
src/plugins/lua/multimap.lua

index edfe4c7f668f52e6ccaf5b9aec31454af1055723..6d89f4e47eec337843d820024b604d5c92c6c706 100644 (file)
@@ -776,7 +776,7 @@ local function multimap_callback(task, rule)
       if hdrs and hdrs[1] then
         if not rule['artificial'] then
           hdrs = fun.filter(function(h)
-            return not h['artificial']
+            return not h['flags']['artificial']
           end, hdrs):totable()
         end
         for pos, h in ipairs(hdrs) do