summaryrefslogtreecommitdiffstats
path: root/rules/rspamd.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-18 16:04:23 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-18 16:40:48 +0100
commit01d8f7e7a8f62a4797ebbd446b0b975d1ae735ae (patch)
tree4e3e31c62160eda5f9a6bd664fed029fa35c134a /rules/rspamd.lua
parentde8eb1d9a3b915fc932cc9f97581505ecefa47df (diff)
downloadrspamd-01d8f7e7a8f62a4797ebbd446b0b975d1ae735ae.tar.gz
rspamd-01d8f7e7a8f62a4797ebbd446b0b975d1ae735ae.zip
[Rework] Move global functions to a separate directory
Diffstat (limited to 'rules/rspamd.lua')
-rw-r--r--rules/rspamd.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules/rspamd.lua b/rules/rspamd.lua
index ce461d8d3..3cdd626f9 100644
--- a/rules/rspamd.lua
+++ b/rules/rspamd.lua
@@ -16,12 +16,13 @@ limitations under the License.
-- This is main lua config file for rspamd
+require "global_functions" ()
+
config['regexp'] = {}
local local_conf = rspamd_paths['CONFDIR']
local local_rules = rspamd_paths['RULESDIR']
-dofile(local_rules .. '/global_functions.lua')
dofile(local_rules .. '/regexp/headers.lua')
dofile(local_rules .. '/regexp/misc.lua')
dofile(local_rules .. '/regexp/upstream_spam_filters.lua')