]> source.dussan.org Git - rspamd.git/commitdiff
false if header from is nil
authoreneq123 <you@example.com>
Wed, 11 Feb 2015 13:12:44 +0000 (16:12 +0300)
committereneq123 <you@example.com>
Wed, 11 Feb 2015 13:12:44 +0000 (16:12 +0300)
conf/lua/regexp/headers.lua

index af7eb5fa7cda0fd4bb0ae26dbcec45a62e82fddf..7a96ee01d77e5791b62dbc7516508a6bc3a493c4 100644 (file)
@@ -232,7 +232,7 @@ function kmail_msgid (task)
        local header_msgid = task:get_header('Message-Id')
        if header_msgid then
                local header_from = task:get_header('From')
-         if re:match(header_from.."|"..header_msgid) then return true end
+               if header_from and re:match(header_from.."|"..header_msgid) then return true end
        end
        return false
 end