[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mozilla-Thunderbird and URL Links?



Mihai Moje wrote
Here's how I did it on Solaris with Opera 7.23.
[...]
For other protocols such as ftp or https add same line in prefs.js and don't forget to chnage http with https or ftp...

Here's the same for Firefox (both packages are from backports.org).

[n] new (file)
[e] commandline(s) to execute


Mozilla Thunderbird 0.5 on Debian 3.0r2 stable ("Woody")


Send URLs to Browser
--------------------

If you have Mozilla Firefox installed, you can do the following to
send email embedded URLs from Thunderbird to the Firefox browser:

1. Stop Thunderbird. This is important; any manual changes to prefs.js
   during runtime will automatically be overwritten on MUA exit.

2. Create send_url.sh and adapt your user profile's prefs.js:

send_url.sh
----------------------------------------------------------------------
#!/bin/bash

export MOZILLA_FIVE_HOME="/usr/lib/mozilla-firefox"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MOZILLA_FIVE_HOME

# Get URL to load
url=$1; [ -z $url ] && url=about:blank

# Try xremote first
$MOZILLA_FIVE_HOME/mozilla-firefox-xremote-client openURL\($url\)

# If xremote failed, then launch the browser
[ $? -ne 0 ] && $MOZILLA_FIVE_HOME/firefox-bin $url &

exit 0
----------------------------------------------------------------------

[n] /usr/lib/mozilla-thunderbird/send_url.sh
[e] chmod 755 /usr/lib/mozilla-thunderbird/send_url.sh
    echo 'user_pref("network.protocol-handler.app.http", \
    "/usr/lib/mozilla-thunderbird/send_url.sh");' \
    >> <fq_path_to_your_thunderbird_user_profile_directory>/prefs.js

3. Start Thunderbird.

   The send_url.sh script launches the browser if there's no instance
   already running. Formerly this didn't work when called from inside
   Thunderbird, which was believed to be a flaw in the MUA's routines.
   Instead, it was an issue with Firebird. Firefox gets started
   correctly now.

That's it. Enjoy.

--
Bye; Kai



Reply to: