aboutsummaryrefslogtreecommitdiffstats
path: root/rules/misc.lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-03-07 14:18:10 +0200
committerAndrew Lewis <nerf@judo.za.org>2017-03-07 14:18:10 +0200
commite6289c07329f426234d15bb25027989ae5666e41 (patch)
tree96cf4d5e8a1dade2f00eb48c715dc207b649e7ba /rules/misc.lua
parentd31fc47a246adb80ce2f847782d06b5a6660f97b (diff)
downloadrspamd-e6289c07329f426234d15bb25027989ae5666e41.tar.gz
rspamd-e6289c07329f426234d15bb25027989ae5666e41.zip
[Minor] Silence warning
Diffstat (limited to 'rules/misc.lua')
-rw-r--r--rules/misc.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/rules/misc.lua b/rules/misc.lua
index 151500d88..5abc2e821 100644
--- a/rules/misc.lua
+++ b/rules/misc.lua
@@ -747,9 +747,7 @@ local check_mime_id = rspamd_config:register_callback_symbol('CHECK_MIME', 1.0,
end
if missing_mime then
- if not found_ma and ((found_plain or found_html) and cte_7bit) then
- -- Skip symbol insertion
- else
+ if not (not found_ma and ((found_plain or found_html) and cte_7bit)) then
task:insert_result('MISSING_MIME_VERSION', 1.0)
end
end