mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 09:37:02 +00:00
Updated Lua Examples (markdown)
@@ -49,7 +49,7 @@ Writes data to temporary file and runs external shell command:
|
||||
function inbucket.after.message_stored(msg)
|
||||
local content = string.format("%q,%q", msg.from, msg.subject)
|
||||
|
||||
-- Write POST data to temporary file.
|
||||
-- Write content to temporary file.
|
||||
local fnam = os.tmpname()
|
||||
local f = assert(io.open(fnam, "w+"))
|
||||
assert(f:write(content))
|
||||
|
||||
Reference in New Issue
Block a user