]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Load urls before breaking text into words
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 6 Sep 2018 10:12:04 +0000 (11:12 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 6 Sep 2018 10:12:04 +0000 (11:12 +0100)
lualib/rspamadm/mime.lua

index affe4949f1a7fb9852927056e7f9398630e86349..974d98bcfeed500869424ae317496d40d0e91238 100644 (file)
@@ -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