diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-10-14 21:29:31 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-10-14 21:29:31 +0100 |
commit | 57bf1e47ddbda63545fdf33a312062d7f41c812e (patch) | |
tree | 9199ec0b8afc0d1207626d8d45e6d65698e3906f /lualib | |
parent | d325b95656c091b75e0520d71ac865eb7bb047eb (diff) | |
download | rspamd-57bf1e47ddbda63545fdf33a312062d7f41c812e.tar.gz rspamd-57bf1e47ddbda63545fdf33a312062d7f41c812e.zip |
[Minor] Lua_task: Add get_headers method
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_mime.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lualib/lua_mime.lua b/lualib/lua_mime.lua index ad38d3c32..f84cc4d4e 100644 --- a/lualib/lua_mime.lua +++ b/lualib/lua_mime.lua @@ -572,4 +572,16 @@ exports.modify_headers = function(task, hdr_alterations) end end +--[[[ +-- @function lua_mime.message_to_ucl(task) +-- Exports a message to an ucl object +--]] +exports.message_to_ucl = function(task) + local result = {} + result.size = task:get_size() + result.digest = task:get_digest() + + return result +end + return exports |