From: Vsevolod Stakhov Date: Thu, 6 Sep 2018 10:12:04 +0000 (+0100) Subject: [Minor] Load urls before breaking text into words X-Git-Tag: 1.8.0~183 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=33f644b015534f38a18c665d14839b8f47c25640;p=rspamd.git [Minor] Load urls before breaking text into words --- 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