From 537a1ae6499e6af84b6683ade2286fb67b1a0aff Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 4 Dec 2020 19:19:48 +0000 Subject: [Minor] Add some missing types --- conf/maps.d/mime_types.inc | 1 + src/plugins/lua/mime_types.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/conf/maps.d/mime_types.inc b/conf/maps.d/mime_types.inc index 3fc17339c..d71fa0d90 100644 --- a/conf/maps.d/mime_types.inc +++ b/conf/maps.d/mime_types.inc @@ -1354,6 +1354,7 @@ message/http 0 message/imdn+xml 0 message/news 0 message/rfc822 0 +message/rfc822-headers 0 message/s-http 0 message/sip 0 message/sipfrag 0 diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua index a4c664e3f..9f6e4f330 100644 --- a/src/plugins/lua/mime_types.lua +++ b/src/plugins/lua/mime_types.lua @@ -386,6 +386,7 @@ local function check_mime_type(task) local mtype,subtype = p:get_type() if not mtype then + lua_util.debugm(N, task, "no content type for part: %s", p:get_id()) task:insert_result(settings['symbol_unknown'], 1.0, 'missing content type') task:insert_result('MIME_TRACE', 0.0, string.format("%s:%s", p:get_id(), '~')) -- cgit v1.2.3