commit ad59384cc58aec3c7095218a4406b614c4b637d3 (patch)
parent 60aaf372279a84148dbf9ee56b97c937ab718bb5
Author: Alex Karle <alex@karle.co>
Date: Thu, 16 Jan 2020 23:37:00 -0500
mutt: use new multipart-alternative feature
Previously, I had experimented with neomutt's support in this area,
creating a kinda-hacky macro to generate the multipart/alternative
container.
Mutt just landed in 1.13 (Nov 2019) with first-class support and an
example markdown2html filter, which is awesome!
This commit replaces my old hack with this new feature.
Diffstat:
2 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/mutt/header.html b/mutt/header.html
@@ -1,7 +0,0 @@
-<style>
-blockquote {
- margin-left: 0px; /* Override pandoc default of 40 */
- border-left: 2px solid gray;
- padding-left: 5px;
-}
-</style>
diff --git a/mutt/muttrc b/mutt/muttrc
@@ -37,9 +37,6 @@ set pager_index_lines=10
# Enables shelling out in macros without a pause
set wait_key=no
-# For pandoc, we need an extra line before the block quotes
-set attribution="On %d, %n wrote:\n"
-
################################################################################
# Bindings
# I've chosen to customize-as-I-go on these. Some general guiding rules:
@@ -78,4 +75,5 @@ bind editor <Tab> complete-query # Used for contact-completion
# Macros
macro index,pager ga "<pipe-message>abook --add-email-quiet<return>" "Add sender to abook contacts"
-macro compose K "|pandoc -s -H ~/.config/mutt/header.html -o /tmp/mutt-alt.html<enter><attach-file>/tmp/mutt-alt.html<enter><tag-entry><previous-entry><tag-entry>"
+set send_multipart_alternative=ask-no
+set send_multipart_alternative_filter=markdown2html