aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-15 15:35:50 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-15 15:35:50 +0000
commit5301926307c441c811167f21614b2b42075b0c65 (patch)
treeb9d300ada1d69d9c84712c9bddd1659a8390457c /src
parent84d1cad3cd3d36684d83c0fc0193b220015182e0 (diff)
downloadrspamd-5301926307c441c811167f21614b2b42075b0c65.tar.gz
rspamd-5301926307c441c811167f21614b2b42075b0c65.zip
[Minor] Save extra fields in history
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/history_redis.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/lua/history_redis.lua b/src/plugins/lua/history_redis.lua
index c656215d0..eaa087490 100644
--- a/src/plugins/lua/history_redis.lua
+++ b/src/plugins/lua/history_redis.lua
@@ -67,6 +67,9 @@ local function normalise_results(tbl, task)
tbl.unix_time = seconds
tbl.subject = task:get_header('subject') or 'unknown'
+ tbl.size = task:get_size()
+ tbl.ip = tostring(task:get_from_ip() or 'unknown')
+ tbl.user = task:get_user() or 'unknown'
end
local function history_save(task)