summaryrefslogtreecommitdiff
path: root/mu4e
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2019-04-13 12:36:39 +0300
committerGitHub <noreply@github.com>2019-04-13 12:36:39 +0300
commita90fe78f621ac9b06d4b03a4821584e7bd83a00e (patch)
tree2bc1160b44259962478572adc592cf8349d41108 /mu4e
parent195814d4546d1e9b71bcd85e22eed9422238a181 (diff)
parent03488223815c93da127a9fcba72105d683e30635 (diff)
Merge pull request #1386 from davidcsterratt/master
Issue #1385: get mu4e-action-view-in-browser to show headers
Diffstat (limited to 'mu4e')
-rw-r--r--mu4e/mu4e-actions.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/mu4e/mu4e-actions.el b/mu4e/mu4e-actions.el
index f78786c..c11c5ad 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 "<head><meta charset=\"UTF-8\"></head>\n")
+ (insert (concat "<p><strong>From</strong>: " (mu4e-html-construct-contacts-header msg :from) "</br>"))
+ (insert (concat "<strong>To</strong>: " (mu4e-html-construct-contacts-header msg :to) "</br>"))
+ (insert (concat "<strong>Date</strong>: " (format-time-string mu4e-view-date-format (mu4e-message-field msg :date)) "</br>"))
+ (insert (concat "<strong>Subject</strong>: " (mu4e-message-field msg :subject) "</p>"))
(insert (or html (concat "<pre>" txt "</pre>")))
(write-file tmpfile)
;; rewrite attachment urls