diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-08-31 10:22:52 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-08-31 10:22:52 +0200 |
commit | 28866f60631a43caa580686d11731e51587d2e5a (patch) | |
tree | 587be224bc643d859a58c50ef71d87bc259d69eb /rules/regexp/lotto.lua | |
parent | dacfdb076ba21ef1c3be5c9d7bb87723f74d952b (diff) | |
download | rspamd-28866f60631a43caa580686d11731e51587d2e5a.tar.gz rspamd-28866f60631a43caa580686d11731e51587d2e5a.zip |
[Minor] Finish reworking rules
Diffstat (limited to 'rules/regexp/lotto.lua')
-rw-r--r-- | rules/regexp/lotto.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rules/regexp/lotto.lua b/rules/regexp/lotto.lua index df0f2577a..03ebdb4ab 100644 --- a/rules/regexp/lotto.lua +++ b/rules/regexp/lotto.lua @@ -28,4 +28,9 @@ local kam_lotto3 = '/(won|claim|cash prize|pounds? sterling)/isrP' local kam_lotto4 = '/(claims (officer|agent)|lottery coordinator|fiduciary (officer|agent)|fiduaciary claims)/isrP' local kam_lotto5 = '/(freelotto group|Royal Heritage Lottery|UK National (Online)? Lottery|U\\.?K\\.? Grand Promotions|Lottery Department UK|Euromillion Loteria|Luckyday International Lottery|International Lottery)/isrP' local kam_lotto6 = '/(Dear Lucky Winner|Winning Notification|Attention:Winner|Dear Winner)/isrP' -reconf['R_LOTTO'] = string.format('((%s) | (%s) | (%s)) & (((%s) + (%s) + (%s) + (%s) + (%s) + (%s) + (%s) + (%s) + (%s)) >= 3)', reconf['R_UNDISC_RCPT']['re'], reconf['R_BAD_CTE_7BIT']['re'], reconf['R_NO_SPACE_IN_FROM']['re'], r_lotto_from, r_lotto_subject, r_lotto_body, kam_lotto1, kam_lotto2, kam_lotto3, kam_lotto4, kam_lotto5, kam_lotto6) +reconf['R_LOTTO'] = { + re = string.format('((%s) | (%s) | (%s)) & (((%s) + (%s) + (%s) + (%s) + (%s) + (%s) + (%s) + (%s) + (%s)) >= 3)', reconf['R_UNDISC_RCPT']['re'], reconf['R_BAD_CTE_7BIT']['re'], reconf['R_NO_SPACE_IN_FROM']['re'], r_lotto_from, r_lotto_subject, r_lotto_body, kam_lotto1, kam_lotto2, kam_lotto3, kam_lotto4, kam_lotto5, kam_lotto6), + score = 8.0, + description = 'Lotto signatures', + group = 'body' +} |