Mozilla and the mailto: protocol
I'm using Mozilla as my main browser and Kmail as my email client. If I click on an email address I get the message "mailto: is not a recognized protocol". Is there a simple way to tweak Mozilla so that clicking on such a link will initiate a new message under Kmail to the correct address? Paul
Paul W. Abrahams wrote:
I'm using Mozilla as my main browser and Kmail as my email client. If I click on an email address I get the message "mailto: is not a recognized protocol". Is there a simple way to tweak Mozilla so that clicking on such a link will initiate a new message under Kmail to the correct address?
Paul
In Mozilla in the URL box, about:config, then page down to and highlight the line --- mozex.comman.mailer ----, right click and Modify. Regards Sid. -- Sid Boyce .... Hamradio G3VBV and Keen Flyer =====ALMOST ALL LINUX USED HERE, Solaris 10 SPARC is just for play=====
Paul W. Abrahams wrote:
I'm using Mozilla as my main browser and Kmail as my email client. If I click on an email address I get the message "mailto: is not a recognized
On Friday 07 January 2005 5:50 am, Sid Boyce wrote: protocol".
Is there a simple way to tweak Mozilla so that clicking on such a link will initiate a new message under Kmail to the correct address?
Paul
In Mozilla in the URL box, about:config, then page down to and highlight the line --- mozex.comman.mailer ----, right click and Modify.
Alas, about:config produces many "mailer.x.y" lines but no mosex lines. Paul
try this here is the original post that showed me how to do it http://lists.suse.com/archive/suse-linux-e/2004-Dec/0443.html FYI: google search for suse lists is SWEET! B-) On Friday 07 January 2005 08:35 am, Paul W. Abrahams wrote:
On Friday 07 January 2005 5:50 am, Sid Boyce wrote:
Paul W. Abrahams wrote:
I'm using Mozilla as my main browser and Kmail as my email client. If I
click
on an email address I get the message "mailto: is not a recognized
protocol".
Is there a simple way to tweak Mozilla so that clicking on such a link
will
initiate a new message under Kmail to the correct address?
Paul
In Mozilla in the URL box, about:config, then page down to and highlight the line --- mozex.comman.mailer ----, right click and Modify.
Alas, about:config produces many "mailer.x.y" lines but no mosex lines.
Paul
Brad Bourn wrote:
try this
here is the original post that showed me how to do it
http://lists.suse.com/archive/suse-linux-e/2004-Dec/0443.html
FYI: google search for suse lists is SWEET!
Apologies, I thought it would be the same as for firefox. Regards Sid. -- Sid Boyce .... Hamradio G3VBV and Keen Flyer =====ALMOST ALL LINUX USED HERE, Solaris 10 SPARC is just for play=====
On Friday 07 January 2005 6:40 pm, Sid Boyce wrote:
Brad Bourn wrote:
try this
here is the original post that showed me how to do it
http://lists.suse.com/archive/suse-linux-e/2004-Dec/0443.html
FYI: google search for suse lists is SWEET!
Apologies, I thought it would be the same as for firefox.
It isn't, alas -- a search for mailto on the config page comes up empty. So does anyone know how to do it under Mozilla? Paul
On Friday 07 January 2005 08:56 pm, Paul W. Abrahams wrote:
On Friday 07 January 2005 6:40 pm, Sid Boyce wrote:
Brad Bourn wrote:
try this
here is the original post that showed me how to do it
http://lists.suse.com/archive/suse-linux-e/2004-Dec/0443.html
FYI: google search for suse lists is SWEET!
Apologies, I thought it would be the same as for firefox.
It isn't, alas -- a search for mailto on the config page comes up empty.
So does anyone know how to do it under Mozilla? I noticed my 9.2 mozilla (1.7.2?) didn't have any mailto already made. Just create them yourself. I learned this in mozilla and it worked in firefox also.
you will need: network.protocol-handler.expose.mailto default boolean true network.protocol-handler.external.mailto default boolean true network.protocol-handler.app.mailto user set string kmail To do that, right click anywhere in the window body > new > boolean use network.protocol-handler.expose.mailto for the name and set to true. Then do one for network.protocol-handler.external.mailto For the last one, right click anywhere in the window body > new > string use network.protocol-handler.app.mailto for the name and kmail for the string value. That should get the job done for you For those interested, here is a pretty good list of preference you can mess with. http://preferential.mozdev.org/preferences.html Have fun Doug
On Friday 07 January 2005 10:15 pm, Doug B wrote:
I noticed my 9.2 mozilla (1.7.2?) didn't have any mailto already made. Just create them yourself. I learned this in mozilla and it worked in firefox also.
you will need: network.protocol-handler.expose.mailto default boolean true network.protocol-handler.external.mailto default boolean true network.protocol-handler.app.mailto user set string kmail
To do that, right click anywhere in the window body > new > boolean use network.protocol-handler.expose.mailto for the name and set to true.
Then do one for network.protocol-handler.external.mailto
For the last one, right click anywhere in the window body > new > string use network.protocol-handler.app.mailto for the name and kmail for the string value.
That should get the job done for you
I followed your recipe but still get the message "mailto is not a registered protocol" when I click on a mailto link. The entries you recommend are visible under about:config, except that the first two are indicated as "user" rather than as "default", with no obvious way to change that. I assume that doesn't matter. Paul
Eureka! I finally found the answer on how to do this with Mozilla via google: http://www.linux-knowledge-portal.org/en/content.php?&content/desktop/fb_mailto.html And it works for me! Now the question is how to do the same thing with the man: protocol so that I can view man pages under Mozilla as I do with Konqueror. Paul
On Saturday 08 January 2005 05:39 pm, Paul W. Abrahams wrote:
Eureka! I finally found the answer on how to do this with Mozilla via google:
http://www.linux-knowledge-portal.org/en/content.php?&content/desktop /fb_mailto.html
And it works for me!
Now the question is how to do the same thing with the man: protocol so that I can view man pages under Mozilla as I do with Konqueror.
Great! The other has worked fine for me on mozilla since I started with SuSE 9.0 and with Firefox since I started using it in 9.1. Don't know why they wouldn't work for you, but at least you found a solution that did! Doug
On Friday 07 January 2005 22:15, Doug B wrote:
I noticed my 9.2 mozilla (1.7.2?) didn't have any mailto already made. Just create them yourself. I learned this in mozilla and it worked in firefox also.
you will need: network.protocol-handler.expose.mailto default boolean true network.protocol-handler.external.mailto default boolean true network.protocol-handler.app.mailto user set string kmail
To do that, right click anywhere in the window body > new > boolean use network.protocol-handler.expose.mailto for the name and set to true.
Then do one for network.protocol-handler.external.mailto
For the last one, right click anywhere in the window body > new > string use network.protocol-handler.app.mailto for the name and kmail for the string value.
That should get the job done for you
Thanks, Didn't have the mailto protocol in my Firefox and followed your instructions. Now working, however.....I made an entry into about:config that is incorrect. Don't know how to get rid of it. Don't seem to be able to delete it. HELP !!! Bob S.
On Sunday 09 January 2005 02:07 am, B. Stia wrote:
Thanks,
Didn't have the mailto protocol in my Firefox and followed your instructions. Now working, however.....I made an entry into about:config that is incorrect. Don't know how to get rid of it. Don't seem to be able to delete it. HELP !!!
I don't know of a way from the about:config window, but the entries are stored in ~/.mozilla/default/<unique>.slt/prefs.js The comments at the top of the file say don't edit, but the reason seems to be if you have the browser open, the file will be regenerated and your changes overwritten. I haven't tried this but you should be able to close all mozilla instances, delete the line and save the file, then open the browser. Probably should backup prefs.js first just to be safe. Doug
On Sunday 09 January 2005 9:43 am, Doug B wrote:
On Sunday 09 January 2005 02:07 am, B. Stia wrote:
Thanks,
Didn't have the mailto protocol in my Firefox and followed your instructions. Now working, however.....I made an entry into about:config that is incorrect. Don't know how to get rid of it. Don't seem to be able to delete it. HELP !!!
I don't know of a way from the about:config window, but the entries are stored in ~/.mozilla/default/<unique>.slt/prefs.js
The inability to delete entries in about:config via that window does seem to be a design omission that they ought to fix. A worse aspect of that problem is that if you inadvertently create an entry as "boolean", there's no way to turn it into "string" (or vice versa) later. My impression is that extraneous or meaningless entries do no harm. Paul
On Sunday 09 January 2005 12:03, Paul W. Abrahams wrote:
On Sunday 09 January 2005 9:43 am, Doug B wrote:
On Sunday 09 January 2005 02:07 am, B. Stia wrote:
Thanks,
Didn't have the mailto protocol in my Firefox and followed your instructions. Now working, however.....I made an entry into about:config that is incorrect. Don't know how to get rid of it. Don't seem to be able to delete it. HELP !!!
I don't know of a way from the about:config window, but the entries are stored in ~/.mozilla/default/<unique>.slt/prefs.js
The inability to delete entries in about:config via that window does seem to be a design omission that they ought to fix. A worse aspect of that problem is that if you inadvertently create an entry as "boolean", there's no way to turn it into "string" (or vice versa) later. My impression is that extraneous or meaningless entries do no harm.
Thanks Doug & Paul. Edited prefs.js and all is well. One gets to learn more every day. Bob S.
Paul, On Thursday 06 January 2005 19:53, Paul W. Abrahams wrote:
I'm using Mozilla as my main browser and Kmail as my email client. If I click on an email address I get the message "mailto: is not a recognized protocol". Is there a simple way to tweak Mozilla so that clicking on such a link will initiate a new message under Kmail to the correct address?
I found this page to contain just about everything I needed to know: http://linux.sgms-centre.com/howto/mozilla.php. I used that information (and the mailto: URL at the bottom of the page for testing) to craft this basic script to use as the intermediary between Mozilla and KMail. It handles mailto: URLs that include "subject=" and / or "body=" parameters. You may or may not want the "mailto-invoke" log file. Just get rid of the echos and redirection if you don't. You need BASH and Perl for this to work, which should be available in virtually all Linux installations. -==- #!/bin/bash --norc # mailto:gstewart@sgms-centre.com?subject=Mozilla%20external%20mailer urlDecode() { for arg; do echo "$arg" |perl -e '$urlEncoded = <STDIN>; $urlEncoded =~ s/%([A-Fa-f\d]{2})/chr hex $1/eg; print $urlEncoded' done } mailArg="$1" ( echo "-==-" case "$mailArg" in *\?*) recipient="${mailArg%\?*}" extras="${mailArg#*\?}" ;; *) recipient="$mailArg" esac case "$extras" in *subject=*) subject="${extras#*subject=}" subject="${subject%&*}" subject="$(urlDecode "$subject")" ;; esac case "$extras" in *body=*) body="${extras#*body=}" body="${body%&*}" body="$(urlDecode "$body")" ;; esac kmailInvoke=(kmail --composer "$recipient") if [ "$subject" ]; then kmailInvoke=( "${kmailInvoke[@]}" --subject "$subject" ) fi if [ "$body" ]; then kmailInvoke=( "${kmailInvoke[@]}" --body "$body" ) fi echo "recipient=$recipient" echo "extras=$extras" echo "subject=$subject" echo "body=$body" echo "invoke=${kmailInvoke[@]}" echo "-==-" exec "${kmailInvoke[@]}" ) >>$HOME/mailto-invoke \ 2>&1 -==-
Paul
Randall Schulz
On Friday 07 January 2005 4:16 pm, Randall R Schulz wrote:
Paul,
On Thursday 06 January 2005 19:53, Paul W. Abrahams wrote:
I'm using Mozilla as my main browser and Kmail as my email client. If I click on an email address I get the message "mailto: is not a recognized protocol". Is there a simple way to tweak Mozilla so that clicking on such a link will initiate a new message under Kmail to the correct address?
I found this page to contain just about everything I needed to know: http://linux.sgms-centre.com/howto/mozilla.php.
Perhaps -- but when I try to go there I get an "access denied" message. Somehow it thinks I'm a spammer, it seems. Paul
participants (6)
-
B. Stia
-
Brad Bourn
-
Doug B
-
Paul W. Abrahams
-
Randall R Schulz
-
Sid Boyce