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:
Sandra Snan
2025-05-25 20:19:30 +02:00
committed by l
parent 6cede707ac
commit e0140bbad5

View File

@@ -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()