]> git.phdru.name Git - dotfiles.git/commitdiff
.muttrc: Convert html attachment to/from UTF-8
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 051a41216ee77fe2a8e921942cf5711f582ced74..018fe3898bbbd0ef6662dd6abc6d728e592fb848 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"