Update fax_retry.lua
This commit is contained in:
parent
d60c7a25af
commit
baea8db575
|
|
@ -16,7 +16,7 @@
|
||||||
--
|
--
|
||||||
-- The Initial Developer of the Original Code is
|
-- The Initial Developer of the Original Code is
|
||||||
-- Mark J Crane <markjcrane@fusionpbx.com>
|
-- Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
-- Copyright (C) 2010 - 2015
|
-- Copyright (C) 2010 - 2019
|
||||||
-- the Initial Developer. All Rights Reserved.
|
-- the Initial Developer. All Rights Reserved.
|
||||||
--
|
--
|
||||||
-- Contributor(s):
|
-- Contributor(s):
|
||||||
|
|
@ -293,10 +293,11 @@
|
||||||
--for email
|
--for email
|
||||||
email_address = env:getHeader("mailto_address");
|
email_address = env:getHeader("mailto_address");
|
||||||
--email_address = api:execute("system", "/bin/echo -n "..email_address.." | /bin/sed -e s/\,/\\\\,/g");
|
--email_address = api:execute("system", "/bin/echo -n "..email_address.." | /bin/sed -e s/\,/\\\\,/g");
|
||||||
if (not email_address) then
|
if (email_address == nil) then
|
||||||
email_address = '';
|
email_address = '';
|
||||||
|
else
|
||||||
|
email_address = email_address:gsub(",", "\\,");
|
||||||
end
|
end
|
||||||
email_address = email_address:gsub(",", "\\,");
|
|
||||||
from_address = env:getHeader("mailfrom_address");
|
from_address = env:getHeader("mailfrom_address");
|
||||||
if (from_address == nil) then
|
if (from_address == nil) then
|
||||||
from_address = email_address;
|
from_address = email_address;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue