.muttrc: Convert html attachment to/from UTF-8 master
authorOleg Broytman <phd@phdru.name>
Fri, 3 Jul 2020 11:52:15 +0000 (14:52 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 3 Jul 2020 11:52:15 +0000 (14:52 +0300)
Undo conversion made by `mutt`.

.muttrc

diff --git a/.muttrc b/.muttrc
index 051a412..018fe38 100644 (file)
--- a/.muttrc
+++ b/.muttrc
@@ -362,6 +362,10 @@ macro pager,attach M \
    <exit><Home><change-folder>=sent-mail<Enter> \
    "Go to sent-mail"
 
+macro attach 8 "<pipe-message>iconv.py -t utf-8 | webstdin<Enter>" \
+   "View html attachment in a web browser (convert back to utf-8)"
+macro attach U "<pipe-message>iconv.py -f utf-8 | webstdin<Enter>" \
+   "View html attachment in a web browser (convert from utf-8)"
 macro attach V "<pipe-message>webstdin<Enter>" \
    "View html attachment in a web browser"