diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-06-10 17:28:19 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-06-10 17:28:19 +0400 |
commit | 2b5a8d60da266be61d35b285bc14a8c5d71798e7 (patch) | |
tree | c0319c35813e6060d358b3f929e6b4422053caa7 /src/plugins/lua/trie.lua | |
parent | 8535693674a5e6d6b8a01c9fee43ef4d836c0909 (diff) | |
download | rspamd-2b5a8d60da266be61d35b285bc14a8c5d71798e7.tar.gz rspamd-2b5a8d60da266be61d35b285bc14a8c5d71798e7.zip |
* Add LRU caching structure
* Add SPF records cache
* Add ability to parse doubles to xmlrpc
Several fixes to dns interface.
Trie plugin now checks urls as well.
Diffstat (limited to 'src/plugins/lua/trie.lua')
-rw-r--r-- | src/plugins/lua/trie.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/lua/trie.lua b/src/plugins/lua/trie.lua index 98248f29f..6b1782a00 100644 --- a/src/plugins/lua/trie.lua +++ b/src/plugins/lua/trie.lua @@ -66,6 +66,15 @@ function check_trie(task) if trie['trie']:search_task(task) then task:insert_result(trie['symbol'], 1) end + -- Search inside urls + urls = task:get_urls() + if urls then + for _,url in urls do + if trie['trie']:search_text(url:get_text()) then + task:insert_result(trie['symbol'], 1) + end + end + end end end |