commit e3a05b7: [Minor] Minor improvements
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Aug 16 10:56:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-08-16 11:54:05 +0100
URL: https://github.com/rspamd/rspamd/commit/e3a05b7969106514ce2e8c46e419e023f4a28d4d (HEAD -> master)
[Minor] Minor improvements
---
lualib/rspamadm/dmarc_report.lua | 2 +-
lualib/rspamadm/mime.lua | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/lualib/rspamadm/dmarc_report.lua b/lualib/rspamadm/dmarc_report.lua
index b6811df98..0b1a1983f 100644
--- a/lualib/rspamadm/dmarc_report.lua
+++ b/lualib/rspamadm/dmarc_report.lua
@@ -47,7 +47,7 @@ parser:flag "-n --no-opt"
parser:argument "date"
:description "Date to process (today by default)"
- :argname "<DDMMYYYY>"
+ :argname "<YYYYMMDD>"
:args "*"
parser:option "-b --batch-size"
:description "Send reports in batches up to <batch-size> messages"
diff --git a/lualib/rspamadm/mime.lua b/lualib/rspamadm/mime.lua
index 9c8183216..68dd9e760 100644
--- a/lualib/rspamadm/mime.lua
+++ b/lualib/rspamadm/mime.lua
@@ -312,11 +312,12 @@ local function extract_handler(opts)
local mtype,msubtype = part:get_type()
local det_mtype,det_msubtype = part:get_detected_type()
table.insert(out,
- rspamd_logger.slog('Mime Part: %s: %s/%s (%s/%s detected), filename: %s, size: %s',
+ rspamd_logger.slog('Mime Part: %s: %s/%s (%s/%s detected), filename: %s (%s detected ext), size: %s',
part:get_digest():sub(1,8),
mtype, msubtype,
det_mtype, det_msubtype,
part:get_filename(),
+ part:get_detected_ext(),
part:get_length()))
end
end
More information about the Commits
mailing list