aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-27 02:34:38 -0800
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-27 02:34:38 -0800
commit3c3fbf500055ab41f8793af089857fc6cde14cac (patch)
tree8a7f0e03f816af340a005f050d33a33183e3d295
parent60d53c395aa9f3e3cbd1a7f3b5c01fd217d0eaf7 (diff)
parenta130e8bf6945f0fedccbd88eba4e9f20283b2de2 (diff)
downloadrspamd-3c3fbf500055ab41f8793af089857fc6cde14cac.tar.gz
rspamd-3c3fbf500055ab41f8793af089857fc6cde14cac.zip
Merge pull request #17 from AlexeySa/patch-1
Fix bug for check sender rule
-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)