From: Anton Yuzhaninov Date: Wed, 3 Jun 2020 11:37:22 +0000 (+0100) Subject: [Minor] Don't save empty Message-ID in replies module X-Git-Tag: 2.6~358^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F3388%2Fhead;p=rspamd.git [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. --- 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