mirror of
https://github.com/mt-mods/mail.git
synced 2025-03-20 16:41:25 +00:00
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
1 changed files with 0 additions and 10 deletions
10
api.lua
10
api.lua
|
@ -18,11 +18,6 @@ function mail.send(m)
|
||||||
-- defaults
|
-- defaults
|
||||||
m.subject = m.subject or "(No subject)"
|
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
|
-- normalize to, cc and bcc while compiling a list of all recipients
|
||||||
local recipients = {}
|
local recipients = {}
|
||||||
local undeliverable = {}
|
local undeliverable = {}
|
||||||
|
@ -132,11 +127,6 @@ function mail.save_draft(m)
|
||||||
-- defaults
|
-- defaults
|
||||||
m.subject = m.subject or "(No subject)"
|
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",
|
minetest.log("verbose", f("[mail] %q saves draft with subject %q and body %q",
|
||||||
m.from, m.subject, m.body
|
m.from, m.subject, m.body
|
||||||
))
|
))
|
||||||
|
|
Loading…
Add table
Reference in a new issue