X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mutt.git;a=blobdiff_plain;f=mailcap-epiphany;fp=mailcap-epiphany;h=11c4c9aaf9f714d2ed7037c69bcd6526a5b19e6a;hp=0000000000000000000000000000000000000000;hb=751d8cb3514cdb60663e2e4ede99dd767c138396;hpb=4f9065d9e6b7cdcdbf8836c31a32ca29bedf0491 diff --git a/mailcap-epiphany b/mailcap-epiphany new file mode 100644 index 0000000..11c4c9a --- /dev/null +++ b/mailcap-epiphany @@ -0,0 +1,9 @@ +# We avoid using "nametemplate" because it uses a predictable filename +# under /tmp. The "needsterminal" forces mutt to wait until you press +# Return before it deletes the file; otherwise, Epiphany will notice +# that it's gone and show you nothing. Finally, the call to "tidy" +# ensures that Epiphany will not balk at the invalid HTML prevalent in +# emails. We ignore errors in "tidy" because we expect a bunch of HTML +# warnings to remain. The weird subshell construct is there because I +# don't know how to escape a semicolon. +text/html; (tidy -quiet -modify %s || true) && /usr/bin/epiphany %s; description=HTML Text; test=test -n "$DISPLAY"; needsterminal;