aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-16 17:00:13 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-16 17:00:13 +0300
commitbbc68360a114fb5849c62d6bc41264c9906d7aca (patch)
tree37391f1210c38c3d72e49a4d9af0ebba1c9a9571 /conf
parenta1d1360ccbde0637045a1adc2098065550f0496b (diff)
downloadrspamd-bbc68360a114fb5849c62d6bc41264c9906d7aca.tar.gz
rspamd-bbc68360a114fb5849c62d6bc41264c9906d7aca.zip
* Improve forged_recipients plugin [1]
Add loading of local rules to rspamd.lua [1] [1] Suggested by Victor Ustugov
Diffstat (limited to 'conf')
-rw-r--r--conf/lua/rspamd.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/conf/lua/rspamd.lua b/conf/lua/rspamd.lua
index 2f337aa9f..e85a971d3 100644
--- a/conf/lua/rspamd.lua
+++ b/conf/lua/rspamd.lua
@@ -40,3 +40,17 @@ reconf['R_EMPTY_IMAGE'] = function (task)
return false
end
+
+local function file_exists(filename)
+ local file = io.open(filename)
+ if file then
+ io.close(file)
+ return true
+ else
+ return false
+ end
+end
+
+if file_exists('rspamd.local.lua') then
+ dofile('rspamd.local.lua')
+end