]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix fuzzy hashes exporting
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 22 Dec 2021 20:04:05 +0000 (20:04 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 22 Dec 2021 20:04:05 +0000 (20:04 +0000)
Suggested by: @dupondje

src/plugins/lua/metadata_exporter.lua

index 48a5ffce30f4da772fa363ae5d49b6367ffb3b9b..b6ad3363d8deea37c431e2f7c636086775b27eee 100644 (file)
@@ -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')