<?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>Eduardo Habkost / diary &#187; 2007 &#187; outubro &#187; 09</title>
	<atom:link href="http://raisama.net/diary/archive/2007/10/09/feed" rel="self" type="application/rss+xml" />
	<link>http://raisama.net/diary</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 16 Jul 2010 03:11:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Getting a mailing-list archive URL from a Message-ID</title>
		<link>http://raisama.net/diary/archive/2007/10/09/getting-a-mailing-list-archive-url-from-a-message-id</link>
		<comments>http://raisama.net/diary/archive/2007/10/09/getting-a-mailing-list-archive-url-from-a-message-id#comments</comments>
		<pubDate>Tue, 09 Oct 2007 15:50:55 +0000</pubDate>
		<dc:creator>Eduardo Habkost</dc:creator>
				<category><![CDATA[Ferramentas]]></category>
		<category><![CDATA[In English]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Nerd]]></category>

		<guid isPermaLink="false">http://raisama.net/diary/archive/2007/10/09/getting-a-mailing-list-archive-url-from-a-message-id</guid>
		<description><![CDATA[It happens often to me: I am reading a mailing list on mutt and I want to send a pointer to the message to somebody. I always wanted to be able to press a key on mutt, and a script would query mailing list archives and find a URL for the message on a mailing [...]]]></description>
			<content:encoded><![CDATA[<p>It happens often to me: I am reading a mailing list on mutt and I want to send a pointer to the message to somebody.</p>
<p>I always wanted to be able to press a key on mutt, and a script would query mailing list archives and find a URL for the message on a mailing list archive. Today I have found this to be possible. <a href="http://www.gmane.org">Gmane</a> has a &#8220;Message-Id&#8221; URL format tha allows you to do it. Just point to <tt>http://mid.gmane.org/</tt><em>&lt;message-id&gt;</em> and it will redirect to the message on the archives, if it is present.</p>
<p>Now, getting a URL for a mailing list message is as simple as piping the message from mutt to this small script:</p>
<pre>
#!/bin/bash
mid="$(grep -m 1 -i ^Message-ID: | cut -d: -f2 | sed -e 's/^ *//')"
kfmclient openURL 'http://mid.gmane.org/'"$mid"
</pre>
<p>And this can be bound this to a keystroke under mutt by simply using something like this on <tt>.muttrc</tt>:</p>
<pre>
macro pager U "
<pipe-entry>msg2url\n"
</pre>
<p>There are other mailing list archives with similar features. But they are more specific to some mailing lists, so they are not as comprehensive as Gmane. Some examples:</p>
<ul>
<li><tt>http://kerneltrap.org/mailarchive/message-id/</tt><em>&lt;message-id&gt;</em> (for <a href="http://kerneltrap.org/mailarchive/">KernelTrap mailing list archives</a>)</li>
<li><tt>http://www.red-bean.com/threadfind</tt> (mostly Subversion-related mailing lists)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://raisama.net/diary/archive/2007/10/09/getting-a-mailing-list-archive-url-from-a-message-id/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
