aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/history_redis.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lua/history_redis.lua')
-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 18cc9b5d6..9f7046ca0 100644
--- a/src/plugins/lua/history_redis.lua
+++ b/src/plugins/lua/history_redis.lua
@@ -63,6 +63,9 @@ local function normalise_results(tbl, task)
tbl.messages = nil
tbl.urls = nil
+ local seconds = task:get_timeval()['tv_sec']
+ tbl.unix_time = seconds
+
tbl.subject = task:get_header('subject') or 'unknown'
end