Found this solution on the mozillaZine site. I altered it to work specifically with SUSE 9.3. It launches a Thunderbird compose window for mailto links in Firefox regardless of whether Thunderbird's main window is open. The Firefox menu options File > Send Link... works too, which fills in the mail Subject & Body with the current web page's Title & URL. Nice...
To display a list of Firefox configuration options, in the Firefox address bar, type:
about
:config
(NOTE: There's no space in front of the colon; it got put there by the LQ forum editor)??
Right-click anywhere and select New > String...
Preference Name:
network.protocol-handler.app.mailto
Value:
~/.thunderbird/thunderbird-url.sh
(The above steps are the same thing as putting the following line in your prefs.js):
Code:
user_pref("network.protocol-handler.app.mailto","~/.thunderbird/thunderbird-url.sh");
Create a shell script named thunderbird-url.sh and mark it executable in your /home/yourid/.thunderbird directory.
Fill it up with this:
Code:
#!/bin/sh
# thunderbird-url.sh
# Works with: Thunderbird 1.0, Firefox 1.0.7, KDE 3.4.0b, SUSE 9.3
# script author: icycle
# http://forums.mozillazine.org/viewto...=490108#490108
url="$1"
export MOZILLA_FIVE_HOME=/usr/bin
if [ $(pidof thunderbird-bin | wc -w) -gt 0 ]; then
# thunderbird is running
url=`echo "$url" | sed -e's/^mailto://'`
$MOZILLA_FIVE_HOME/thunderbird -remote "mailto($url)"
else
# thunderbird is not running
$MOZILLA_FIVE_HOME/thunderbird -P default -compose $url
fi
This method uses a complete mailto URL, so mailto links sent to Thunderbird will accept any number of valid parameters for a mail message. Paste the following line into your Firefox address bar to test:
mailto:hello@world.nul?subject=test&body=this%20is%20a%20test&cc=joe@nul.nul
Brett
[Edit]
Okay, evidently it's even easier than I thought in SUSE 9.3. The startup script provided with the Thunderbird RPM takes care of everything, almost. Get the latest Thunderbird RPM here:
ftp://ftp.suse.com/pub/projects/mozilla/thunderbird
(Choose a mirror near you)
Use the "about
:config" method in Firefox, or edit your Firefox prefs.js to add these settings:
Code:
user_pref("network.protocol-handler.app.http", "/usr/bin/firefox");
user_pref("network.protocol-handler.app.mailto", "/usr/bin/thunderbird");
Restart Firefox. That's it.