Upload files to "/"
This commit is contained in:
parent
50aaeca4af
commit
ee577ff7be
1 changed files with 1 additions and 1 deletions
2
mail.lua
2
mail.lua
|
@ -125,7 +125,7 @@ end
|
||||||
if not validate(dataBuf,from,to) then print("250 NOTOK")
|
if not validate(dataBuf,from,to) then print("250 NOTOK")
|
||||||
data = false else
|
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
|
ptf = dir .. "/tmp/" .. name
|
||||||
out = io.open(ptf,"w")
|
out = io.open(ptf,"w")
|
||||||
out:write("From " .. from .." ".. os.date("%a %b %d %H:%M:%S %Y") .. "\n")
|
out:write("From " .. from .." ".. os.date("%a %b %d %H:%M:%S %Y") .. "\n")
|
||||||
|
|
Loading…
Reference in a new issue