]> git.phdru.name Git - dotfiles.git/commitdiff
.muttrc: Fix viewing html attachment
authorOleg Broytman <phd@phdru.name>
Sun, 12 Jul 2020 23:04:57 +0000 (02:04 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 12 Jul 2020 23:04:57 +0000 (02:04 +0300)
View html attachment saving it in a file instead of piping.

.muttrc

diff --git a/.muttrc b/.muttrc
index 018fe3898bbbd0ef6662dd6abc6d728e592fb848..ca6edf2093e9797131c2d5fd250628e001f0ff7d 100644 (file)
--- a/.muttrc
+++ b/.muttrc
@@ -362,11 +362,7 @@ 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>" \
+macro attach V "<save-entry>_xxxxxx.html<Enter><shell-escape>webbrowser -n _xxxxxx.html; exxec rm _xxxxxx.html<Enter>" \
    "View html attachment in a web browser"
 
 # Go to python mailbox