]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Clickhouse: Use original smtp from
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 30 Mar 2021 14:57:04 +0000 (15:57 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 30 Mar 2021 14:57:04 +0000 (15:57 +0100)
src/plugins/lua/clickhouse.lua

index 7ef093cc22833faf15dee80f995094a9b81e97e8..130ee9d1e8bd296aa25856fc23c98986e8d9a275 100644 (file)
@@ -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()