Remove subject length limitation
Truncated with ... in message list, that don't break the formspec layout anymore
This commit is contained in:
parent
8dadd8043c
commit
bfd3692280
10
api.lua
10
api.lua
@ -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
|
||||
))
|
||||
|
Loading…
Reference in New Issue
Block a user