Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
custom protocol handler
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mitch Claborn  
View profile  
 More options Jun 15 2009, 11:51 am
Newsgroups: mozilla.dev.apps.thunderbird
From: Mitch Claborn <mi...@claborn.net>
Date: Mon, 15 Jun 2009 10:51:16 -0500
Local: Mon, Jun 15 2009 11:51 am
Subject: custom protocol handler
How can I define a custom protocol handler in Thunderbird to call an
external program when a specially formatted link is clicked in an HTML
email?

I generate some HTML reports that are emailed.  I want to have clickable
links in the reports that will take various actions on a web server
without opening a browser.  My thought was to create a link like
    abcd://localhost:9999/do_something
so that when user clicks the link it will call the external program
which can do whatever I want (like a wget to call the webserver).  So I
need to somehow tell Thunderbird to call a specific external program to
handle the abcd protocol.

Any ideas?

Mitch


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Mosedale  
View profile  
 More options Jun 15 2009, 1:21 pm
Newsgroups: mozilla.dev.apps.thunderbird
From: Dan Mosedale <dm...@mozillamessaging.com>
Date: Mon, 15 Jun 2009 10:21:25 -0700
Local: Mon, Jun 15 2009 1:21 pm
Subject: Re: custom protocol handler
On 6/15/09 8:51 AM, Mitch Claborn wrote:

> My thought was to create a link like
>      abcd://localhost:9999/do_something
> so that when user clicks the link it will call the external program
> which can do whatever I want (like a wget to call the webserver).  So I
> need to somehow tell Thunderbird to call a specific external program to
> handle the abcd protocol.

> Any ideas?

Thunderbird just asks the OS about protocol handlers, so you need to
have your program register itself as a handler for a specific URL scheme
with the appropriate system service API in Windows, OS X, or GNOME.

Dan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Bucksch  
View profile  
 More options Jun 15 2009, 5:38 pm
Newsgroups: mozilla.dev.apps.thunderbird
From: Ben Bucksch <ben.bucksch.n...@beonex.com>
Date: Mon, 15 Jun 2009 23:38:11 +0200
Local: Mon, Jun 15 2009 5:38 pm
Subject: Re: custom protocol handler
On 15.06.2009 17:51, Mitch Claborn wrote:

> How can I define a custom protocol handler in Thunderbird to call an
> external program when a specially formatted link is clicked in an HTML
> email?

> I generate some HTML reports that are emailed.  I want to have clickable
> links in the reports that will take various actions on a web server
> without opening a browser.  My thought was to create a link like
>      abcd://localhost:9999/do_something
> so that when user clicks the link it will call the external program
> which can do whatever I want (like a wget to call the webserver).  So I
> need to somehow tell Thunderbird to call a specific external program to
> handle the abcd protocol.

As dmose said, TB looks at the OS for URL schemes it doesn't know, like
abcd:. In Windows, it's in the registry, next to the file extensions.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Bucksch  
View profile  
 More options Jun 15 2009, 5:38 pm
Newsgroups: mozilla.dev.apps.thunderbird
From: Ben Bucksch <ben.bucksch.n...@beonex.com>
Date: Mon, 15 Jun 2009 23:38:11 +0200
Local: Mon, Jun 15 2009 5:38 pm
Subject: Re: custom protocol handler
On 15.06.2009 17:51, Mitch Claborn wrote:

> How can I define a custom protocol handler in Thunderbird to call an
> external program when a specially formatted link is clicked in an HTML
> email?

> I generate some HTML reports that are emailed.  I want to have clickable
> links in the reports that will take various actions on a web server
> without opening a browser.  My thought was to create a link like
>      abcd://localhost:9999/do_something
> so that when user clicks the link it will call the external program
> which can do whatever I want (like a wget to call the webserver).  So I
> need to somehow tell Thunderbird to call a specific external program to
> handle the abcd protocol.

As dmose said, TB looks at the OS for URL schemes it doesn't know, like
abcd:. In Windows, it's in the registry, next to the file extensions.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mitch Claborn  
View profile  
 More options Jun 16 2009, 11:02 am
Newsgroups: mozilla.dev.apps.thunderbird
From: Mitch Claborn <mi...@claborn.net>
Date: Tue, 16 Jun 2009 10:02:53 -0500
Local: Tues, Jun 16 2009 11:02 am
Subject: Re: custom protocol handler
Here is what worked for me (Linux / Suse)

gconftool-2 -s /desktop/gnome/url-handlers/mmmm/command 'mm_launch_app
%s' --type String
gconftool-2 -s /desktop/gnome/url-handlers/mmmm/enabled --type Boolean true
gconftool-2 -s /desktop/gnome/url-handlers/mmmm/needs_terminal --type
Boolean false

gconftool-2 -a /desktop/gnome/url-handlers/mmmm


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »