commit 9faf4e7: [Minor] Fix fuzzy hashes exporting
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Dec 22 20:07:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-12-22 20:04:05 +0000
URL: https://github.com/rspamd/rspamd/commit/9faf4e70cee731053c540931c1ab7eb353a5dadc (HEAD -> master)
[Minor] Fix fuzzy hashes exporting
Suggested by: @dupondje
---
src/plugins/lua/metadata_exporter.lua | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/plugins/lua/metadata_exporter.lua b/src/plugins/lua/metadata_exporter.lua
index 48a5ffce3..b6ad3363d 100644
--- a/src/plugins/lua/metadata_exporter.lua
+++ b/src/plugins/lua/metadata_exporter.lua
@@ -91,7 +91,11 @@ local function get_general_metadata(task, flatten, no_content)
r.fuzzy = table.concat(fz, ', ')
end
else
- r.fuzzy = 'unknown'
+ if not flatten then
+ r.fuzzy = {}
+ else
+ r.fuzzy = ''
+ end
end
local rcpt = task:get_recipients('smtp')
More information about the Commits
mailing list