diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-12-04 19:19:48 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-12-04 19:19:48 +0000 |
commit | 537a1ae6499e6af84b6683ade2286fb67b1a0aff (patch) | |
tree | 9d9b58cb3dd51055f0f52eb76044337d39dec276 | |
parent | 2aaf02a82cf2eebcccbeb470ec0a8d2f1999815a (diff) | |
download | rspamd-537a1ae6499e6af84b6683ade2286fb67b1a0aff.tar.gz rspamd-537a1ae6499e6af84b6683ade2286fb67b1a0aff.zip |
[Minor] Add some missing types
-rw-r--r-- | conf/maps.d/mime_types.inc | 1 | ||||
-rw-r--r-- | src/plugins/lua/mime_types.lua | 1 |
2 files changed, 2 insertions, 0 deletions
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(), '~')) |