aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-08 10:17:09 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-08 10:17:09 +0100
commitb12f0bd37e4b65613e2de53ca5131597d57f7603 (patch)
tree837203aced04ba50bd9f2acc74fe8b0fd4daa343 /src
parent79d878219f27f3bffa196e11aae9677e4391bb47 (diff)
downloadrspamd-b12f0bd37e4b65613e2de53ca5131597d57f7603.tar.gz
rspamd-b12f0bd37e4b65613e2de53ca5131597d57f7603.zip
[Minor] Use mime from/rcpt if SMTP ones are missing
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/multimap.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua
index 0a1cf15b5..e2bde2a32 100644
--- a/src/plugins/lua/multimap.lua
+++ b/src/plugins/lua/multimap.lua
@@ -658,12 +658,18 @@ local function multimap_callback(task, rule)
if task:has_recipients('smtp') then
local rcpts = task:get_recipients('smtp')
match_addr(rule, rcpts)
+ elseif task:has_recipients('mime') then
+ local rcpts = task:get_recipients('mime')
+ match_addr(rule, rcpts)
end
end,
from = function()
if task:has_from('smtp') then
local from = task:get_from('smtp')
match_addr(rule, from)
+ elseif task:has_from('mime') then
+ local from = task:get_from('mime')
+ match_addr(rule, from)
end
end,
helo = function()