mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
Remove contains from lua
Is this function even doing anything? If so reject PR. I'm still trying to understand the code.
This commit is contained in:
@@ -2,15 +2,6 @@ function dovecot_lua_notify_begin_txn(user)
|
||||
return user
|
||||
end
|
||||
|
||||
function contains(v, needle)
|
||||
for _, keyword in ipairs(v) do
|
||||
if keyword == needle then
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
function dovecot_lua_notify_event_message_new(user, event)
|
||||
local mbox = user:mailbox(event.mailbox)
|
||||
mbox:sync()
|
||||
|
||||
Reference in New Issue
Block a user