aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/replies.lua
diff options
context:
space:
mode:
authorAnton Yuzhaninov <citrin+git@citrin.ru>2020-06-03 12:37:22 +0100
committerAnton Yuzhaninov <citrin+git@citrin.ru>2020-06-03 12:37:22 +0100
commitb5c8d4dfab500a42112de274a4d6a4453010f533 (patch)
treeb366b07f06f8724e962b480c5623475e0b6c8be0 /src/plugins/lua/replies.lua
parent7eb8a6f85cc1c65e4b5a83a8c0ef65cb4087e292 (diff)
downloadrspamd-b5c8d4dfab500a42112de274a4d6a4453010f533.tar.gz
rspamd-b5c8d4dfab500a42112de274a4d6a4453010f533.zip
[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.
Diffstat (limited to 'src/plugins/lua/replies.lua')
-rw-r--r--src/plugins/lua/replies.lua2
1 files changed, 1 insertions, 1 deletions
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