diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-22 16:36:31 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-22 16:36:31 +0100 |
commit | b887f717e82a5df630a03a433ecfcafb4714dc63 (patch) | |
tree | 4914a45ab540fe12510ef824bbe80551086345cd /rules/rspamd.lua | |
parent | b96418cea8bf33dfda016e96c2d3183e60a0dfee (diff) | |
download | rspamd-b887f717e82a5df630a03a433ecfcafb4714dc63.tar.gz rspamd-b887f717e82a5df630a03a433ecfcafb4714dc63.zip |
Load legacy `lua/rspamd.local.lua`
Diffstat (limited to 'rules/rspamd.lua')
-rw-r--r-- | rules/rspamd.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rules/rspamd.lua b/rules/rspamd.lua index a9a38a997..75dd2b3d9 100644 --- a/rules/rspamd.lua +++ b/rules/rspamd.lua @@ -53,6 +53,11 @@ end if file_exists(local_conf .. '/rspamd.local.lua') then dofile(local_conf .. '/rspamd.local.lua') +else + -- Legacy lua/rspamd.local.lua + if file_exists(local_conf .. '/lua/rspamd.local.lua') then + dofile(local_conf .. '/lua/rspamd.local.lua') + end end if file_exists(local_rules .. '/rspamd.classifiers.lua') then |