浏览代码

Do not print field keys

They are already contained within the fetched string.
Alois Mahdal 9 年前
父节点
当前提交
08d261e9bc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      dotfiles/imapfilter/common/functions.lua

+ 1
- 1
dotfiles/imapfilter/common/functions.lua 查看文件

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