aboutsummaryrefslogtreecommitdiffstats
path: root/rules/regexp/misc.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-12 12:35:23 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-12 12:35:23 +0100
commit4e79bc05da66ad3e29c80b0e7220537bab3d5ae4 (patch)
tree4fa2805a0a787d80680af63b02732bf980ef0255 /rules/regexp/misc.lua
parent64772cf0e77038981f30f6310e048c0506a441d5 (diff)
downloadrspamd-4e79bc05da66ad3e29c80b0e7220537bab3d5ae4.tar.gz
rspamd-4e79bc05da66ad3e29c80b0e7220537bab3d5ae4.zip
[Rules] Add additional conditions to perform BTC checks
Diffstat (limited to 'rules/regexp/misc.lua')
-rw-r--r--rules/regexp/misc.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/rules/regexp/misc.lua b/rules/regexp/misc.lua
index 2076c78fa..ece856c96 100644
--- a/rules/regexp/misc.lua
+++ b/rules/regexp/misc.lua
@@ -68,11 +68,12 @@ local password_in_words = [[/^pass(?:(?:word)|(?:phrase))$/i{words}]]
local btc_wallet_address = [[/^[13][1-9A-Za-z]{25,34}$/]]
local wallet_word = [[/^wallet$/{words}]]
local broken_unicode = [[has_flag(bad_unicode)]]
+local list_unsub = [[header_exists(List-Unsubscribe)]]
reconf['LEAKED_PASSWORD_SCAM'] = {
- re = string.format('%s{words} & (%s | %s | %s | %s | %s | %s | lua:check_data_images)',
+ re = string.format('%s{words} & (%s | %s | %s | %s | %s | %s | %s | lua:check_data_images)',
btc_wallet_address, password_in_words, wallet_word,
- my_victim, your_webcam, your_onan, broken_unicode),
+ my_victim, your_webcam, your_onan, broken_unicode, list_unsub),
description = 'Contains password word and BTC wallet address',
functions = {
check_data_images = function(task)