From: Vsevolod Stakhov Date: Fri, 9 Mar 2018 11:55:41 +0000 (+0000) Subject: [Minor] Allow to export local messages scans to clickhouse X-Git-Tag: 1.7.0~28 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6e497db7986a7051a093c01398ad052abdf5404d;p=rspamd.git [Minor] Allow to export local messages scans to clickhouse --- 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