diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-07-10 18:40:01 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-07-10 18:40:01 +0200 |
commit | 39cf5ce1d8cd5b08d5f73b561600a4a586470192 (patch) | |
tree | 51d956e8392f8825d863736cea16c3959a766f6d /rules/headers_checks.lua | |
parent | 85d606bdbc00000f672e9a2c6613bbc34dadfc74 (diff) | |
download | rspamd-39cf5ce1d8cd5b08d5f73b561600a4a586470192.tar.gz rspamd-39cf5ce1d8cd5b08d5f73b561600a4a586470192.zip |
[Fix] Header checks: Fix get_raw_header method
Diffstat (limited to 'rules/headers_checks.lua')
-rw-r--r-- | rules/headers_checks.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/headers_checks.lua b/rules/headers_checks.lua index 8ee28e40b..d8c8c039c 100644 --- a/rules/headers_checks.lua +++ b/rules/headers_checks.lua @@ -177,7 +177,7 @@ rspamd_config:register_symbol{ } local function get_raw_header(task, name) - return ((task:get_header_full(name) or {})[1] or {})['raw'] + return ((task:get_header_full(name) or {})[1] or {})['value'] end local check_replyto_id = rspamd_config:register_callback_symbol('CHECK_REPLYTO', 1.0, @@ -189,8 +189,8 @@ local check_replyto_id = rspamd_config:register_callback_symbol('CHECK_REPLYTO', task:insert_result('REPLYTO_UNPARSEABLE', 1.0) return false else - task:insert_result('HAS_REPLYTO', 1.0) local rta = rt[1].addr + task:insert_result('HAS_REPLYTO', 1.0, rta) if rta then -- Check if Reply-To address starts with title seen in display name local sym = task:get_symbol('FROM_NAME_HAS_TITLE') |