{"id":261,"date":"2004-09-20T00:00:00","date_gmt":"2004-09-20T00:00:00","guid":{"rendered":"http:\/\/adam.rosi-kessel.org\/weblog\/free_software\/code\/reading_html_mail_in_mutt.html"},"modified":"-0001-11-30T00:00:00","modified_gmt":"1970-01-01T05:00:00","slug":"reading_html_mail_in_mutt","status":"publish","type":"post","link":"https:\/\/adam.rosi-kessel.org\/weblog\/2004\/09\/20\/reading_html_mail_in_mutt","title":{"rendered":"Reading Annoying HTML Mail in Mutt"},"content":{"rendered":"<p> I&#8217;ve tried several solutions for reading broken HTML mail in <a href=\"http:\/\/www.mutt.org\">mutt<\/a>, including my own custom Python hack, <a href=\"http:\/\/adam.rosi-kessel.org\/weblog\/free_software\/code\/addMIMETextToHTMLEmailcode.html\">addMIMETextToHTMLEmail<\/a> (this was actually the first Python program I ever wrote). Reasonably nice mail clients will send a plaintext part in addition to the HTML mail for us textophilic email users, but the dominant <a href=\"http:\/\/adam.rosi-kessel.org\/weblog\/the_web\/hotmail_sucks.html\">Microsoft Hotmail<\/a> and Microsoft Exchange send HTML-only mail with no plaintext part. I wonder if they do this because they expect anybody worth writing to these days is using Microsoft Outlook or Microsoft Hotmail. <\/p>\n<p> I think I&#8217;ve recently discovered the best solution, since my addMIMETextToHTMLEmail script doesn&#8217;t always work properly and is probably unnecessarily complex: <\/p>\n<ul>\n<li>Download and install <a href=\"http:\/\/www.fourmilab.ch\/webtools\/demoroniser\">demoroniser<\/a>. You may need to tweak it slightly, since it expects perl to be in \/bin\/perl.<\/li>\n<li>Install html2text (<a href=\"http:\/\/packages.debian.org\/html2text\">Debian package<\/a>, separate source available from <a href=\"http:\/\/userpage.fu-berlin.de\/~mbayer\/tools\/\">Martin Bayer).<\/a><\/li>\n<li>Add to ~\/.mailcap (this all needs to go on one line):<br \/>\n<blockquote>\n<pre> text\/html; \/home\/adam\/bin\/demoroniser.pl -q -w0 '%s' | \/usr\/bin\/html2text -width 90 -style pretty; copiousoutput; description=HTML Text <\/pre>\n<\/blockquote>\n<p> You may prefer a wider output; the person who suggested this to me uses 158. <\/li>\n<li>Edit ~\/.muttrc and add:<br \/>\n<blockquote>\n<pre> set implicit_autoview=yes <\/pre>\n<\/blockquote>\n<\/li>\n<li>You should now be able to view HTML-only emails in mutt without having any extra steps.<\/li>\n<\/ul>\n<p> I&#8217;m considering packaging demoroniser for Debian, although it may fall below people&#8217;s &#8216;this script is too small to be its own package&#8217; threshold. <\/p>\n<p> Thanks to Alec Thomas, author of <a href=\"http:\/\/freshmeat.net\/projects\/xchg2mail\/\">xchg2mail<\/a> (which I&#8217;m also planning on packaging for Debian), for the tip. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve tried several solutions for reading broken HTML mail in mutt, including my own custom Python hack, addMIMETextToHTMLEmail (this was actually the first Python program I ever wrote). Reasonably nice mail clients will send a plaintext part in addition to the HTML mail for us textophilic email users, but the dominant Microsoft Hotmail and Microsoft [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/posts\/261"}],"collection":[{"href":"https:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/comments?post=261"}],"version-history":[{"count":0,"href":"https:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/posts\/261\/revisions"}],"wp:attachment":[{"href":"https:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/media?parent=261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/categories?post=261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adam.rosi-kessel.org\/weblog\/wp-json\/wp\/v2\/tags?post=261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}