]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add logging for mime types
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 19 Feb 2017 17:18:31 +0000 (17:18 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 19 Feb 2017 17:18:31 +0000 (17:18 +0000)
src/plugins/lua/mime_types.lua

index fe530f19360b26c9657d98973b34ae4e84e4bd2b..c1847f771bdb75c9428c7c1cb6a5c57adb47ec8d 100644 (file)
@@ -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()