<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>No Znx! &#187; mail</title>
	<atom:link href="http://znx.no/tag/mail/feed/" rel="self" type="application/rss+xml" />
	<link>http://znx.no</link>
	<description>the pigeons!!!!</description>
	<lastBuildDate>Tue, 20 Dec 2011 22:42:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>HTML E-mails And Mutt</title>
		<link>http://znx.no/2009/06/html-e-mails-and-mutt/</link>
		<comments>http://znx.no/2009/06/html-e-mails-and-mutt/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 23:19:20 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://znx.no/?p=137</guid>
		<description><![CDATA[I find myself regularly using terminals and thus have grown to love any tool that allows me to remain in terminal. Mutt is only of those, a fantastic terminal mail client. The only issue is that most people these days send HTML e-mails rather than plain text. This means that when I open them in [...]]]></description>
			<content:encoded><![CDATA[<p>I find myself regularly using terminals and thus have grown to love any tool that allows me to remain in terminal. Mutt is only of those, a fantastic terminal mail client. The only issue is that most people these days send HTML e-mails rather than plain text. This means that when I open them in mutt it is very unreadable. However there is a very simple solution.</p>
<p>First off lets make a simple script to convert the HTML into text. Several terminal based browsers exist and these can do the conversion for us (make sure to place it in your PATH somewhere).</p>
<pre>#!/bin/sh

if [ ! -z `which links | grep -v 'no links'` ]
then
  links -html-numbered-links 1 -html-images 1 -dump "file://$@"
elif [ ! -z `which lynx | grep -v 'no lynx'` ]
then
  lynx -force_html -dump "$@"
elif [ ! -z `which w3m | grep -v 'no w3m'` ]
then
  w3m -T text/html -F -dump "$@"
else
  cat $@
fi</pre>
<p>Add this to your <i>~/.muttrc</i>:</p>
<pre>auto_view text/html
alternative_order text/enriched text/plain text text/html</pre>
<p>And then this to your <i>~/.mailcap</i>:</p>
<pre>text/html;html2txt %s; copiousoutput</pre>
<p>Start up Mutt and get nothing but text e-mails.</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2009/06/html-e-mails-and-mutt/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

