summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexey <AlexeySa@users.noreply.github.com>2013-12-27 00:01:41 -0800
committerAlexey <AlexeySa@users.noreply.github.com>2013-12-27 00:01:41 -0800
commita130e8bf6945f0fedccbd88eba4e9f20283b2de2 (patch)
tree8a7f0e03f816af340a005f050d33a33183e3d295 /src
parent60d53c395aa9f3e3cbd1a7f3b5c01fd217d0eaf7 (diff)
downloadrspamd-a130e8bf6945f0fedccbd88eba4e9f20283b2de2.tar.gz
rspamd-a130e8bf6945f0fedccbd88eba4e9f20283b2de2.zip
Fix bug for check sender rule
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/forged_recipients.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/forged_recipients.lua b/src/plugins/lua/forged_recipients.lua
index a46776f91..9ad47a259 100644
--- a/src/plugins/lua/forged_recipients.lua
+++ b/src/plugins/lua/forged_recipients.lua
@@ -37,7 +37,7 @@ function check_forged_headers(task)
end
-- Check sender
local smtp_from = task:get_from()
- if smtp_form then
+ if smtp_from then
local mime_from = task:get_from_headers()
if not mime_from or not (string.lower(mime_from[1]['addr']) == string.lower(smtp_from[1]['addr'])) then
task:insert_result(symbol_sender, 1)