<?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>The Imaginary Part &#187; email</title>
	<atom:link href="http://1.21jiggawatts.net/blog/tag/email/feed/" rel="self" type="application/rss+xml" />
	<link>http://1.21jiggawatts.net/blog</link>
	<description>Just another Australian geek&#039;s perspective</description>
	<lastBuildDate>Wed, 08 Sep 2010 05:15:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Loading remote URLs from mutt</title>
		<link>http://1.21jiggawatts.net/blog/2010/09/loading-remote-urls-from-mutt/</link>
		<comments>http://1.21jiggawatts.net/blog/2010/09/loading-remote-urls-from-mutt/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 09:33:28 +0000</pubDate>
		<dc:creator>TK</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://1.21jiggawatts.net/blog/?p=214</guid>
		<description><![CDATA[My email lives on a virtual server and lately I've been accessing it with mutt on that machine via SSH. I really like mutt, but this makes things tricky when someone emails me a URL and it's either awkward to copy &#38; paste (e.g. PuTTY) or I'd like to look at the web page on [...]]]></description>
			<content:encoded><![CDATA[<p>My email lives on a virtual server and lately I've been accessing it with mutt on that machine via SSH. I really like mutt, but this makes things tricky when someone emails me a URL and it's either awkward to copy &amp; paste (e.g. PuTTY) or I'd like to look at the web page on another machine--often I have my laptop to one side for email while doing other things on my desktop machine.</p>
<p>Mutt uses the rather nice urlview program to extract URLs out of email messages for easy selection. urlview's handler script can also be hijacked to do whatever you want. I've set mine up to generate an HTML file in the server's webspace. This HTML file has a meta refresh tag to immediately redirect the browser to the URL of interest.</p>
<p>Now when I get a URL in an email I hit ^b to invoke urlview, select the URL I want, load a web browser on the target machine and choose my bookmark for my own URL redirector.</p>
<p>To set this up yourself:</p>
<ol>
<li>Install the urlview package
<pre>aptitude install urlview</pre>
</li>
<li>Modify /etc/urlview/url_handler.sh to call your own script. I put the following line under the user-configurable settings but before their own handler:
<pre>/usr/local/bin/sharelink.sh $1
</pre>
</li>
<li>(Optional) Disable the http handler so that you don't end up loading elinks or something else on the computer running mutt:
<pre>http_prgs=""</pre>
</li>
<li>Create a world-writable file in the machine's webspace: (but not world-deletable! The parent directory should only be writable by www-data or root.)
<pre>touch /var/www/link.htm
chmod 0666 link.htm</pre>
</li>
<li>Create a script to generate that link.htm. In my case I used this following in /usr/local/bin/sharelink.sh:
<pre>#!/bin/bash

LINKFILE=/var/www/link.htm
url=$1

cat &gt; $LINKFILE &lt;&lt;EOF
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"&gt;
&lt;html&gt;
&lt;head&gt;&lt;title&gt;Email Link Redirector&lt;/title&gt;
&lt;meta http-equiv="refresh" content="0; URL=$url"&gt;&lt;/head&gt;
&lt;body&gt;&lt;h1&gt;Redirecting&lt;/h1&gt;&lt;p&gt;&lt;a href="$url"&gt;$url&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;
EOF</pre>
</li>
</ol>
<p>Coming up with a cool way of retrieving attached files is left as an exercise to the reader.</p>
]]></content:encoded>
			<wfw:commentRss>http://1.21jiggawatts.net/blog/2010/09/loading-remote-urls-from-mutt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Signing My Way</title>
		<link>http://1.21jiggawatts.net/blog/2009/07/signing-my-way/</link>
		<comments>http://1.21jiggawatts.net/blog/2009/07/signing-my-way/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 13:47:06 +0000</pubDate>
		<dc:creator>TK</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[cryptography]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[gnupg]]></category>
		<category><![CDATA[goodluckwiththat]]></category>
		<category><![CDATA[signature.asc]]></category>

		<guid isPermaLink="false">http://arctanx.id.au/blog/?p=51</guid>
		<description><![CDATA[If you receive an email from me the chances are good that it will have an attachment named signature.asc. This contains a PGP signature, which in combination with my public key can be used to verify that I wrote the email and that it hasn't been changed since I sent it on its way. Why [...]]]></description>
			<content:encoded><![CDATA[<p>If you receive an email from me the chances are good that it will have an attachment named <em>signature.asc</em>. This contains a PGP signature, which in combination with my public key can be used to verify that I wrote the email and that it hasn't been changed since I sent it on its way.</p>
<p>Why do I bother and why should you care?</p>
<p>Anyone can send email claiming to be anyone. It's fairly straightforward to write an email assuming somebody else's address and identity. If the recipient knows to only trust a message which has a cryptographic signature certifying that it is valid, fraudulent messages can be ignored or at least confirmed. This problem is reasonably widespread, more for sending spam from reputable-sounding email addresses in the cases that I've seen so far.</p>
<p>In addition, almost all email is sent in plain text. Anybody who runs any computers between you and the recipient of the email can read its entire contents if they want. If you're using a cryptographic system you can also encrypt your message so that only the exact people you want can read it.</p>
<p>It's reasonably obvious that this crytography business is quite a good idea, so why isn't it widely used by everyday internet users? Probably because it isn't yet widely used by everyday internet users. To get in on this, you need to generate a key of your own and run some extra software to do the cryptography for you.</p>
<ol>
<li>Generate a key. This will have two halves -- a public key and a private key. It will also have a password. You keep the private part and the password completely secret, but you need both of them to make it work.</li>
<li>Publish the public key to the world. Give it to your friends. Upload it to a public keyserver. They can use this to send you encrypted mail or to verify your email signatures.</li>
<li>Sign your friends' keys to indicate that you, the holder of your key, have decided that the person who owns the other key is who they say they are. Hopefully they'll do the same for you, and this builds the "web of trust" -- if you trust your friend's key, and they trust someone else's, you can <em>probably</em> trust it too. If ten of your friends trust another key you can be even more certain that it's trustworthy. (It's worth knowing that there are formal requirements set down for trusting someone's key -- don't <a href="http://xkcd.com/364/">sign a stranger's key</a>!)</li>
</ol>
<p>What you need is GnuPG, a free and open source PGP implementation. You can download it <a href="http://www.gnupg.org/download/">for Windows</a> or <a href="http://macgpg.sourceforge.net/">for Mac</a>. Installation on Linux is as normal with your package manager. Then you need some integration for your mail client. If you're using Thunderbird try <a href="https://addons.mozilla.org/en-US/thunderbird/addon/71">Enigmail</a>.</p>
<p>It's not that hard and it's probably the most trustworthy way of verifying communications on the 'net that we have. Let's solve this chicken-and-egg problem early so we have something to fall back on if and when identity theft, fraud and spam make the current situation untenable.</p>
<p>My key id: 0x6F3A5B84 &lt;<a href="http://arctanx.id.au/tk-pub-key.txt">http://arctanx.id.au/tk-pub-key.txt</a>&gt; Please feel free to use it.</p>
]]></content:encoded>
			<wfw:commentRss>http://1.21jiggawatts.net/blog/2009/07/signing-my-way/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
