As a follow-up to this question about exporting as PDF, I want to export a message as a PDF. One answer in that thread views the message in a browser window and I can then save as a PDF from the browser:
(add-to-list 'mu4e-view-actions '("ViewInBrowser" . mu4e-action-view-in-browser) t)
The other is similar but does the work behind the scenes with WebKit HTML to PDF. Here is one example of the output of the latter command:
Both miss the header fields, such as sender, date, and subject, and the message starts immediately at the body.
How can I include message headers when exporting to PDF?