aboutsummaryrefslogtreecommitdiffstats
path: root/rules/regexp
diff options
context:
space:
mode:
authorSteve Freegard <steve@stevefreegard.com>2017-04-11 16:13:05 +0100
committerSteve Freegard <steve@stevefreegard.com>2017-04-12 15:50:45 +0100
commit9aa169e092def662ec521adb6a07c04e46375fa0 (patch)
tree3bd6be84dd61f303503b1db3c592ab819fc20fc4 /rules/regexp
parent8f191fa2d1318b413f764e6958e498665bc449ce (diff)
downloadrspamd-9aa169e092def662ec521adb6a07c04e46375fa0.tar.gz
rspamd-9aa169e092def662ec521adb6a07c04e46375fa0.zip
New rules
Diffstat (limited to 'rules/regexp')
-rw-r--r--rules/regexp/headers.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index af63d7131..68e540aee 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -905,3 +905,14 @@ reconf['HAS_XOIP'] = {
score = 0.0,
group = 'headers'
}
+
+reconf['MIME_BASE64_TEXT'] = {
+ re = string.format('(%s && %s) || (%s && %s)',
+ 'Content-Type=/^text/Hi',
+ 'Content-Transfer-Encoding=/^base64/Hi',
+ 'Content-Type=/^text/Bi',
+ 'Content-Transfer-Encoding=/^base64/Bi'),
+ description = 'Message text disguised using base64 encoding',
+ score = 0.0,
+ group = 'headers'
+}