]> source.dussan.org Git - rspamd.git/commitdiff
Fix bug for check sender rule 17/head
authorAlexey <AlexeySa@users.noreply.github.com>
Fri, 27 Dec 2013 08:01:41 +0000 (00:01 -0800)
committerAlexey <AlexeySa@users.noreply.github.com>
Fri, 27 Dec 2013 08:01:41 +0000 (00:01 -0800)
src/plugins/lua/forged_recipients.lua

index a46776f914b2d90f7b4621df55a718c2fb521071..9ad47a2592b5cd949d784c2108f9b13b52675aea 100644 (file)
@@ -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)