From 22fb5ee73c6742706eabeacea4f595135b20ae73 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 14 Aug 2013 23:07:35 +0000 Subject: [PATCH] Faxing if the from_address is null then use the email_address. --- resources/install/scripts/fax_retry.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/install/scripts/fax_retry.lua b/resources/install/scripts/fax_retry.lua index 8cd24008df..7f4eae0c1b 100644 --- a/resources/install/scripts/fax_retry.lua +++ b/resources/install/scripts/fax_retry.lua @@ -75,6 +75,9 @@ --email_address = api:execute("system", "/bin/echo -n "..email_address.." | /bin/sed -e s/\,/\\\\,/g"); email_address = email_address:gsub(",", "\\,"); from_address = env:getHeader("mailfrom_address"); + if (from_address == null) then + from_address = email_address; + end --needs to be fixed on lesser operating systems that do not have GNU utils. number_dialed = api:execute("system", "/bin/echo -n "..fax_uri.." | sed -e s,.*/,,g"); --do not use apostrophies in message, they are not excaped and the mail will fail.