<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.2" -->
<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/"
	>

<channel>
	<title>Eduardo Habkost / diary</title>
	<link>http://raisama.net/diary</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Fri, 18 Jul 2008 13:29:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>
	<language>en</language>
			<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>Nerd</category>
	<category>Ferramentas</category>
	<category>In English</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 list [...]]]></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&#8221;
</pipe></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>
		</item>
	</channel>
</rss>
