diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-14 14:53:24 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-14 14:53:24 +0000 |
commit | e3e85d63f18aaf7fae817704af79b39ddb938706 (patch) | |
tree | 45929dda161f045f980349246f2276c3ea58669f /src | |
parent | 135f3ec0a45374071c72d836a9baaa3695441732 (diff) | |
download | rspamd-e3e85d63f18aaf7fae817704af79b39ddb938706.tar.gz rspamd-e3e85d63f18aaf7fae817704af79b39ddb938706.zip |
[Minor] Mime_types: Include zero weight parts in trace
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/mime_types.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua index 65b5524a7..36407dac0 100644 --- a/src/plugins/lua/mime_types.lua +++ b/src/plugins/lua/mime_types.lua @@ -1003,6 +1003,10 @@ local function check_mime_type(task) task:insert_result(settings['symbol_good'], -n, ct) task:insert_result('MIME_TRACE', 0.0, string.format("%s:%s", p:get_id(), '+')) + else + -- Neutral content type + task:insert_result('MIME_TRACE', 0.0, + string.format("%s:%s", p:get_id(), '~')) end else logger.warnx(task, 'unknown value: "%s" for content type %s in the map', |