commit f85dfb2: [Minor] Add size to the metadata exporter
Vsevolod Stakhov
vsevolod at rspamd.com
Thu Nov 3 22:14:03 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-11-03 22:08:42 +0000
URL: https://github.com/rspamd/rspamd/commit/f85dfb2f0b80ea030e7106534d1d00b29311ce80 (HEAD -> master)
[Minor] Add size to the metadata exporter
Issue: #4321
---
src/plugins/lua/metadata_exporter.lua | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/plugins/lua/metadata_exporter.lua b/src/plugins/lua/metadata_exporter.lua
index cd225e841..dceb81cd4 100644
--- a/src/plugins/lua/metadata_exporter.lua
+++ b/src/plugins/lua/metadata_exporter.lua
@@ -164,6 +164,8 @@ local function get_general_metadata(task, flatten, no_content)
end
r.scan_time = scan_real
+ local content = task:get_content()
+ r.size = content and content:len() or 0
if not no_content then
r.header_from = process_header('from')
More information about the Commits
mailing list