commit 537a1ae: [Minor] Add some missing types

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Dec 4 19:21:06 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-12-04 19:19:48 +0000
URL: https://github.com/rspamd/rspamd/commit/537a1ae6499e6af84b6683ade2286fb67b1a0aff (HEAD -> master)

[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(), '~'))


More information about the Commits mailing list