mail/webmail/handler_mark_unread.lua
2020-04-23 10:00:28 +02:00

10 lines
231 B
Lua

-- mark mail as unread
function mail.handlers.mark_unread(playername, index)
local messages = mail.getMessages(playername)
if messages[index] then
messages[index].unread = true
end
mail.setMessages(playername, messages)
end