From 03488223815c93da127a9fcba72105d683e30635 Mon Sep 17 00:00:00 2001 From: David C Sterratt Date: Wed, 20 Feb 2019 18:17:53 +0000 Subject: [PATCH] Issue #1385: get mu4e-action-view-in-browser to show headers Here is a very simple patch that achieves what I want, though I am sure there are nicer ways of doing it. --- mu4e/mu4e-actions.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mu4e/mu4e-actions.el b/mu4e/mu4e-actions.el index f78786cc..c11c5ad3 100644 --- a/mu4e/mu4e-actions.el +++ b/mu4e/mu4e-actions.el @@ -85,6 +85,10 @@ 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 "Subject: " (mu4e-message-field msg :subject) "

")) (insert (or html (concat "
" txt "
"))) (write-file tmpfile) ;; rewrite attachment urls