diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-25 16:58:11 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-25 16:58:11 +0400 |
commit | 34ae83f0151a3fd31f4c045968defa39a2c40985 (patch) | |
tree | 3bb121336c76d16e3e5257c12a7905af0e04b70f /conf | |
parent | 4a8c30c78940a9153de23dc4d031273649e93cce (diff) | |
download | rspamd-34ae83f0151a3fd31f4c045968defa39a2c40985.tar.gz rspamd-34ae83f0151a3fd31f4c045968defa39a2c40985.zip |
* Add rspamd_log variable to lua plugins to access logging functions
* Each part in rspamd task now can have parent part
* Check for parts distance only for multipart/alternative subparts
* Do not check attachements even if they are text (but attached as file)
* Do not die if write (2) returned ENOSPACE while doing logging, turn on throttling mode instead (1 write try in a second)
* Add ability to turn on debug for specific symbols
* Add ability to configure dns timeouts and dns retransmits in config file
Diffstat (limited to 'conf')
-rw-r--r-- | conf/lua/rspamd.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/conf/lua/rspamd.lua b/conf/lua/rspamd.lua index f546c6189..bd04beab4 100644 --- a/conf/lua/rspamd.lua +++ b/conf/lua/rspamd.lua @@ -16,11 +16,13 @@ local html_link_image = '/<img /iPr' reconf['HTML_SHORT_LINK_IMG_2'] = string.format('(%s) & (%s)', html_length_1024_1536, html_link_image) -- Local rules -local r_bgcolor = '/BGCOLOR=/iM' -local r_font_color = '/font color=[\\"\']?\\#FFFFFF[\\"\']?/iM' +local r_bgcolor = '/BGCOLOR=/iP' +local r_font_color = '/font color=[\\"\']?\\#FFFFFF[\\"\']?/iP' reconf['R_WHITE_ON_WHITE'] = string.format('(!(%s) & (%s))', r_bgcolor, r_font_color) 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) +-- Different text parts +reconf['R_PARTS_DIFFER'] = 'compare_parts_distance(70)'; |