webmcp

diff framework/env/net/send_mail.lua @ 64:3d43a5cf17c1

Compatibility with Lua 5.2
author jbe
date Sun Apr 15 16:04:33 2012 +0200 (2012-04-15)
parents 4f9f7fef80ee
children a54cc7dcabf1
line diff
     1.1 --- a/framework/env/net/send_mail.lua	Tue Apr 03 00:56:02 2012 +0200
     1.2 +++ b/framework/env/net/send_mail.lua	Sun Apr 15 16:04:33 2012 +0200
     1.3 @@ -46,7 +46,7 @@
     1.4      command[#command+1] = "-f"
     1.5      command[#command+1] = envelope_from
     1.6    end
     1.7 -  local stdout, errmsg, status = os.pfilter(mail, unpack(command))
     1.8 +  local stdout, errmsg, status = os.pfilter(mail, table.unpack(command))
     1.9    if not status then
    1.10      error("Error while calling sendmail: " .. errmsg)
    1.11    end

Impressum / About Us