john wrote:
Hello
I have the firefox check mail extension installed on ff 1.06.
Evolution comes up and I would like to change it to thunderbird. I
have changed the default mail program in kde desktop to thunderbird
but that doesn't do it. I am using Mandriva le 2005. What else needs
to be changed? Thanks in advance for your help.
John
You can take a look at this and see if it helps..
-----------------------------------------------------------------
This article is part of the Tips & Tricks series.
Terminals / Shells • X Windows • Portage • System • Filesystems • Kernel
• Other
Contents
[hide]
1 Problem
2 Installation
3 Open URLs in Firefox from Thunderbird
4 Open URLs in Firefox from Thunderbird (if first does not work)
5 Open mailto's in Thunderbird from Firefox
6 Open mailto's in Thunderbird from Firefox (old method)
7 All set for now
[edit]
Problem
This page is aimed at integrating Thunderbird and Firefox to a certain
level. Standard when emerged, Firefox will not automatically open
mailto's in Thunderbird, while Thunderbird does not automatically opens
URLs in Firefox.
[edit]
Installation
Just install the default Thunderbird and Firefox on your system when not
already present.
# emerge -av mozilla-firefox
# emerge -av mozilla-thunderbird
[edit]
Open URLs in Firefox from Thunderbird
To change the behaviour of Thunderbird you have to edit the file
~/.thunderbird/<something>.default/prefs.js and adding the following lines:
File: ~/.thunderbird/<something>.default/prefs.js
user_pref("network.protocol-handler.app.ftp","/usr/bin/firefox");
user_pref("network.protocol-handler.app.http","/usr/bin/firefox");
user_pref("network.protocol-handler.app.https","/usr/bin/firefox");
Other handlers can be added here also. Make sure to close Thunderbird
before modifying the file, as it will be overwritten by Thunderbird on
exit.
[edit]
Open URLs in Firefox from Thunderbird (if first does not work)
If you cannot get the previous method to work, you can use the
Thunderbird Extension About Config.
Right click to create three new strings:
Name - network.protocol-handler.app.ftp Value - /usr/bin/firefox
Name - network.protocol-handler.app.http Value - /usr/bin/firefox
Name - network.protocol-handler.app.https Value - /usr/bin/firefox
[edit]
Open mailto's in Thunderbird from Firefox
To automatically open Thunderbird when we click on a mail link we have
to set in Firefox the mailto protocol handler. To do this just start
your Firefox and type "about:config" in the URL navigation bar. You can
type "mailto" in the filter to see the mailto actions. If there is a
string called "network.protocol-handler.app.mailto" this value says what
the action for clicking on a mailto is. When not present you can right
click in the browser -> New -> String -> String value becomes
"network.protocol-handler.app.mailto" and the next value should become
the place where thunderbird is located, i.e. "/usr/bin/thunderbird".
Remeber to restart firefox if you use earlier versions than 1.0.6...and
that's all.
[edit]
Open mailto's in Thunderbird from Firefox (old method)
When one sees a mail adress in a website and want to be able to
automatically open a new mail in Thunderbird to the mailto adress, we
have to do two things.
The first is add the following file to your system:
File: tbmail.sh
#!/bin/sh
#Home of your thunderbird executable. Do a 'whereis thunderbird'
#or 'whereis thunderbird-bin' to find yours.
export MOZILLA_FIVE_HOME="/usr/bin"
#Name of your thunderbird binary. Change this as required for your system.
tbird_bin_name="thunderbird-bin"
url="$1"
if [ "x$url" = "x" ]; then
exit 0
fi
url=`echo $url|sed 's/^mailto://'`
if $MOZILLA_FIVE_HOME/$tbird_bin_name -remote "mailto($url)"; then
exit 0
fi
exec $MOZILLA_FIVE_HOME/$tbird_bin_name "$url"
Next make this file executable and place it in a decent place
(/usr/local/bin is a common place for programs that were not installed
by portage).
# chmod a+x tbmail.sh
# mv tbmail.sh /usr/local/bin/
The second thing is to update the configuration of firefox. Start your
Firefox and type "about:config" in the URL navigation bar. You can type
"mailto" in the filter to see the mailto actions. If there is a string
called "network.protocol-handler.app.mailto" this value says what the
action for clicking on a mailto is. When not present you can right click
in the browser -> New -> String -> String value becomes
"network.protocol-handler.app.mailto" and the next value should become
the place where tbmail.sh is located, in our example this value becomes
"/usr/local/bin/tbmail.sh".
[edit]
All set for now
If everything went OK, you should be set now. There are also options to
let Thunderbird open in new window etc. but that is not working
presently at my system, maybe update later on. I also do not know how
internal handlers of KDE and/or GNOME behave, maybe they have already
working solutions for these problems, but on my XFCE desktop I had to do
this manually as described above.
Retrieved from
"http://gentoo-wiki.com/TIP_Integrate_Thunderbird_and_Firefox"
Categories: Tips
Views
Article
Discussion and Bugs
Edit This Page
History
Personal tools
Create an account or log in
Navigation
Main Page
Wiki News
Recent changes
Random page
Help
Search
Categories
HOWTO Index
Tips & Tricks
MAN Pages
Hardware
Security
FAQ
Misc
Other Indexes
Wiki Pages
Wanted Articles
Toolbox
____________________________________________________
Want to buy your Pack or Services from Mandriva?
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________