mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
Is this function even doing anything? If so reject PR. I'm still trying to understand the code.
20 lines
428 B
Lua
20 lines
428 B
Lua
function dovecot_lua_notify_begin_txn(user)
|
|
return user
|
|
end
|
|
|
|
function dovecot_lua_notify_event_message_new(user, event)
|
|
local mbox = user:mailbox(event.mailbox)
|
|
mbox:sync()
|
|
|
|
if user.username ~= event.from_address then
|
|
-- Incoming message
|
|
-- Notify METADATA server about new message.
|
|
mbox:metadata_set("/private/messagenew", "")
|
|
end
|
|
|
|
mbox:free()
|
|
end
|
|
|
|
function dovecot_lua_notify_end_txn(ctx, success)
|
|
end
|