diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-06-17 06:59:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-17 06:59:38 +0000 |
commit | 8bd7b8c1dd1253c72200aaf3b82ee2795d914338 (patch) | |
tree | 62e1758a5a7388e6fdb4f54ba6870fd2e36fce4e /rules | |
parent | 92ceec4b7c435d1c48765a560748af3d21713d75 (diff) | |
download | rspamd-8bd7b8c1dd1253c72200aaf3b82ee2795d914338.tar.gz rspamd-8bd7b8c1dd1253c72200aaf3b82ee2795d914338.zip |
[Minor] Detect To addresses wrapped in spaces
Diffstat (limited to 'rules')
-rw-r--r-- | rules/regexp/headers.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua index a7300e2b8..148e204fe 100644 --- a/rules/regexp/headers.lua +++ b/rules/regexp/headers.lua @@ -62,6 +62,13 @@ reconf['R_NO_SPACE_IN_FROM'] = { group = 'header' } +reconf['TO_WRAPPED_IN_SPACES'] = { + re = [[To=/<\s[-.\w]+\@[-.\w]+\s>/X]], + score = 2.0, + description = 'To address is wrapped in spaces inside angle brackets (e.g. display-name < local-part@domain >)', + group = 'header' +} + -- Detects missing Subject header reconf['MISSING_SUBJECT'] = { re = '!raw_header_exists(Subject)', |