Mailto links

Questions about applications and software
Forum rules
Before you post please read how to get help
rmcbme
Level 1
Level 1
Posts: 5
Joined: Thu Feb 22, 2007 9:19 pm

Mailto links

Postby rmcbme » Thu Feb 22, 2007 9:25 pm

How do I get an email link in a webpage to open in thunderbird compose page?.
I am using Bianca
Thanks

User avatar
scorp123
Level 8
Level 8
Posts: 2264
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby scorp123 » Fri Feb 23, 2007 4:39 am

You mean to say that mailto: links don't open in Thunderbird automatically for you?

rmcbme
Level 1
Level 1
Posts: 5
Joined: Thu Feb 22, 2007 9:19 pm

Postby rmcbme » Fri Feb 23, 2007 6:32 pm

Yes, that is right

User avatar
scorp123
Level 8
Level 8
Posts: 2264
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby scorp123 » Sun Feb 25, 2007 7:19 pm

rmcbme wrote:Yes, that is right

There should be a file in your .mozilla subdirectory called "user.js" ... If it's not there we will have to create it, e.g.

Code: Select all

gedit ~/.mozilla/firefox/default.rku/user.js


Add this line:

Code: Select all

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


Hope this works? :?

rmcbme
Level 1
Level 1
Posts: 5
Joined: Thu Feb 22, 2007 9:19 pm

Postby rmcbme » Tue Feb 27, 2007 12:17 am

Thanks, works perfectly!!

User avatar
scorp123
Level 8
Level 8
Posts: 2264
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby scorp123 » Tue Feb 27, 2007 7:18 am

Proactive mentioning of some things:

If ever you decide you would like to switch your distribution you can take your .mozilla directory to the new installation and it should work, e.g. you wouldn't lose your bookmars etc. However, there are a few things worth mentioning:

Chances are that on whatever other distribution you might ever want to try out, Mozilla's main binary is not called "mozilla-thunderbird" but just "thunderbird".

So you'd have to rename the directory Thunderbird stores its settings in:

Code: Select all

mv ~/.mozilla-thunderbird ~/.thunderbird


Alternatively you can make everybody happy by creating a symbolic link, which would make sure that the directory can be found under both names:

Code: Select all

ln -s .mozilla-thunderbird .thunderbird


You'd then have to adjust user.js too ... e.g. change the line from:
user_pref("network.protocol-handler.app.mailto","/usr/bin/mozilla-thunderbird");

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

I had to do this when I copied my settings over from Mint to a SUSE installation ... As I said, just to mention this. 8)

User avatar
Red Knuckles
Level 1
Level 1
Posts: 24
Joined: Wed Feb 07, 2007 2:57 am

Postby Red Knuckles » Thu Apr 26, 2007 4:20 pm

In Firefox/Swiftfox you can just type 'about:config" in url line in a new tab and then type 'mailto' in Filter line in 'about:config' and in open area right click and select >New>String and add 'network.protocol-handler.app.mail to' click ok and add '/usr/bin/mozilla-thunderbird' in 'string value' and Thunderbird will automatically open from >File>Send Link. It's easier/faster to do than it sounds.

To automatically open Firefox/Swiftfox from Thunderbird:
>Edit>Preferences>Advanced>Config Editor and type 'http' in filter line and select 'network.protocol-handler.app.http' right click on it select 'Modify' and replace in 'string value'
with path to your favorite browser such as '/usr/bin/firefox' or '/usr/bin/swiftfox'. Do the same for 'https' and 'ftp'. For 'ftp' you probably will need to add preference as described above.
Thanks,
Red Knuckles
Linux Mint KDE, Ubuntu Feisty, Debian Lenny, and Gentoo 2007.0
AMD64:AMD64 X2 4800+:4x1GB DDR2
800:GeForce 6150 256MB:ASUS M2NPV-VM:2x320GB


Return to “Software & Applications”

Who is online

Users browsing this forum: No registered users and 17 guests