{"id":12680,"date":"2024-12-29T11:01:57","date_gmt":"2024-12-29T16:01:57","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=12680"},"modified":"2024-12-29T11:01:57","modified_gmt":"2024-12-29T16:01:57","slug":"switching-bewteen-html-and-text-in-mu4e","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=12680","title":{"rendered":"Switching Bewteen HTML and Text In Mu4e"},"content":{"rendered":"<p>\nAnyone who&rsquo;s been reading Irreal for a while knows that I&rsquo;m a huge fan of <a href=\"https:\/\/github.com\/emacsmirror\/mu4e\">Mu\/Mu4e<\/a> for dealing with my email. It has just the right features for my preferred workflow. That includes it&rsquo;s robust search capabilities that allow me to store all my emails in a single repository and find them easily. That saves me a lot of time and mental cycles trying to decide where to store saved emails: they all go to the same place.\n<\/p>\n<p>\nAnother thing I like about mu4e is that it&rsquo;s text based. Who, after all, wants their emails running arbitrary Javascript? Most people apparently. The majority of the email I get that&rsquo;s not from fellow nerds is HTML based and often includes some sort of Javascript. I hate this but I deal with it very successfully by using the built-in <code>view-in-xwidget<\/code> command so that I can read HTML emails as they were composed (complete with the Javascript).\n<\/p>\n<p>\n<a href=\"https:\/\/www.topbug.net\/blog\/2024\/12\/28\/quickly-switch-between-html-and-plain-text-in-mu4e\/\">Hong Xu has a nice post<\/a> that shows us how to move in the other direction. Mu4e will try\u2014with various degrees of success\u2014to display HTML by default but it doesn&rsquo;t use XWidgets and the results are often less than optimal. Xu&rsquo;s post describes how to make mu4e switch between HTML and plain text display for those occasions when the HTML display is distracting.\n<\/p>\n<p>\nThe change is simply the setting of a keymap entry for the <code>mu4e-view-mode-map<\/code> so it&rsquo;s easy to add to your configuration without a lot of bother. Xu&rsquo;s change along with compiling in the XWidget support gives you fine control over the way an email is displayed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Anyone who&rsquo;s been reading Irreal for a while knows that I&rsquo;m a huge fan of Mu\/Mu4e for dealing with my email. It has just the right features for my preferred workflow. That includes it&rsquo;s robust search capabilities that allow me &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=12680\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18],"class_list":["post-12680","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/12680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12680"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/12680\/revisions"}],"predecessor-version":[{"id":12681,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/12680\/revisions\/12681"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}