commit 5c25ee1: [Minor] Clickhouse: Use original smtp from

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Mar 30 15:21:05 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-03-30 15:57:04 +0100
URL: https://github.com/rspamd/rspamd/commit/5c25ee1ccb70479b63e24b90d2baf4573ed19951 (HEAD -> master)

[Minor] Clickhouse: Use original smtp from

---
 src/plugins/lua/clickhouse.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua
index 7ef093cc2..130ee9d1e 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()


More information about the Commits mailing list