From: Vsevolod Stakhov Date: Thu, 3 Nov 2022 22:08:42 +0000 (+0000) Subject: [Minor] Add size to the metadata exporter X-Git-Tag: 3.5~223 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f85dfb2f0b80ea030e7106534d1d00b29311ce80;p=rspamd.git [Minor] Add size to the metadata exporter Issue: #4321 --- 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')