From: Vsevolod Stakhov Date: Sun, 19 Feb 2017 17:18:31 +0000 (+0000) Subject: [Minor] Add logging for mime types X-Git-Tag: 1.5.0~79 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=af5431f5c360daa7607ddb4b28b4a28d4e4539b3;p=rspamd.git [Minor] Add logging for mime types --- diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua index fe530f193..c1847f771 100644 --- a/src/plugins/lua/mime_types.lua +++ b/src/plugins/lua/mime_types.lua @@ -15,7 +15,7 @@ limitations under the License. ]]-- -- This plugin implements mime types checks for mail messages - +local logger = require "rspamd_logger" local settings = { file = '', symbol_unknown = 'MIME_UNKNOWN', @@ -180,6 +180,8 @@ local function check_mime_type(task) if ext and settings.archive_exceptions[ext] then check = false + logger.debugm("mime_types", task, "skip checking of %s as archive, %s is whitelisted", + filename, ext) end end local arch = p:get_archive()