From: Aki Tuomi Date: Mon, 7 Jan 2019 17:49:20 +0000 (+0200) Subject: push-notification-driver-lua: Add keywords and flags to MessageNew event X-Git-Tag: 2.3.9~944 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c84562bbeec39421fa680d20f69bc3c9a06dfdd9;p=thirdparty%2Fdovecot%2Fcore.git push-notification-driver-lua: Add keywords and flags to MessageNew event --- diff --git a/src/plugins/push-notification/push-notification-driver-lua.c b/src/plugins/push-notification/push-notification-driver-lua.c index b97c5888a6..c73d55429c 100644 --- a/src/plugins/push-notification/push-notification-driver-lua.c +++ b/src/plugins/push-notification/push-notification-driver-lua.c @@ -386,6 +386,12 @@ push_notification_lua_push_messagenew(const struct push_notification_txn_event * lua_pushstring(script->L, data->snippet); lua_setfield(script->L, -2, "snippet"); + + dlua_pushflags(script, data->flags); + lua_setfield(script->L, -2, "flags"); + + dlua_pushkeywords(script, data->keywords, str_array_length(data->keywords)); + lua_setfield(script->L, -2, "keywords"); } /* events that need special treatment */