commit e3e85d6: [Minor] Mime_types: Include zero weight parts in trace
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Dec 27 18:28:08 UTC 2018
Author: Vsevolod Stakhov
Date: 2018-12-14 14:53:24 +0000
URL: https://github.com/rspamd/rspamd/commit/e3e85d63f18aaf7fae817704af79b39ddb938706
[Minor] Mime_types: Include zero weight parts in trace
---
src/plugins/lua/mime_types.lua | 4 ++++
1 file changed, 4 insertions(+)
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',
More information about the Commits
mailing list