Displaying 8 results from an estimated 8 matches for "push_lua_url".
2020 Aug 03
3
How to access mailbox metadata in Lua push driver
...to send a JSON encoded message
> (probably easy to figure out looking at Lua docu)
these two I managed to solve im my current version of the script, which
also support now all message event types:
-- To use -- -- plugin { -- push_notification_driver =
lua:file=/etc/dovecot/dovecot-push.lua -- push_lua_url =
http://push.notification.server/handler -- } -- -- server is sent a PUT
message with JSON body like push_notification_driver =
ox:url=<push_lua_url> user_from_metadata -- local http = require "socket.http" local ltn12 = require "ltn12" -- luarocks install json-lua local...
2020 Aug 03
2
How to access mailbox metadata in Lua push driver
...f 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_get("/private/key")
> return {messages={}, ep=user:plugin_getenv("push_lua_url"), username=user.username, meta=meta}
> end
>
> Aki
--
Ralf 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
-------------- next part ---...
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
0
How to access mailbox metadata in Lua push driver
...t()
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_get("/private/key")
return {messages={}, ep=user:plugin_getenv("push_lua_url"), username=user.username, meta=meta}
end
Aki
2020 Oct 15
2
lib22_push_notification_lua_plugin.so: undefined symbol: dlua_dovecot_register
...se = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
auto = no
special_use = \Trash
}
prefix =
}
passdb {
driver = pam
}
passdb {
args = /etc/dovecot/dovecot-oauth2.plain.conf.ext
driver = oauth2
mechanisms = plain login
}
plugin {
push_lua_url = http://localhost:5678/mailnotify
push_notification_driver = lua:file=/notify.lua
quota = maildir:User quota
quota_rule = *:storage=5MB
quota_status_nouser = DUNNO
quota_status_overquota = 552 5.2.2 Mailbox is full
quota_status_success = DUNNO
}
protocols = imap lmtp
service doveadm {...
2020 Aug 03
0
How to access mailbox metadata in Lua push driver
...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_get("/private/key")
>> return {messages={}, ep=user:plugin_getenv("push_lua_url"), username=user.username, meta=meta}
>> end
>>
>> Aki
--
Ralf 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
-------------- n...
2022 May 10
5
Dovecot v2.3.19 released
Hi all!
We are pleased to release v2.3.19 of Dovecot.
The docker images have been upgraded to use bullseye as base image.
https://dovecot.org/releases/2.3/dovecot-2.3.19.tar.gz
https://dovecot.org/releases/2.3/dovecot-2.3.19.tar.gz.sig
Binary packages in https://repo.dovecot.org/
Docker images in https://hub.docker.com/r/dovecot/dovecot
Regards,
Aki Tuomi
Open-Xchange oy
--
+ Added
2022 May 10
5
Dovecot v2.3.19 released
Hi all!
We are pleased to release v2.3.19 of Dovecot.
The docker images have been upgraded to use bullseye as base image.
https://dovecot.org/releases/2.3/dovecot-2.3.19.tar.gz
https://dovecot.org/releases/2.3/dovecot-2.3.19.tar.gz.sig
Binary packages in https://repo.dovecot.org/
Docker images in https://hub.docker.com/r/dovecot/dovecot
Regards,
Aki Tuomi
Open-Xchange oy
--
+ Added