The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Thuderbird - open hyperlinks in your browser
Author: Dan 
Date:   10-01-08 14:56

Credit to http://justlinux.com/forum/archive/index.php/t-122577.html for the basis of this tip.

When using Thunderbird for my email, I want to click on hyperlinks and have it open in my browser. Specifcally, in Opera. This solution will work for any browser, provided you know the trick for your browser.

I am using Thunderbird 2.0.0.9 (20071207). Hopefully the menu links will not vary much over time.

Edit | Preferences | Advanced | General

You should see a button for Config Editor. Click it.

You should now see a list of Preference Names. In the Filter field, type app.http. This should filter out the irrelevant items and leave you with the items related to http applications:

network.protocol-handler.app.http
network.protocol-handler.app.https

You may have to add these items manually. If so, right click in the preference pane and select: New | String.

For the preference name, specify: network.protocol-handler.app.http
For the string value, supply: /home/dvl/.thunderbird/opera_links

Adjust the contents of /home/dan/.thunderbird/opera_links to suit your username. For that matter, you could name the file firefox_links. :)

Repeat this process to add network.protocol-handler.app.https so you can view https:// links. Both preference items will have the same string value.

The contents of /home/dvl/.thunderbird/opera_links appears at the end of this post. Remember to chmod +x this file.

#!/bin/sh

# adjust this path for your install of Opera
OPERA="/Programs/Opera9.23/bin/opera"

# Choose how to open new links
OPENMODE="new-page"
#OPENMODE="new-window"

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

# try xremote first and if it doesn't work, start a
# new instance of Opera
${OPERA} -remote "openURL($url,$OPENMODE)" || ${OPERA} $url &

--
Webmaster

Post Edited (10-01-08 15:00)

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Thuderbird - open hyperlinks in your browser   new
Dan 10-01-08 14:56 
 Re: Thuderbird - open hyperlinks in your browser   new
Dan 14-01-08 01:34 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org