]> source.dussan.org Git - rspamd.git/commitdiff
Explicitly emit null instead of dropping from output
authorJason Stephenson <j.stephenson@live.co.uk>
Fri, 15 Jul 2022 20:49:46 +0000 (21:49 +0100)
committerJason Stephenson <j.stephenson@live.co.uk>
Fri, 15 Jul 2022 20:49:46 +0000 (21:49 +0100)
lualib/lua_mime.lua

index 575e9152c002e20483a78b21ac98deb341ee375f..80e1080b59b4fc215533e97e7b3800a3887f1be8 100644 (file)
@@ -607,7 +607,7 @@ exports.message_to_ucl = function(task, stringify_content)
     from_ip = maybe_stringify_ip(task:get_from_ip()),
   }
   if not next(result.envelope) then
-    result.envelope = nil
+    result.envelope = ucl.null
   end
 
   local parts = task:get_parts() or E