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

index c73d55429c0c97dd9ea31f5f234430ca4fecafce..23a0a59a00896a42acc4f4ceab8828728a2b59da 100644 (file)
@@ -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