mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 17:47:03 +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)
|
function inbucket.after.message_stored(msg)
|
||||||
local content = string.format("%q,%q", msg.from, msg.subject)
|
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 fnam = os.tmpname()
|
||||||
local f = assert(io.open(fnam, "w+"))
|
local f = assert(io.open(fnam, "w+"))
|
||||||
assert(f:write(content))
|
assert(f:write(content))
|
||||||
|
|||||||
Reference in New Issue
Block a user