summaryrefslogtreecommitdiffstats
path: root/rules/regexp
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-12-26 17:12:11 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-12-26 17:12:11 +0000
commitd413a9fe656591bfb94def878c63e1768c30c522 (patch)
tree50503f6c4b6105c78a775bc2e3119b56312c2890 /rules/regexp
parent041d3b0282e51227a627d02c6615ea13329afd3f (diff)
downloadrspamd-d413a9fe656591bfb94def878c63e1768c30c522.tar.gz
rspamd-d413a9fe656591bfb94def878c63e1768c30c522.zip
[Fix] Replace space like characters in headers with plain space
Diffstat (limited to 'rules/regexp')
-rw-r--r--rules/regexp/headers.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index b375f6598..8dc8e9777 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -862,14 +862,14 @@ reconf['SUBJECT_HAS_EXCLAIM'] = {
}
reconf['SUBJECT_ENDS_QUESTION'] = {
- re = 'Subject=/\\?\\s*$/H',
+ re = 'Subject=/\\?\\s*$/Hu',
description = 'Subject ends with a question',
score = 1.0,
group = 'headers'
}
reconf['SUBJECT_HAS_QUESTION'] = {
- re = string.format('%s & !%s', 'Subject=/\\?/H', 'Subject=/\\?\\s*$/H'),
+ re = string.format('%s & !%s', 'Subject=/\\?/H', 'Subject=/\\?\\s*$/Hu'),
description = 'Subject contains a question',
score = 0.0,
group = 'headers'