From b5c8d4dfab500a42112de274a4d6a4453010f533 Mon Sep 17 00:00:00 2001 From: Anton Yuzhaninov Date: Wed, 3 Jun 2020 12:37:22 +0100 Subject: [PATCH] [Minor] Don't save empty Message-ID in replies module Skip messages with an empty or too short Message-ID (e. g. <>) in replies module. --- src/plugins/lua/replies.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua index 66a36ff00..30438c13f 100644 --- a/src/plugins/lua/replies.lua +++ b/src/plugins/lua/replies.lua @@ -150,7 +150,7 @@ local function replies_set(task) end -- If no message-id present return local msg_id = task:get_header_raw('message-id') - if msg_id == nil then + if msg_id == nil or msg_id:len() <= 2 then return end -- Create hash of message-id and store to redis -- 2.39.5