commit 758be4c: Explicitly emit null instead of dropping from output

Jason Stephenson j.stephenson at live.co.uk
Fri Jul 15 21:35:04 UTC 2022


Author: Jason Stephenson
Date: 2022-07-15 21:49:46 +0100
URL: https://github.com/rspamd/rspamd/commit/758be4ce1f04df7bf661220049c1ad199baf857d

Explicitly emit null instead of dropping from output

---
 lualib/lua_mime.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lualib/lua_mime.lua b/lualib/lua_mime.lua
index 575e9152c..80e1080b5 100644
--- a/lualib/lua_mime.lua
+++ b/lualib/lua_mime.lua
@@ -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


More information about the Commits mailing list