From: Vsevolod Stakhov Date: Thu, 22 Mar 2018 11:49:17 +0000 (+0000) Subject: [Minor] Fix sending emails to CH X-Git-Tag: 1.7.2~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=862cf9cbdfeb92d50c7f9074003c9f4e4987092a;p=rspamd.git [Minor] Fix sending emails to CH --- diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua index 590478d25..9ef0bfcc3 100644 --- a/src/plugins/lua/clickhouse.lua +++ b/src/plugins/lua/clickhouse.lua @@ -628,7 +628,9 @@ local function clickhouse_collect(task) local emails = {} if task:has_urls(true) then for _,u in ipairs(task:get_emails()) do - table.insert(emails, string.format("'%s'", clickhouse_quote(u:get_text()))) + table.insert(emails, string.format("'%s'", clickhouse_quote( + string.format('%s@%s', u:get_user(), u:get_host()) + ))) end end