From c4503fb049c85f86644e65bd5f1661fe4d416120 Mon Sep 17 00:00:00 2001 From: eneq123 Date: Wed, 11 Feb 2015 16:12:44 +0300 Subject: [PATCH] false if header from is nil --- conf/lua/regexp/headers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5