From: Aki Tuomi Date: Fri, 28 Sep 2018 10:30:51 +0000 (+0300) Subject: push-notification-driver-lua: Include date from MessageAppend X-Git-Tag: 2.3.9~1362 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6d0b683c587fd43b5b5094e93903eb5463c849a;p=thirdparty%2Fdovecot%2Fcore.git push-notification-driver-lua: Include date from MessageAppend --- diff --git a/src/plugins/push-notification/push-notification-driver-lua.c b/src/plugins/push-notification/push-notification-driver-lua.c index 515b31e427..6f01bf419b 100644 --- a/src/plugins/push-notification/push-notification-driver-lua.c +++ b/src/plugins/push-notification/push-notification-driver-lua.c @@ -296,6 +296,12 @@ push_notification_lua_push_messageappend(const struct push_notification_txn_even { struct push_notification_event_messageappend_data *data = event->data; + lua_pushnumber(script->L, data->date); + lua_setfield(script->L, -2, "date"); + + lua_pushnumber(script->L, data->date_tz); + lua_setfield(script->L, -2, "tz"); + lua_pushstring(script->L, data->from); lua_setfield(script->L, -2, "from");