diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-09 11:55:41 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-09 11:55:41 +0000 |
commit | 6e497db7986a7051a093c01398ad052abdf5404d (patch) | |
tree | 192079f1e166e789f48cde0d558528c241840522 /src/plugins | |
parent | 93cc4cf46d6c3978ce19f6c7d75975dc2020b337 (diff) | |
download | rspamd-6e497db7986a7051a093c01398ad052abdf5404d.tar.gz rspamd-6e497db7986a7051a093c01398ad052abdf5404d.zip |
[Minor] Allow to export local messages scans to clickhouse
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/clickhouse.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua index 04d2c6c57..9ef951e43 100644 --- a/src/plugins/lua/clickhouse.lua +++ b/src/plugins/lua/clickhouse.lua @@ -58,6 +58,7 @@ local settings = { enable_symbols = false, use_https = false, use_gzip = true, + allow_local = false, } local clickhouse_schema = { @@ -363,7 +364,7 @@ local function clickhouse_quote(str) end local function clickhouse_collect(task) - if rspamd_lua_utils.is_rspamc_or_controller(task) then return end + if not settings.allow_local and rspamd_lua_utils.is_rspamc_or_controller(task) then return end local from_domain = '' local from_user = '' if task:has_from('smtp') then |