LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Firefox 3.0 + Email links = No Thunderbird? (http://www.linuxquestions.org/questions/slackware-14/firefox-3-0-email-links-%3D-no-thunderbird-650845/)

Daedra 06-22-2008 03:18 AM

Firefox 3.0 + Email links = No Thunderbird?
 
I just tested this with the official Slackware-current package and my own compiled version of firefox. When ever I click an email link, craigslist for instance, nothing happens, thunderbird doesn't automatically launch like it used to. I checked my about:config mailto settings and they are set for thunderbird. Is anyone else having this problem?

tronayne 06-22-2008 07:43 AM

By default, Firefox (and Thunderbird) don't have what you need to open links in one to the other. Here's two Java(script?) files you can add to your Firefox and Thunderbird prefs.js files so cross-links will work:
Code:

# firefox.js -- append to prefs.js file in .mozilla/firefox tree
#
# To get Thunderbird to handle mail
#
user_pref("network.protocol-handler.app.mailto","/usr/bin/thunderbird");

and
Code:

# thunder.js -- append to prefs.js file in .thunderbird tree
#
# To get Firefox to handle web links
#
user_pref("network.protocol-handler.app.http","/usr/bin/firefox");
user_pref("network.protocol-handler.app.https","/usr/bin/firefox");
user_pref("network.protocol-handler.app.ftp","/usr/bin/firefox");

Shut down both Firefox and Thunderbid then
Code:

cd .mozilla/firefox
cd whatever.default
vi prefs.js
<append the firefox.js above>

cd .thunderbird
cd whatever.default
vi prefs.js
<append the thunder.js above>

You may want to change the path to firefox and thunderbird if they're not installed or linked in /usr/bin.

Hope this helps.

shadowsnipes 06-22-2008 01:30 PM

hmmm I'll have to test this (I don't have T-bird on this machine). Supposedly the Slackware Firefox build script's thunderbird patch is supposed to make it so that T-bird is selected as the default mail handler.

Either way it should be easy to change in the Firefox prefs.

digger95 06-22-2008 02:57 PM

I can confirm this behavior as well.

When first clicking an email address in Firefox 3 I was prompted with this dialog box asking me to select my preferred email application. However subsequent attempts to send an email yields no response.

I installed Firefox 3 using the official package from the Slackware repository.

I'll tinker with it for a while using tronayne's suggestions above, or I may just go back to FF2. To be honest I didn't really have a need to upgrade anyway except for the lure of a 'bright and shiny' new toy. That'll teach me. :)

Dig

tronayne 06-22-2008 04:43 PM

Well, be all that as it may, ya either stick those preference lines in if they ain't there or she ain't gonna do what you want 'er to. Up to y'all...

hemp4fuel 06-22-2008 09:13 PM

Quote:

Originally Posted by tronayne (Post 3192068)
Well, be all that as it may, ya either stick those preference lines in if they ain't there or she ain't gonna do what you want 'er to. Up to y'all...

I followed your directions but still get nothing.

dugan 06-22-2008 10:25 PM

If you've got a webmail account then you don't need Thunderbird to handle mailto links anymore. For example, here's how you set Firefox up to use gmail for your mailto links:
http://lifehacker.com/392287/set-fir...r-mailto-links

(Incidentally, Thunderbird mailtos started working for me after I did this!).

While I'm at it, here's how you do it for Fastmail:
http://www.emaildiscussions.com/showthread.php?p=453627

shadowsnipes 06-22-2008 11:06 PM

Quote:

Originally Posted by tronayne (Post 3191742)
By default, Firefox (and Thunderbird) don't have what you need to open links in one to the other. Here's two Java(script?) files you can add to your Firefox and Thunderbird prefs.js files so cross-links will work:
Code:

# firefox.js -- append to prefs.js file in .mozilla/firefox tree
#
# To get Thunderbird to handle mail
#
user_pref("network.protocol-handler.app.mailto","/usr/bin/thunderbird");

[...]

You should not need to do this as it is already handled by the patch in the Slackware mozilla-firefox package. Here's the thunderbird patch from the slackBuild.
Code:

zcat mozilla-firefox-thunderbird.diff.gz
--- ./defaults/pref/firefox.js.orig        2008-05-29 15:21:26.000000000 -0500
+++ ./defaults/pref/firefox.js        2008-06-17 12:17:37.000000000 -0500
@@ -385,6 +385,7 @@
 pref("browser.xul.error_pages.expert_bad_cert", false);
 
 // We want to make sure mail URLs are handled externally...
+pref("network.protocol-handler.app.mailto", "/usr/bin/thunderbird");
 pref("network.protocol-handler.external.mailto", true); // for mail
 pref("network.protocol-handler.external.news", true);  // for news
 pref("network.protocol-handler.external.snews", true);  // for secure news

Looking in about:config and setting the filter to mailto I can see something like
Code:

gecko.handlerService.schemes.mailto.0.name                        Yahoo! Mail
gecko.handlerService.schemes.mailto.0.uriTemplate                http://compose.mail.yahoo.com/?To=%s
gecko.handlerService.schemes.mailto.1.name
gecko.handlerService.schemes.mailto.1.uriTemplate
gecko.handlerService.schemes.mailto.2.name
gecko.handlerService.schemes.mailto.2.uriTemplate
gecko.handlerService.schemes.mailto.3.name
gecko.handlerService.schemes.mailto.3.uriTemplate
network.protocol-handler.app.mailto                                /usr/bin/thunderbird
network.protocol-handler.expose.mailto                                true
network.protocol-handler.external.mailto                        true
network.protocol-handler.warn-external.mailto                        false

As the Lifehacker article says, only Yahoo is setup by default. The other three (I'm sure you can add more) slots can be your gmail, etc handlers. Perhaps this feature (including the T-bird handler) doesn't work until it is turned on.

For those of you that just got this working please show your mailto about:config entries.

dugan 06-23-2008 12:05 AM

I deleted my .mozilla and .firefox directories, then downloaded the official Firefox 3 binary from mozilla.org and ran that. When I went to Edit->Preferences->Applications,there was a place to set the application to handle mailto links. When I tried to do so, Firefox crashed.

Well, okay, it froze for a few minutes (literally minutes) and then displayed then the "Select Helper Application" dialog.

Can anyone here reproduce this?

EDIT: Yes, I'm getting this consistently.

jong357 06-23-2008 12:31 PM

I build firefox 3 from source and using thunderbird as the default mailto works here. I do exactly what the slackware patch does only I echo the line to the end of firefox.js

Code:

# Make thunderbird the default mailto handler
echo '
// use Thunderbird as the default external email app
pref("network.protocol-handler.app.mailto", "/usr/bin/thunderbird");' >> \
  $PKG/usr/lib/$PKGNAME/defaults/pref/firefox.js

I use Gnome and if I haven't changed the default apps in "Prefered Applications", a mailto link will open with evolution. Once I change that, firefox starts opening thunderbird instead. So.... That might indicate that it doesn't work... ;)

Is firefox handling it or is my DE? Would seem to be the later. But, I get no crashes like dugan does. Again, I build from source tho.

kennyz 06-24-2008 06:33 AM

I maintain the Firefox3 package for Linuxpackages.net, and I am seeing the same problems with the binary release from mozilla.org on a Slackware 12.1 system.

1. Thunderbird no longer opens when I click on a mailto: URL. The preference setting in firefox.js is correct, which is:

pref("network.protocol-handler.app.mailto", "/usr/bin/thunderbird");


2. The Preferences -> Applications panel is empty.


These are probably related in some way.

I have a default Slackware 12.1 system, which is KDE only. I then built orbit2, gconf, gnome-mime-data, and gnome-vfs, since I've read some articles that indicated that those GNOME packages need to be installed.

Nothing changed. Clicking on a mailto: URL still yields nothing, and the Applications panel is still empty.

I really need to solve this, as Slackware users depend on my packages.

Where does the Applications panel retrieve its information from? How can I debug this to determine why no action is being taken when I click on a mailto: URL?

I appreciate any help you can provide.

Thanks,

Ken Zalewski

Toods 06-24-2008 08:00 AM

The 'Gtk-CRITICAL ..... errors seen when KDE is closed and reported by several people are probably related to this and someone with the 'know-how' should file a bug report on Bugzilla.

Bill.

dugan 06-24-2008 09:06 AM

The blank applications panel is a known bug:
http://bugs.gentoo.org/show_bug.cgi?id=228665

I've also read that GNOME needs to be installed, but when I built Firefox from source on a system with Gnome Slacky installed, I got the bug above. When I applied the patch and tried again, I got the crashing I mentioned in my previous post. Interestingly, I did NOT get the blank applications panel when I tried the binary from mozilla.org --- but I did get the crashes.

Daedra 06-24-2008 04:41 PM

Still searching for the answer myself. I can't find a fix either. Oh well the search continues :)

dugan 06-24-2008 05:38 PM

I'll be trying a few more tests, but I think the correct thing to do at this point is to acknowledge that Firefox 3.0 has showstopping bugs, go back to Firefox 2, and then wait for the new version of Firefox 3.


All times are GMT -5. The time now is 11:10 PM.