diff --git a/mail.lua b/mail.lua index 6f630dd..69b0d20 100644 --- a/mail.lua +++ b/mail.lua @@ -125,7 +125,7 @@ end if not validate(dataBuf,from,to) then print("250 NOTOK") data = false else - name = os.time() .. "." .. _G["posix.unistd"].getpid() .. "." .. os.execute("hostname") + name = os.time() .. "." .. _G["posix.unistd"].getpid() .. "." .. io.popen("hostname"):read("line") ptf = dir .. "/tmp/" .. name out = io.open(ptf,"w") out:write("From " .. from .." ".. os.date("%a %b %d %H:%M:%S %Y") .. "\n")