]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add some missing types
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 4 Dec 2020 19:19:48 +0000 (19:19 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 4 Dec 2020 19:19:48 +0000 (19:19 +0000)
conf/maps.d/mime_types.inc
src/plugins/lua/mime_types.lua

index 3fc17339c7e6c7e8165115b7cd7ac691ca868d39..d71fa0d90fb1d4ef433649d159709f28c954ed1c 100644 (file)
@@ -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
index a4c664e3f490eefb6a5481298779a03ab56c91a6..9f6e4f3303d82f8daed219b74f633cdcc454fcf1 100644 (file)
@@ -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(), '~'))