You are not logged in.

#1 2008-05-05 14:47:05

kikinovak
Member
From: Montpezat (South France)
Registered: 2005-12-07
Posts: 96
Website

Thunderbird: clickable links & file associations?

Hi,

I have Arch installed with the XFCE desktop environment, plus a handful of apps. I'm using Thunderbird for email and Firefox for web browsing. (OK, not very original, I admit cool)

1) Firefox and Thunderbird are set as default apps for browsing and mail within XFCE. Now how can I make links in mails clickable, e. g. make them open in Firefox? So far, I have to copy them, open Firefox and paste them into the URL bar.

2) Is there a way to define various MIME types and file associations in Thunderbird? For example, when someone sends me a PDF, open it automatically with epdfview, or a PPS with OpenOffice.org Impress, etcetera... ? (That is, without first doing "Save as..." in Thunderbird)

Any suggestions?


Dyslexics have more fnu.

Offline

#2 2008-05-05 17:14:28

celettu
Member
Registered: 2007-12-01
Posts: 143
Website

Re: Thunderbird: clickable links & file associations?

Don't know about 2), but as for one, open your config editor in Thunderbird, and find these

network.protocol-handler.app.ftp
network.protocol-handler.app.http
network.protocol-handler.app.https

and change the value to firefox (string). Don't know if they exist in default installation...if they're not, create them smile


Keep it Simple, Sexy

Offline

#3 2008-05-05 17:46:30

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Thunderbird: clickable links & file associations?

I'm also curious for a solution to the second issue, it bothers me a lot..

Offline

#4 2008-05-27 06:04:19

orjanp
Member
From: Tromsoe, Norway
Registered: 2004-07-03
Posts: 347

Re: Thunderbird: clickable links & file associations?

Me to.

To the first issue however. This is how I have done it.

In my thunderbird prefs.js

user_pref("network.protocol-handler.app.http", "<path to>thunderbird-link.sh");
user_pref("network.protocol-handler.app.https", "<path to>thunderbird-link.sh");

My thunderbird-link.sh

#!/bin/bash
export MOZILLA_FIVE_HOME="/usr/bin/firefox"

url="$1"
if [ "x$url" = "x" ]; then
    url="about:blank"
fi

if $MOZILLA_FIVE_HOME -remote "openURL($url)"; then
    exit 0
fi
exec $MOZILLA_FIVE_HOME "$url"

You have to make thunderbird-link.sh executable. Do

# chmod a+x thunderbird-link.sh

This will open Firefox if it isn't open already. If it is open, the link will open in a new tab.

The mailto in Firefox is handled like this.
My prefs.js

user_pref("network.protocol-handler.app.mailto", "<path to>firefox-mailto.sh");

My firefox-mailto.sh

#!/bin/bash
# This script allows FireFox to send mailto: links
# to Thunderbird

THUNDERBIRD="/usr/bin/thunderbird"

#echo "Firefox mailto: $*" >> $HOME/log.txt

MAILTO_URL="$1"
#Strip off the protocol as this confuses Thunderbird
MAIL_DATA=`echo "$MAILTO_URL" | /bin/sed -s 's/^mailto://'`

if $THUNDERBIRD 'ping()' ; then
    $THUNDERBIRD -remote "mailto( $MAIL_DATA )"
else
    #The mailto needs to be in the format mailto:someone@example.com
    #eg not mailto://someone@example.com
    $THUNDERBIRD -compose "$MAILTO_URL"
fi
exit 0

Make it executable. Opens Thunderbird if it isn't already running.

Oerjan


Ørjan Pettersen

Offline

#5 2008-05-27 07:13:32

p_schott
Member
Registered: 2006-11-23
Posts: 54

Re: Thunderbird: clickable links & file associations?

Concerning point n°2, you can try https://addons.mozilla.org/en-US/thunderbird/addon/4498.

Last edited by p_schott (2008-05-27 07:15:05)

Offline

Board footer

Powered by FluxBB