From: Vsevolod Stakhov Date: Wed, 22 Dec 2021 20:04:05 +0000 (+0000) Subject: [Minor] Fix fuzzy hashes exporting X-Git-Tag: 3.2~145 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9faf4e70cee731053c540931c1ab7eb353a5dadc;p=rspamd.git [Minor] Fix fuzzy hashes exporting Suggested by: @dupondje --- 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')