diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-31 18:59:40 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-31 18:59:40 +0400 |
commit | 2a8b8ce671babd92cd60fbd70be9edf97cc20603 (patch) | |
tree | fe4c61979cd646544d5e2be1e89c8c8d9241e3af /conf/lua | |
parent | 7c778294a9625ee4954f784763495e05af513510 (diff) | |
download | rspamd-2a8b8ce671babd92cd60fbd70be9edf97cc20603.tar.gz rspamd-2a8b8ce671babd92cd60fbd70be9edf97cc20603.zip |
* Write symbols weights to rspamc output
* Improve logic of selecting rspamc version
* Do not try to parse broken DNS replies
* Add 'raw' flag to FROM_EXCESS_BASE64 rule (requested by citrin)
Diffstat (limited to 'conf/lua')
-rw-r--r-- | conf/lua/regexp/headers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/lua/regexp/headers.lua b/conf/lua/regexp/headers.lua index d296b3653..4c415a2f3 100644 --- a/conf/lua/regexp/headers.lua +++ b/conf/lua/regexp/headers.lua @@ -77,7 +77,7 @@ reconf['TRACKER_ID'] = '/^[a-z0-9]{6,24}[-_a-z0-9]{2,36}[a-z0-9]{6,24}\\s*\\z/is -- Regexp that checks that from header is encoded with base64 (search in raw headers) local from_encoded_b64 = 'From=/\\=\\?\\S+\\?B\\?/iX' -- From contains only 7bit characters (parsed headers are used) -local from_needs_mime = 'From=/[\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f-\\xff]/H' +local from_needs_mime = 'From=/[\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f-\\xff]/Hr' -- Final rule reconf['FROM_EXCESS_BASE64'] = string.format('%s & !%s', from_encoded_b64, from_needs_mime) |