我正在尝试使用mu4e时使用org-capture模板创建模板.在mu4e:view模式下查看消息时,我可以通过按键调用org-capture-templates,然后在文件中添加提醒,并在其中添加指向消息的链接.像这样的东西:
* NEXT Respond to Person A on Message Subject
SCHEDULED: <2013-06-22 Sat>
[2013-06-22 Sat 22:05]
Email subject linked to mu4e message
Run Code Online (Sandbox Code Playgroud)
这是我的.emacs中的模板:
(setq org-capture-templates
(quote (("r" "respond" entry (file "~/refile.org")
"* NEXT Respond to %:from on %:subject\nSCHEDULED: %t\n%U\n%a\n\n"
:clock-in t :clock-resume t :immediate-finish t))))
Run Code Online (Sandbox Code Playgroud)
但是orgmode官方手册第9.1.3.2节中的变量未在mu4e中设置.我的猜测是它应该在org-mu4e.el中的以下函数中设置.请参阅我添加的评论标记的3行,但这并不能解决问题.链接(%a)被初始化,但不是:to,:from和:subject.
如果我调试,我可以看到对org-store-link-props的函数调用如下所示:
org-store-link-props(:type "mu4e" :from (("Person Name" . "person@email.whatever"))
:to (("Me Surname" . "me@here.com")) :subject "Re: Subject of Email"
:message-id "message-id")
Run Code Online (Sandbox Code Playgroud)
但是,模板评估为:
* NEXT Respond to %:from on %:subject
SCHEDULED: <2013-06-23 Sun>
[2013-06-23 Sun 21:08] …Run Code Online (Sandbox Code Playgroud)