From: Vsevolod Stakhov Date: Tue, 30 Mar 2021 14:57:04 +0000 (+0100) Subject: [Minor] Clickhouse: Use original smtp from X-Git-Tag: 3.0~542 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c25ee1ccb70479b63e24b90d2baf4573ed19951;p=thirdparty%2Frspamd.git [Minor] Clickhouse: Use original smtp from --- diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua index 7ef093cc22..130ee9d1e8 100644 --- a/src/plugins/lua/clickhouse.lua +++ b/src/plugins/lua/clickhouse.lua @@ -490,7 +490,7 @@ local function clickhouse_collect(task) local from_domain = '' local from_user = '' if task:has_from('smtp') then - local from = task:get_from('smtp')[1] + local from = task:get_from({'smtp','orig'})[1] if from then from_domain = from['domain']:lower()