aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-31 15:08:16 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-31 15:08:16 +0000
commit569c024acdb4a7eaff33cdaaefc1ae25764c2ae2 (patch)
tree692568c7282dbfe936bd51e6252c6bd8f18e04d9 /rules
parent87a18acc470c9b204ad21c531c72cdd34976bd97 (diff)
downloadrspamd-569c024acdb4a7eaff33cdaaefc1ae25764c2ae2.tar.gz
rspamd-569c024acdb4a7eaff33cdaaefc1ae25764c2ae2.zip
[CritFix] Introduce raw content to text parts
Previously we had the following types of text content: - `orig`: MIME *decoded* content - `content`: same as `orig` but converted to utf8 and without HTML tags - `stripped`: same as `content` but without newlines Now we add `raw`: - `raw`: raw mime content as it was in an original message This also fixes R_BAD_CTE_7BIT rule
Diffstat (limited to 'rules')
-rw-r--r--rules/regexp/headers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 085994037..6b43c2f05 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -63,7 +63,7 @@ local r_ctype_text = 'content_type_is_type(text)'
-- Content transfer encoding is 7bit
local r_cte_7bit = 'compare_transfer_encoding(7bit)'
-- And body contains 8bit characters
-local r_body_8bit = '/[^\\x01-\\x7f]/Pr'
+local r_body_8bit = '/[^\\x01-\\x7f]/Qr'
reconf['R_BAD_CTE_7BIT'] = {
re = string.format('(%s) & (%s) & (%s)', r_ctype_text, r_cte_7bit, r_body_8bit),
score = 3.0,