diff options
Diffstat (limited to 'conf/lua/rspamd.lua')
-rw-r--r-- | conf/lua/rspamd.lua | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/conf/lua/rspamd.lua b/conf/lua/rspamd.lua index 0b64059e6..f546c6189 100644 --- a/conf/lua/rspamd.lua +++ b/conf/lua/rspamd.lua @@ -3,9 +3,9 @@ config['regexp'] = {} dofile('regexp/headers.lua') ---dofile('regexp/lotto.lua') ---dofile('regexp/fraud.lua') ---dofile('regexp/drugs.lua') +dofile('regexp/lotto.lua') +dofile('regexp/fraud.lua') +dofile('regexp/drugs.lua') local reconf = config['regexp'] @@ -17,11 +17,10 @@ reconf['HTML_SHORT_LINK_IMG_2'] = string.format('(%s) & (%s)', html_length_1024_ -- Local rules local r_bgcolor = '/BGCOLOR=/iM' -local r_font_color = '/font color=[\"\']?\#FFFFFF[\"\']?/iM' +local r_font_color = '/font color=[\\"\']?\\#FFFFFF[\\"\']?/iM' reconf['R_WHITE_ON_WHITE'] = string.format('(!(%s) & (%s))', r_bgcolor, r_font_color) -reconf['R_NO_SPACE_IN_FROM'] = 'From=/\S<[-\w\.]+\@[-\w\.]+>/X' -reconf['R_FLASH_REDIR_IMGSHACK'] = '/^(?:http:\/\/)?img\d{1,5}\.imageshack\.us\/\S+\.swf/U' -local r_rcvd_from_valuehost = 'Received=/\sb0\.valuehost\.ru/H' -local r_cyr_phone = '/8 \(\xD799\)/P' +reconf['R_FLASH_REDIR_IMGSHACK'] = '/^(?:http:\\/\\/)?img\\d{1,5}\\.imageshack\\.us\\/\\S+\\.swf/U' +local r_rcvd_from_valuehost = 'Received=/\\sb0\\.valuehost\\.ru/H' +local r_cyr_phone = '/8 \\(\\xD799\\)/P' reconf['R_SPAM_FROM_VALUEHOST'] = string.format('(%s) & (%s)', r_rcvd_from_valuehost, r_cyr_phone) |