commit d7b4d91: [Minor] Add some more debug to mime_types

Vsevolod Stakhov vsevolod at rspamd.com
Wed Apr 13 19:49:03 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-04-13 20:06:37 +0100
URL: https://github.com/rspamd/rspamd/commit/d7b4d913b5695ac580103176db03fcd628901b89

[Minor] Add some more debug to mime_types

---
 src/plugins/lua/mime_types.lua | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua
index 75035523e..ce784b10e 100644
--- a/src/plugins/lua/mime_types.lua
+++ b/src/plugins/lua/mime_types.lua
@@ -220,6 +220,8 @@ local function check_mime_type(task)
 
   local function check_filename(fname, ct, is_archive, part, detected_ext, nfiles)
 
+    lua_util.debugm(N, task, "check filename: %s, ct=%s, is_archive=%s, detected_ext=%s, nfiles=%s",
+        fname, ct, is_archive, detected_ext, nfiles)
     local has_bad_unicode, char, ch_pos = rspamd_util.has_obscured_unicode(fname)
     if has_bad_unicode then
       task:insert_result(settings.symbol_bad_unicode, 1.0,


More information about the Commits mailing list