You are not logged in.
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 )
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
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
Keep it Simple, Sexy
Offline
I'm also curious for a solution to the second issue, it bothers me a lot..
Offline
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
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