diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-22 19:00:45 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-22 19:00:45 +0000 |
commit | 3a2a55244fd0644ab982b5b24177e5064e1627ec (patch) | |
tree | 53b923a81bcf6e91880e741d5e28d1ef01952094 | |
parent | a6da80b480f3f2ff25c49603eb245c68db152018 (diff) | |
download | rspamd-3a2a55244fd0644ab982b5b24177e5064e1627ec.tar.gz rspamd-3a2a55244fd0644ab982b5b24177e5064e1627ec.zip |
Use `task:get_from()` to get sender
-rw-r--r-- | rules/misc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/misc.lua b/rules/misc.lua index 50b857c06..90767d70c 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -149,7 +149,7 @@ rspamd_config.BROKEN_HEADERS = { rspamd_config.HEADER_RCONFIRM_MISMATCH = { callback = function (task) - local header_from = task:get_header('From') + local header_from = task:get_from('mime')[1] local header_cread = task:get_header('X-Confirm-Reading-To') if header_from and header_cread then @@ -169,7 +169,7 @@ rspamd_config.HEADER_RCONFIRM_MISMATCH = { rspamd_config.HEADER_FORGED_MDN = { callback = function (task) local header_mdn = task:get_header('Disposition-Notification-To') - local header_rp = task:get_header('Return-Path') + local header_rp = task:get_from('smtp')[1] if header_mdn and not header_rp then return true end if header_rp and not header_mdn then return true end |