From: Andrew Lewis Date: Tue, 7 Mar 2017 12:18:10 +0000 (+0200) Subject: [Minor] Silence warning X-Git-Tag: 1.5.2~2^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1494%2Fhead;p=rspamd.git [Minor] Silence warning --- 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