]> git.phdru.name Git - dotfiles.git/blobdiff - .muttrc
.muttrc: Convert html attachment to/from UTF-8
[dotfiles.git] / .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"