<?xml version="1.0"?><rss version="2.0">
<channel>
  <title>Alan&#039;s Ramblings - thunderbird tag</title>
  <link>http://bleaklow.com:80/tags/thunderbird/</link>
  <description>My opinions may be incorrect, but they are my own</description>
  <language>en</language>
  <copyright>Alan Burlison</copyright>
  <lastBuildDate>Wed, 29 Feb 2012 20:50:00 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  <image>
    <url>http://bleaklow.com/images/misc/logo.gif</url>
    <title>Alan&#039;s Ramblings</title>
    <link>http://bleaklow.com:80/</link>
  </image>
  <item>
    <title>Making file:// links work in thunderbird</title>
    <link>http://bleaklow.com:80/2006/01/27/making_file_links_work_in_thunderbird.html</link>
    <description>
          &lt;p&gt;
I use &lt;a href=&#034;http://www.mozilla.com/thunderbird/&#034;&gt;thunderbird 1.5&lt;/a&gt; as my mail reader, and it is always bugged me that clicks on &lt;code&gt;file://&lt;/code&gt; links in emails are ignored - these are frequently used internally within Sun, for example code reviews are usually done with a tool called webrev which builds a tree of HTML pages containing the diffs, and the &lt;code&gt;file://&lt;/code&gt; links are usually mailed out to reviewers.  A spot of light googling revealed &lt;a href=&#034;http://kb.mozillazine.org/Links_to_local_pages_don&#039;t_work&#034;&gt;this page&lt;/a&gt; on the topic for &lt;a href=&#034;http://www.mozilla.com/firefox&#034;&gt;firefox&lt;/a&gt;, and although the page implied the same configuration settings were also used by thunderbird, it wasn&#039;t quite clear how to apply the technique to mails read from an IMAP server.  Hmm.
&lt;p&gt;
To try to figure out what was going on I opened up the thunderbird JavaScript console (on the Tools menu) and clicked on a &lt;/code&gt;file://&lt;/code&gt; link in an email.  The following error message appeared:
&lt;p&gt;
&lt;div class=&#034;textbox&#034;&gt;
Security Error: Content at imap://mailserver.uk.sun.com:143/fetch%3EUID%3.INBOX%3E8620 may not load
or link to file:///net/foo.uk.sun.com/export/8475639/webrev/index.html.
&lt;/div&gt;
&lt;p&gt;
So I surmised that what I needed to do was to tell thunderbird to trust links from my IMAP server, so I added the following to my &lt;a href=&#034;http://www.mozilla.org/support/thunderbird/edit&#034;&gt;user.js&lt;/a&gt; file:
&lt;p&gt;
&lt;pre&gt;
// Allow file:// links
user_pref(&#034;capability.policy.policynames&#034;, &#034;localfilelinks&#034;);
user_pref(&#034;capability.policy.localfilelinks.sites&#034;, &#034;imap://mailserver.uk.sun.com:143&#034;);
user_pref(&#034;capability.policy.localfilelinks.checkloaduri.enabled&#034;, &#034;allAccess&#034;);
&lt;/pre&gt;
&lt;p&gt;
restarted thunderbird, and clicking on &lt;code&gt;file://&lt;/code&gt; links now worked.  Note that there are a number of good &lt;a href=&#034;http://kb.mozillazine.org/Links_to_local_pages_don&#039;t_work&#034;&gt;security-related&lt;/a&gt; reasons as to why this isn&#039;t enabled by default, so use it at your own risk!&lt;/a&gt;
&lt;p&gt;</description>
      <category>Web</category>
    <category>Tech</category>
    <comments>http://bleaklow.com:80/2006/01/27/making_file_links_work_in_thunderbird.html#comments</comments>
    <guid isPermaLink="true">http://bleaklow.com:80/2006/01/27/making_file_links_work_in_thunderbird.html</guid>
    <pubDate>Fri, 27 Jan 2006 05:02:25 GMT</pubDate>
  </item>
  </channel>
</rss>

