<?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>Alex&#039;s Adventures on the Infobahn &#187; mutt</title>
	<atom:link href="http://www.bennee.com/~alex/blog/tag/mutt/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bennee.com/~alex/blog</link>
	<description>the wanderings of a supposed digital native</description>
	<lastBuildDate>Tue, 24 Jan 2012 08:38:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Adding Google Juice to mutt</title>
		<link>http://www.bennee.com/~alex/blog/2010/03/17/adding-google-juice-to-mutt/</link>
		<comments>http://www.bennee.com/~alex/blog/2010/03/17/adding-google-juice-to-mutt/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 07:35:42 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[geek]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[mutt]]></category>

		<guid isPermaLink="false">http://www.bennee.com/~alex/blog/?p=1789</guid>
		<description><![CDATA[As I&#8217;ve been mailing out invites I discovered a minor problem with my data. My main email client is the fantastically functional mutt. It&#8217;s terminal based but incredibly flexible. When it comes to mass sorting/searching your email it leaves GUI based clients standing. However now I&#8217;m a roving around with a Google Phone the majority [...]]]></description>
			<content:encoded><![CDATA[<p>As I&#8217;ve been mailing out invites I discovered a minor problem with my data.</p>
<p>
My main email client is the fantastically functional <a href="http://www.mutt.org">mutt</a>. It&#8217;s terminal based but incredibly flexible. When it comes to mass sorting/searching your email it leaves GUI based clients standing. However now I&#8217;m a roving around with a Google Phone the majority of my contact data is <a href="http://en.wikipedia.org/wiki/Gmail">in the cloud</a>. While I have a small address file used by mutt it only has a few oft-mailed addresses in it.</p>
<p>
Luckily thanks to <a href="http://code.google.com/apis/gdata/">Google&#8217;s data APIs</a> <b>your information</b> is only a few <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer#RESTful_web_services">RESTful</a> requests away. The <a href="http://code.google.com/p/goobook/">goobook</a> program provides a handy mutt compatible address book interface to this cloud data.</p>
<p>
There is one wrinkle however. The <a href="http://code.google.com/p/goobook/source/browse/trunk/README.txt#59">configuration</a> of the script involves putting some rather valuable login details in a plain text file on your home partition. While I like to think my machines are pretty secure and maintained you can always do more. Good security is defence in depth. A <a href="http://groups.google.com/group/goobook/browse_thread/thread/f632e3d5c4fcaf25">quick patch later</a> and I can store those details in an <a href="http://en.wikipedia.org/wiki/GNU_Privacy_Guard">GPG</a> encrypted file that can be decrypted on the fly when required.</p>
<p>
The final piece of the puzzle is creating these encrypted config files in the first place. Although you can do this by hand from the command line I find the best method is using <A href="http://www.emacswiki.org/emacs/EasyPG">EasyPG</a> (now part of Emacs 23). This will automatically cause any files with a .gpg extension to be encrypted. You can control the Emacs mode selection and default encryption key to use by using <a href="http://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html#Specifying-File-Variables">file variables</a> in the header comments of the file.</p>
<p>
It&#8217;s not all perfect though, when enabling EasyPG I had to do the following:</p>
<p><pre style="color: #f5deb3; background-color: #2f4f4f; font-size: 8pt">
(<span style="color: #fa8072;">if</span> (maybe-load-library <span style="color: #ffa07a;">"</span><span style="color: #cdad00; font-weight: bold; text-decoration: underline;">epa</span><span style="color: #ffa07a;">-file"</span>)
    (<span style="color: #fa8072;">progn</span>
      (setenv <span style="color: #ffa07a;">"GPG_AGENT_INFO"</span> nil) <span style="color: #add8e6;">; </span><span style="color: #add8e6;">gpg-agent confuses epa when getting passphrase
</span>      (epa-file-enable)))
</pre>
<p>The problem seems to be that when GPG agent runs in terminal mode it confuses Emacs/EasyPG. By suppressing the GPG_AGENT_INFO environment variable EasyPG will fall back to requesting your passphrase in the mode line. While it takes care to flush the value as soon as possible it does open a small window of attack if an attacker can cause emacs to crash and dump core.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bennee.com/~alex/blog/2010/03/17/adding-google-juice-to-mutt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More emacs server support</title>
		<link>http://www.bennee.com/~alex/blog/2008/11/03/more-emacs-server-support/</link>
		<comments>http://www.bennee.com/~alex/blog/2008/11/03/more-emacs-server-support/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 19:05:31 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[geek]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[mutt]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I found that one of the Debian developers packages emacs-snapshot for Debian stable. A little bit of shell script later and my Mutt is firing off a muti-tty emacsclients whenever I need to edit a mail. It shaves literally seconds off the time it takes me to compose an email!]]></description>
			<content:encoded><![CDATA[<p>I found that one of the <a href="http://emacs.orebokech.com/">Debian  developers</a> packages emacs-snapshot for Debian stable. A little bit  of <a  href="http://github.com/stsquad/dotfiles/commit/ecb4e99a697e63f71f069222482a812cd72cb09e">shell  script</a> later and my <a href="http://www.mutt.org/">Mutt</a> is  firing off a <A  href="http://www.enigmacurry.com/2007/05/24/multi-tty-emacs-on-gentoo-and-ubuntu/">muti-tty  emacsclients</a> whenever I need to edit a mail. It shaves literally  seconds off the time it takes me to compose an email!  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.bennee.com/~alex/blog/2008/11/03/more-emacs-server-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

