From: Aki Tuomi Date: Mon, 7 Jan 2019 18:01:21 +0000 (+0200) Subject: push-notification-driver-lua: Add keywords and flags to MessageAppend event X-Git-Tag: 2.3.9~943 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=402d13448b79f0b2808e10469eb800bab84b95eb;p=thirdparty%2Fdovecot%2Fcore.git push-notification-driver-lua: Add keywords and flags to MessageAppend event --- diff --git a/src/plugins/push-notification/push-notification-driver-lua.c b/src/plugins/push-notification/push-notification-driver-lua.c index c73d55429c..23a0a59a00 100644 --- a/src/plugins/push-notification/push-notification-driver-lua.c +++ b/src/plugins/push-notification/push-notification-driver-lua.c @@ -361,6 +361,12 @@ push_notification_lua_push_messageappend(const struct push_notification_txn_even 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"); } static void