diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-15 09:21:03 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-15 09:21:03 +0100 |
commit | 9aad3e020ba34916fd680fc157923d5d6906e1a2 (patch) | |
tree | 6a8a245d7be35a2c0dff1d689c78decb3fbf96b6 /src/lua/lua_task.c | |
parent | 5a70a9191f3d0901f03372fabec66634618c91a4 (diff) | |
download | rspamd-9aad3e020ba34916fd680fc157923d5d6906e1a2.tar.gz rspamd-9aad3e020ba34916fd680fc157923d5d6906e1a2.zip |
[Feature] Parse received timestamp
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r-- | src/lua/lua_task.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index bc31640fa..38402039b 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1478,6 +1478,11 @@ lua_task_get_received_headers (lua_State * L) } lua_pushstring (L, proto); lua_settable (L, -3); + + lua_pushstring (L, "timestamp"); + lua_pushnumber (L, rh->timestamp); + lua_settable (L, -3); + rspamd_lua_table_set (L, "by_hostname", rh->by_hostname); lua_rawseti (L, -2, k ++); } |