From: eneq123 Date: Wed, 11 Feb 2015 13:12:44 +0000 (+0300) Subject: false if header from is nil X-Git-Tag: 0.8.2~48^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F161%2Fhead;p=thirdparty%2Frspamd.git false if header from is nil --- diff --git a/conf/lua/regexp/headers.lua b/conf/lua/regexp/headers.lua index af7eb5fa7c..7a96ee01d7 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