From: Alexey Date: Fri, 27 Dec 2013 08:01:41 +0000 (-0800) Subject: Fix bug for check sender rule X-Git-Tag: 0.6.6~4^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F17%2Fhead;p=thirdparty%2Frspamd.git Fix bug for check sender rule --- diff --git a/src/plugins/lua/forged_recipients.lua b/src/plugins/lua/forged_recipients.lua index a46776f914..9ad47a2592 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)