|
|
|
|
14
|
function _notifirc1(subj, from, body)
|
14
|
function _notifirc1(subj, from, body)
|
15
|
--notify about message using (pre-configured) notifirc
|
15
|
--notify about message using (pre-configured) notifirc
|
16
|
local fd = assert(io.popen('notifirc -f - "message preview:"', "w"))
|
16
|
local fd = assert(io.popen('notifirc -f - "message preview:"', "w"))
|
17
|
- local fmt = "> Subject: %s\n> From: %s\n> Body: %s"
|
|
|
|
|
17
|
+ local fmt = "> %s\n> %s\n> BODY: %s"
|
18
|
fd:write(fmt:format(subj, from, body))
|
18
|
fd:write(fmt:format(subj, from, body))
|
19
|
fd:close()
|
19
|
fd:close()
|
20
|
end
|
20
|
end
|