<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Alex's Adventures on the Infobahn - mutt</title><link href="https://www.bennee.com/~alex/" rel="alternate"></link><link href="https://www.bennee.com/~alex/blog/tag/mutt/feed" rel="self"></link><id>https://www.bennee.com/~alex/</id><updated>2010-03-17T07:35:00+00:00</updated><subtitle>the wanderings of a supposed digital native</subtitle><entry><title>Adding Google Juice to mutt</title><link href="https://www.bennee.com/~alex/blog/2010/03/17/adding-google-juice-to-mutt/" rel="alternate"></link><published>2010-03-17T07:35:00+00:00</published><updated>2010-03-17T07:35:00+00:00</updated><author><name>alex</name></author><id>tag:www.bennee.com,2010-03-17:/~alex/blog/2010/03/17/adding-google-juice-to-mutt/</id><summary type="html">&lt;p&gt;As I've been mailing out invites I discovered a minor problem with my data.&lt;/p&gt;
&lt;p&gt;My main email client is the fantastically functional &lt;a class="reference external" href="http://www.mutt.org"&gt;mutt&lt;/a&gt;. It's terminal based but incredibly flexible. When it comes to mass sorting/searching your email it leaves GUI based clients standing. However now I'm a roving around …&lt;/p&gt;</summary><content type="html">&lt;p&gt;As I've been mailing out invites I discovered a minor problem with my data.&lt;/p&gt;
&lt;p&gt;My main email client is the fantastically functional &lt;a class="reference external" href="http://www.mutt.org"&gt;mutt&lt;/a&gt;. It's terminal based but incredibly flexible. When it comes to mass sorting/searching your email it leaves GUI based clients standing. However now I'm a roving around with a Google Phone the majority of my contact data is &lt;a class="reference external" href="http://en.wikipedia.org/wiki/Gmail"&gt;in the cloud&lt;/a&gt;. While I have a small address file used by mutt it only has a few oft-mailed addresses in it.&lt;/p&gt;
&lt;p&gt;Luckily thanks to &lt;a class="reference external" href="http://code.google.com/apis/gdata/"&gt;Google's data APIs&lt;/a&gt; &lt;strong&gt;your information&lt;/strong&gt; is only a few &lt;a class="reference external" href="http://en.wikipedia.org/wiki/Representational_State_Transfer#RESTful_web_services"&gt;RESTful&lt;/a&gt; requests away. The &lt;a class="reference external" href="http://code.google.com/p/goobook/"&gt;goobook&lt;/a&gt; program provides a handy mutt compatible address book interface to this cloud data.&lt;/p&gt;
&lt;p&gt;There is one wrinkle however. The &lt;a class="reference external" href="http://code.google.com/p/goobook/source/browse/trunk/README.txt#59"&gt;configuration&lt;/a&gt; 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 &lt;a class="reference external" href="http://groups.google.com/group/goobook/browse_thread/thread/f632e3d5c4fcaf25"&gt;quick patch later&lt;/a&gt; and I can store those details in an &lt;a class="reference external" href="http://en.wikipedia.org/wiki/GNU_Privacy_Guard"&gt;GPG&lt;/a&gt; encrypted file that can be decrypted on the fly when required.&lt;/p&gt;
&lt;p&gt;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 &lt;a class="reference external" href="http://www.emacswiki.org/emacs/EasyPG"&gt;EasyPG&lt;/a&gt; (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 &lt;a class="reference external" href="http://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html#Specifying-File-Variables"&gt;file variables&lt;/a&gt; in the header comments of the file.&lt;/p&gt;
&lt;p&gt;It's not all perfect though, when enabling EasyPG I had to do the following:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
(if (maybe-load-library &amp;quot;epa-file&amp;quot;)
    (progn
      (setenv &amp;quot;GPG_AGENT_INFO&amp;quot; nil) ; gpg-agent confuses epa when getting passphrase
      (epa-file-enable)))
&lt;/pre&gt;
&lt;p&gt;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.&lt;/p&gt;
</content><category term="geek"></category><category term="data"></category><category term="emacs"></category><category term="encryption"></category><category term="google"></category><category term="gpg"></category><category term="mutt"></category></entry><entry><title>More emacs server support</title><link href="https://www.bennee.com/~alex/blog/2008/11/03/more-emacs-server-support/" rel="alternate"></link><published>2008-11-03T19:05:00+00:00</published><updated>2008-11-03T19:05:00+00:00</updated><author><name>alex</name></author><id>tag:www.bennee.com,2008-11-03:/~alex/blog/2008/11/03/more-emacs-server-support/</id><summary type="html">&lt;p&gt;I found that one of the &lt;a class="reference external" href="http://emacs.orebokech.com/"&gt;Debian developers&lt;/a&gt; packages emacs-snapshot for Debian stable. A little bit of &lt;a class="reference external" href="http://github.com/stsquad/dotfiles/commit/ecb4e99a697e63f71f069222482a812cd72cb09e"&gt;shell script&lt;/a&gt; later and my &lt;a class="reference external" href="http://www.mutt.org/"&gt;Mutt&lt;/a&gt; is firing off a &lt;a class="reference external" href="http://www.enigmacurry.com/2007/05/24/multi-tty-emacs-on-gentoo-and-ubuntu/"&gt;muti-tty emacsclients&lt;/a&gt; whenever I need to edit a mail. It shaves literally seconds off the time it takes me to compose an email …&lt;/p&gt;</summary><content type="html">&lt;p&gt;I found that one of the &lt;a class="reference external" href="http://emacs.orebokech.com/"&gt;Debian developers&lt;/a&gt; packages emacs-snapshot for Debian stable. A little bit of &lt;a class="reference external" href="http://github.com/stsquad/dotfiles/commit/ecb4e99a697e63f71f069222482a812cd72cb09e"&gt;shell script&lt;/a&gt; later and my &lt;a class="reference external" href="http://www.mutt.org/"&gt;Mutt&lt;/a&gt; is firing off a &lt;a class="reference external" href="http://www.enigmacurry.com/2007/05/24/multi-tty-emacs-on-gentoo-and-ubuntu/"&gt;muti-tty emacsclients&lt;/a&gt; whenever I need to edit a mail. It shaves literally seconds off the time it takes me to compose an email!&lt;/p&gt;
</content><category term="geek"></category><category term="emacs"></category><category term="mutt"></category></entry></feed>