summaryrefslogtreecommitdiffstats
path: root/lualib/rspamadm
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-06 11:12:04 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-06 11:12:04 +0100
commit33f644b015534f38a18c665d14839b8f47c25640 (patch)
tree15d687c52db67fa41e5b8dfa34297db6bd6ebbeb /lualib/rspamadm
parentce08c225c4d2341de0195b83cbf46e6326ef63c6 (diff)
downloadrspamd-33f644b015534f38a18c665d14839b8f47c25640.tar.gz
rspamd-33f644b015534f38a18c665d14839b8f47c25640.zip
[Minor] Load urls before breaking text into words
Diffstat (limited to 'lualib/rspamadm')
-rw-r--r--lualib/rspamadm/mime.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lualib/rspamadm/mime.lua b/lualib/rspamadm/mime.lua
index affe4949f..974d98bcf 100644
--- a/lualib/rspamadm/mime.lua
+++ b/lualib/rspamadm/mime.lua
@@ -194,7 +194,9 @@ local function extract_handler(opts)
local process_func
if opts.words then
- -- Enable stemming
+ -- Enable stemming and urls detection
+ load_config(opts)
+ rspamd_url.init(rspamd_config:get_tld_path())
rspamd_config:init_subsystem('langdet')
end