aboutsummaryrefslogtreecommitdiffstats
path: root/rules/regexp
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-25 07:43:41 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-25 07:43:41 +0000
commite59e7c632a6a71c9b4cc0b9cea0e14fad079bb2f (patch)
tree45891e1ae47f7561d2b605b4047f60a6e610a624 /rules/regexp
parent6d2aa7b9de4a960db57f1389208274b31d8b5a29 (diff)
downloadrspamd-e59e7c632a6a71c9b4cc0b9cea0e14fad079bb2f.tar.gz
rspamd-e59e7c632a6a71c9b4cc0b9cea0e14fad079bb2f.zip
[Minor] Pet luacheck
Diffstat (limited to 'rules/regexp')
-rw-r--r--rules/regexp/compromised_hosts.lua3
-rw-r--r--rules/regexp/headers.lua3
2 files changed, 4 insertions, 2 deletions
diff --git a/rules/regexp/compromised_hosts.lua b/rules/regexp/compromised_hosts.lua
index 47af04eec..6ad2e6b93 100644
--- a/rules/regexp/compromised_hosts.lua
+++ b/rules/regexp/compromised_hosts.lua
@@ -140,7 +140,8 @@ reconf['HIDDEN_SOURCE_OBJ'] = {
group = "compromised_hosts"
}
-local hidden_uri_re = rspamd_regexp.create_cached('/(?!\\/\\.well[-_]known\\/)(?:^\\.[A-Za-z0-9]|\\/\\.[A-Za-z0-9]|\\/\\.\\.\\/)/i')
+local hidden_uri_re = rspamd_regexp.create_cached('/(?!\\/\\.well[-_]known\\/)(?:^\\.[A-Za-z0-9]|\\/'..
+ '\\.[A-Za-z0-9]|\\/\\.\\.\\/)/i')
rspamd_config.URI_HIDDEN_PATH = {
callback = function (task)
local urls = task:get_urls(false)
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index a8c6d5a85..b9993f7ce 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -118,7 +118,8 @@ reconf['MISSING_MID'] = {
-- Received seems to be fake
reconf['R_RCVD_SPAMBOTS'] = {
- re = 'Received=/^from \\[\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\] by [-.\\w+]{5,255}; [SMTWF][a-z][a-z], [\\s\\d]?\\d [JFMAJSOND][a-z][a-z] \\d{4} \\d{2}:\\d{2}:\\d{2} [-+]\\d{4}$/mH',
+ re = 'Received=/^from \\[\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\] by [-.\\w+]{5,255}; [SMTWF][a-z][a-z],' ..
+ ' [\\s\\d]?\\d [JFMAJSOND][a-z][a-z] \\d{4} \\d{2}:\\d{2}:\\d{2} [-+]\\d{4}$/mH',
score = 3.0,
description = 'Spambots signatures in received headers',
group = 'headers'