1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00

Updated Lua Examples (markdown)

James Hillyerd
2023-02-28 13:29:42 -08:00
parent 71c598c2cc
commit 9d6cd87df0

@@ -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))