]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
push-notification-driver-lua: Add keywords and flags to MessageNew event
authorAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 7 Jan 2019 17:49:20 +0000 (19:49 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 11 Jan 2019 15:25:43 +0000 (17:25 +0200)
src/plugins/push-notification/push-notification-driver-lua.c

index b97c5888a649f9c912cd5bec039d3beaf50a41e3..c73d55429c0c97dd9ea31f5f234430ca4fecafce 100644 (file)
@@ -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 */