Lua Event: After Message Deleted
This example logs some information when a message is deleted:
local logger = require("logger")
function inbucket.after.message_deleted(msg)
logger.warn(string.format("Deleted ID %s (subj %q)", msg.id, msg.subject),
{ mailbox = msg.mailbox })
end
Example output:
10:14AM WRN Deleted ID 7 (subj "Test from Gmail") mailbox=test module=lua