search for: metadata_get

Displaying 5 results from an estimated 5 matches for "metadata_get".

2020 Aug 03
2
How to access mailbox metadata in Lua push driver
We're currently using the OX push driver, which is straight forward (simple web hook) and allows to store (multiple) push tokens of our webmailer direct in mailbox metadata. Only drawback is that it only supports new arriving mails in the INBOX, even mails moved via Sieve to other folders are NOT reported. Therefore we updated now to Dovecot 2.3(.10.1) to also get mails moved by user or
2020 Aug 03
2
How to access mailbox metadata in Lua push driver
...bH [www.egroupware.org] >> Handelsregister HRB Kaiserslautern 3587 >> Gesch?ftsf?hrer Birgit und Ralf Becker >> Leibnizstr. 17, 67663 Kaiserslautern, Germany >> Telefon +49 631 31657-0 > Actually it does exist: > > https://doc.dovecot.org/admin_manual/lua/#mail_user.metadata_get > > or > > https://doc.dovecot.org/admin_manual/lua/#object-mailbox > > mailbox:metadata_get() > > You get both of these objects from the push notification data, you just have to keep them in the context state. (See the example scripts) > > function dovecot_lua_notify_...
2020 Aug 03
0
How to access mailbox metadata in Lua push driver
...alf Becker > EGroupware GmbH [www.egroupware.org] > Handelsregister HRB Kaiserslautern 3587 > Gesch?ftsf?hrer Birgit und Ralf Becker > Leibnizstr. 17, 67663 Kaiserslautern, Germany > Telefon +49 631 31657-0 Actually it does exist: https://doc.dovecot.org/admin_manual/lua/#mail_user.metadata_get or https://doc.dovecot.org/admin_manual/lua/#object-mailbox mailbox:metadata_get() You get both of these objects from the push notification data, you just have to keep them in the context state. (See the example scripts) function dovecot_lua_notify_begin_txn(user) local meta = user:metadata...
2020 Aug 03
0
How to access mailbox metadata in Lua push driver
...>> Handelsregister HRB Kaiserslautern 3587 >>> Gesch?ftsf?hrer Birgit und Ralf Becker >>> Leibnizstr. 17, 67663 Kaiserslautern, Germany >>> Telefon +49 631 31657-0 >> Actually it does exist: >> >> https://doc.dovecot.org/admin_manual/lua/#mail_user.metadata_get >> >> or >> >> https://doc.dovecot.org/admin_manual/lua/#object-mailbox >> >> mailbox:metadata_get() >> >> You get both of these objects from the push notification data, you just have to keep them in the context state. (See the example scripts) >&g...
2020 Aug 03
3
How to access mailbox metadata in Lua push driver
...ttp = require "socket.http" local ltn12 = require "ltn12" -- luarocks install json-lua local json = require "JSON" function table_get(t, k, d) return t[k] or d end function script_init() return 0 end function dovecot_lua_notify_begin_txn(user) local meta = user:metadata_get("/private/vendor/vendor.dovecot/http-notify") return {user=user, event=dovecot.event(), ep=user:plugin_getenv("push_lua_url"), messages={}, meta=meta} end function dovecot_lua_notify_event_message_new(ctx, event) -- check if there is a push token registered if (ctx.meta...