diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-03 17:08:20 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-03 17:08:20 +0000 |
commit | b9384315ad2be6d40f459e994859216d957cd359 (patch) | |
tree | 337f080049c5001354bc57ea3b523b13a6c4befe /src | |
parent | 34a0eebf738eb98311166f018d519738786c6b1c (diff) | |
download | rspamd-b9384315ad2be6d40f459e994859216d957cd359.tar.gz rspamd-b9384315ad2be6d40f459e994859216d957cd359.zip |
[Fix] Fix emails filtering in emails module
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/emails.lua | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/plugins/lua/emails.lua b/src/plugins/lua/emails.lua index 282f53bb4..1727e49e1 100644 --- a/src/plugins/lua/emails.lua +++ b/src/plugins/lua/emails.lua @@ -185,14 +185,15 @@ local function gen_check_emails(rule) end local replyto = get_raw_header('Reply-To') - if not replyto then return false end - local rt = util.parse_mail_address(replyto, task:get_mempool()) - - if rt and rt[1] then - rspamd_lua_utils.remove_email_aliases(rt[1]) - if not checked[rt[1].addr] then - check_email_rule(task, rule, rt[1]) - checked[rt[1].addr] = true + if replyto then + local rt = util.parse_mail_address(replyto, task:get_mempool()) + + if rt and rt[1] then + rspamd_lua_utils.remove_email_aliases(rt[1]) + if not checked[rt[1].addr] then + check_email_rule(task, rule, rt[1]) + checked[rt[1].addr] = true + end end end end |