From: Vsevolod Stakhov Date: Wed, 15 Mar 2017 15:35:50 +0000 (+0000) Subject: [Minor] Save extra fields in history X-Git-Tag: 1.5.3~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5301926307c441c811167f21614b2b42075b0c65;p=rspamd.git [Minor] Save extra fields in history --- 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)