aboutsummaryrefslogtreecommitdiffstats
path: root/conf/lua
diff options
context:
space:
mode:
authoreneq123 <you@example.com>2015-02-11 16:12:44 +0300
committereneq123 <you@example.com>2015-02-11 16:12:44 +0300
commitcc473f6816c618ed1dcb05a3bf33037f49fb12cf (patch)
tree6cd765e34a6ec5cbdca37561be24ca312c7780bc /conf/lua
parentb0c74e7f5af9006149c7143aee78fad68576181f (diff)
downloadrspamd-cc473f6816c618ed1dcb05a3bf33037f49fb12cf.tar.gz
rspamd-cc473f6816c618ed1dcb05a3bf33037f49fb12cf.zip
false if header from is nil
Diffstat (limited to 'conf/lua')
-rw-r--r--conf/lua/regexp/headers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/lua/regexp/headers.lua b/conf/lua/regexp/headers.lua
index af7eb5fa7..7a96ee01d 100644
--- a/conf/lua/regexp/headers.lua
+++ b/conf/lua/regexp/headers.lua
@@ -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