]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
push-notification-driver-lua: Include date from MessageAppend
authorAki Tuomi <aki.tuomi@dovecot.fi>
Fri, 28 Sep 2018 10:30:51 +0000 (13:30 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Wed, 14 Nov 2018 12:01:53 +0000 (14:01 +0200)
src/plugins/push-notification/push-notification-driver-lua.c

index 515b31e4278e9412e1c6815d270cd649f905b2b8..6f01bf419b2de85aa682be036bbc8bf2b96175f5 100644 (file)
@@ -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");