From da1cb4e97b6e09fa1565ea9b5d522b1037bdb83a Mon Sep 17 00:00:00 2001 From: djcb Date: Mon, 15 Apr 2019 07:19:44 +0300 Subject: [PATCH] mu4e-actions: fix mu4e~write-body-to-html Use mu4e~view-construct-contacts-header instead of a non-existing function. --- mu4e/mu4e-actions.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mu4e/mu4e-actions.el b/mu4e/mu4e-actions.el index c11c5ad3..8e682528 100644 --- a/mu4e/mu4e-actions.el +++ b/mu4e/mu4e-actions.el @@ -85,9 +85,12 @@ return the filename." (mu4e-error "No body part for this message")) (with-temp-buffer (insert "\n") - (insert (concat "

From: " (mu4e-html-construct-contacts-header msg :from) "
")) - (insert (concat "To: " (mu4e-html-construct-contacts-header msg :to) "
")) - (insert (concat "Date: " (format-time-string mu4e-view-date-format (mu4e-message-field msg :date)) "
")) + (insert (concat "

From: " + (mu4e~view-construct-contacts-header msg :from) "
")) + (insert (concat "To: " + (mu4e~view-construct-contacts-header msg :to) "
")) + (insert (concat "Date: " + (format-time-string mu4e-view-date-format (mu4e-message-field msg :date)) "
")) (insert (concat "Subject: " (mu4e-message-field msg :subject) "

")) (insert (or html (concat "
" txt "
"))) (write-file tmpfile)