From: eneq123 Date: Wed, 11 Feb 2015 13:12:44 +0000 (+0300) Subject: false if header from is nil X-Git-Tag: 0.9.0~730^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cc473f6816c618ed1dcb05a3bf33037f49fb12cf;p=rspamd.git false if header from is nil --- 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