Remove subject length limitation

Truncated with ... in message list, that don't break the formspec layout anymore
This commit is contained in:
Athozus 2023-06-18 16:45:52 +02:00
parent 8dadd8043c
commit bfd3692280
No known key found for this signature in database
GPG Key ID: B50895022E8484BF

10
api.lua
View File

@ -18,11 +18,6 @@ function mail.send(m)
-- defaults
m.subject = m.subject or "(No subject)"
-- limit subject line
if string.len(m.subject) > 30 then
m.subject = string.sub(m.subject,1,27) .. "..."
end
-- normalize to, cc and bcc while compiling a list of all recipients
local recipients = {}
local undeliverable = {}
@ -132,11 +127,6 @@ function mail.save_draft(m)
-- defaults
m.subject = m.subject or "(No subject)"
-- limit subject line
if string.len(m.subject) > 30 then
m.subject = string.sub(m.subject,1,27) .. "..."
end
minetest.log("verbose", f("[mail] %q saves draft with subject %q and body %q",
m.from, m.subject, m.body
))