mirror of
https://github.com/mt-mods/mail.git
synced 2025-03-15 06:01:25 +00:00
map legacy "dst" field to "to"
fixes https://github.com/pandorabox-io/pandorabox.io/issues/542
This commit is contained in:
parent
35d29789ca
commit
64262c95a6
1 changed files with 5 additions and 0 deletions
5
api.lua
5
api.lua
|
@ -28,6 +28,11 @@ function mail.send(src, dst, subject, body)
|
|||
m.body = body
|
||||
end
|
||||
|
||||
if m.dst and not m.to then
|
||||
-- populate "to" field
|
||||
m.to = m.dst
|
||||
end
|
||||
|
||||
local cc
|
||||
local bcc
|
||||
local extra
|
||||
|
|
Loading…
Add table
Reference in a new issue