map legacy "dst" field to "to"

fixes https://github.com/pandorabox-io/pandorabox.io/issues/542
This commit is contained in:
BuckarooBanzay 2020-09-19 13:22:33 +02:00
parent 35d29789ca
commit 64262c95a6

View File

@ -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