aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorJason Stephenson <j.stephenson@live.co.uk>2022-07-15 21:49:46 +0100
committerJason Stephenson <j.stephenson@live.co.uk>2022-07-15 21:49:46 +0100
commit758be4ce1f04df7bf661220049c1ad199baf857d (patch)
tree94a6af2ac5f4b98abf42404fe7b57722b4694627 /lualib
parentd4979648e9b052f87bc408e3c45b649a6bb54389 (diff)
downloadrspamd-758be4ce1f04df7bf661220049c1ad199baf857d.tar.gz
rspamd-758be4ce1f04df7bf661220049c1ad199baf857d.zip
Explicitly emit null instead of dropping from output
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_mime.lua2
1 files changed, 1 insertions, 1 deletions
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