summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/forged_recipients.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-06-23 13:52:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-06-23 13:52:41 +0100
commit86a83ea8f15d57e530b4fa937aa9e4720f3e7444 (patch)
tree9014b7001ef473ba45e1015af11c5e956d93f71f /src/plugins/lua/forged_recipients.lua
parent2345e3aa48f4d59dd5fe5f93e39210942d5a9806 (diff)
downloadrspamd-86a83ea8f15d57e530b4fa937aa9e4720f3e7444.tar.gz
rspamd-86a83ea8f15d57e530b4fa937aa9e4720f3e7444.zip
Fix issues with bounces From processing.
Diffstat (limited to 'src/plugins/lua/forged_recipients.lua')
-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 170c2cd53..c4a00c57b 100644
--- a/src/plugins/lua/forged_recipients.lua
+++ b/src/plugins/lua/forged_recipients.lua
@@ -63,7 +63,7 @@ local function check_forged_headers(task)
end
-- Check sender
local smtp_from = task:get_from(1)
- if smtp_from and smtp_from[1] then
+ if smtp_from and smtp_from[1] and smtp_from[1]['addr'] ~= '' then
local mime_from = task:get_from(2)
if not mime_from or not mime_from[1] or
not (string.lower(mime_from[1]['addr']) == string.lower(smtp_from[1]['addr'])) then