General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Default mailto won't allow me to use zoho webmail.
Posted by: noalternative
Date: July 06, 2015 01:59PM

I added https://zmail.zoho.com/mail/compose.do?extsrc=mailto&mode=compose&tp=zb&ct=%1

to menu/tools/mail and news/configure mail, but when I click a mailto: link it tries to open outlook express.



Edited 1 time(s). Last edit at 07/06/2015 01:59PM by noalternative.

Options: ReplyQuote
Re: Default mailto won't allow me to use zoho webmail.
Posted by: rodocop
Date: July 06, 2015 03:18PM

read this thread to the end.

You may need manual editing mimetypes.rdf for your needs (add an entry using Gmail one as template)

Options: ReplyQuote
Re: Default mailto won't allow me to use zoho webmail.
Posted by: noalternative
Date: July 06, 2015 07:55PM

That is completely over my head. HOw am I suppose to use gmail as a template?

Options: ReplyQuote
Re: Default mailto won't allow me to use zoho webmail.
Posted by: siria
Date: July 06, 2015 08:41PM

Just curious, try a trick that someone else reported to work, but only 1 person did it so far:
if you still have IE on the system, configure this to use this webmail.
Afterwards KM may automatically use that too - if it works...

Options: ReplyQuote
Re: Default mailto won't allow me to use zoho webmail.
Posted by: noalternative
Date: July 07, 2015 04:19PM

Unfortunately this involves adding it to xp itself. Unfortunately this involves adding some settng to regedit, and my regedit isn't allowing me to add custom settings. The options for new key are greyed out. https://www.zoho.com/mail/help/defaultcomposer.html
Zoho does have a way to add it to firefox, in about:preferences, but kmeleon isn't cooperating.

I guess I will just have to cut a paste. However it looks like it would easy for the developers to allow the installation of the addon.

Options: ReplyQuote
Re: Default mailto won't allow me to use zoho webmail.
Posted by: siria
Date: July 07, 2015 06:50PM

Ah pity. Of course, if someone doesn't have enough admin rights it's a prob...
I do hope it will get fixed, but meanwhile, rather than copy-pasting, you could use a few lines of macro code to open zoho when clicking a mailto-link together with a keyboard shortcut (Ctrl+Shift+Leftclick or +Middleclick? anything?), or when right-clicking on a link and find Zoho in the popup menu - if you like? Still bothersome, but perhaps a little less ;-) But perhaps more savvy people will find an automatic solution soon.

Options: ReplyQuote
Re: Default mailto won't allow me to use zoho webmail.
Posted by: siria
Date: July 07, 2015 07:34PM

Hmm... My KM75 is only on an offline machine, but when I use the new way to set it to open yahoo-mail, it does try to open the yahoo page. So in theory it does seem to work with the new method, it's just not in the menus yet??

What if you go to the zoho page, the page where Firefox can add it, and then type 'about:preferences' into the URLbar, click on Applications and look what choices it offers? Does zoho appear then?



Edited 1 time(s). Last edit at 07/07/2015 07:40PM by siria.

Options: ReplyQuote
Re: Default mailto won't allow me to use zoho webmail.
Posted by: rodocop
Date: July 07, 2015 08:13PM

Let's complete this 'mission impossible'.

noalternative,
follow this SIMPLE steps:

1) Close K-Meleon if opened.
2) Go to your Profile folder
3) Find file mimetypes.rdf
4) open it by any plain text editor
5) find a block looking like this
<RDFgrinning smileyescription RDF:about="urn:scheme:handler:mailto"
                   NC:alwaysAsk="false">
<NC:possibleApplication RDF:resource="urn:handler:web:https://compose.mail.yahoo.com/?To=%s"/>;
<NC:possibleApplication RDF:resource="urn:handler:web:https://mail.google.com/mail/?extsrc=mailto&amp;url=%s"/>;
<NC:externalApplication RDF:resource="urn:scheme:externalApplication:mailto"/>
6) add next line (I'll give it red colour here - just to help you) in order the block to look so:
<RDFgrinning smileyescription RDF:about="urn:scheme:handler:mailto"
                   NC:alwaysAsk="false">
<NC:possibleApplication RDF:resource="urn:handler:web:https://compose.mail.yahoo.com/?To=%s"/>;
<NC:possibleApplication RDF:resource="urn:handler:web:https://mail.google.com/mail/?extsrc=mailto&amp;url=%s"/>;
<NC:possibleApplication RDF:resource="urn:handler:web:https://mail.zoho.com/mail/compose.do?extsrc=mailto&amp;mode=compose&amp;tp=zb&amp;ct=%s"/>
<NC:externalApplication RDF:resource="urn:scheme:externalApplication:mailto"/>
=> HINT: you can copy all the new block from here (be sure you have selected all the text to the right!!!) and replace the old one there.

7) Find in your file code block:
<RDFgrinning smileyescription RDF:about="urn:handler:web:https://compose.mail.yahoo.com/?To=%s";
                   NC:prettyName="Yahoo! Mail"
                   NC:uriTemplate="https://compose.mail.yahoo.com/?To=%s"; />
8) Replace it with the next code block:
<RDFgrinning smileyescription RDF:about="urn:handler:web:https://compose.mail.yahoo.com/?To=%s";
                   NC:prettyName="Yahoo! Mail"
                   NC:uriTemplate="https://compose.mail.yahoo.com/?To=%s"; />
<RDFgrinning smileyescription RDF:about="urn:handler:web:https://mail.zoho.com/mail/compose.do?extsrc=mailto&amp;mode=compose&amp;tp=zb&amp;ct=%s";
                   NC:prettyName="ZohoMail"
                   NC:uriTemplate="https://mail.zoho.com/mail/compose.do?extsrc=mailto&amp;mode=compose&amp;tp=zb&amp;ct=%s"; />

NB! You should understand that we've just added 3 lines block with ZohoMail description.

9) save changes in mimetypes.rdf

10) run K-Meleon
11) open about:preferences page. Go to 'Applications' tab.
12) find 'mailto'-line in the list. You'll probably find it locked.

13) Don't give up! ;-)

14) select any OTHER line in the list and see that corresponding drop-down at the right gets active
15) now simply reload the page - and now 'mailto' gets active too!!!

16) select ZohoMail in the list.

You've done it! Now clicking on the mailto: links will bring you to the ZohoMail composer!



Well, it seems to be the long way but it really takes less your time than I spend to make my little research ahead and write this instruction ;-)



Edited 1 time(s). Last edit at 07/07/2015 08:14PM by rodocop.

Options: ReplyQuote
Re: Default mailto won't allow me to use zoho webmail.
Posted by: rodocop
Date: July 07, 2015 08:32PM

ATTENTION, DEVELOPERS!!! (localizers, all who creates any stuff for KM - as well as power and curious users)

There is another way to do this.

It's simpler and quicker but it includes some specific steps like editing files inside browser\omni.ja

If you do know how to handle this file (it's just an zip-type archive) - you can follow this instruction (I prefer use Total Commander to hack omni.ja)

1) get into browser\omni.ja and find the file chrome\en-US\locale\browser-region\region.properties
2) open it by any preferrable plain text editor
3) find there next code block:
# The default set of protocol handlers for mailto:
gecko.handlerService.schemes.mailto.0.name=Yahoo! Mail
gecko.handlerService.schemes.mailto.0.uriTemplate=https://compose.mail.yahoo.com/?To=%s
gecko.handlerService.schemes.mailto.1.name=Gmail
gecko.handlerService.schemes.mailto.1.uriTemplate=https://mail.google.com/mail/?extsrc=mailto&url=%s
4) Replace any of mailto-handlers with your preferrable web-mail (you need to change 2 lines - name and uriTemplate !). Here we'll use ZohoMail.
# The default set of protocol handlers for mailto:
gecko.handlerService.schemes.mailto.0.name=ZohoMail
gecko.handlerService.schemes.mailto.0.uriTemplate=https://mail.zoho.com/mail/compose.do?extsrc=mailto&amp;mode=compose&amp;tp=zb&amp;ct=%s
gecko.handlerService.schemes.mailto.1.name=Gmail
gecko.handlerService.schemes.mailto.1.uriTemplate=https://mail.google.com/mail/?extsrc=mailto&url=%s
or
add your webmail using code above as template:
# The default set of protocol handlers for mailto:
gecko.handlerService.schemes.mailto.0.name=Yahoo! Mail
gecko.handlerService.schemes.mailto.0.uriTemplate=https://compose.mail.yahoo.com/?To=%s
gecko.handlerService.schemes.mailto.1.name=Gmail
gecko.handlerService.schemes.mailto.1.uriTemplate=https://mail.google.com/mail/?extsrc=mailto&url=%s
gecko.handlerService.schemes.mailto.2.name=ZohoMail
gecko.handlerService.schemes.mailto.2.uriTemplate=https://mail.zoho.com/mail/compose.do?extsrc=mailto&amp;mode=compose&amp;tp=zb&amp;ct=%s
5) save the file and repack it back into omni.ja replacing the old one.
6) run K-Meleon
7) go to about:preferences - Applications
8) select your new webmail in the mailto: drop-down - IT SHOULDN'T BE LOCKED this way!!!

Done!!!

Options: ReplyQuote
Re: Default mailto won't allow me to use zoho webmail.
Posted by: siria
Date: July 07, 2015 10:17PM

Impressing, and very glad you figure all this out, but frankly:
That mass of code without any visible structure looks so scaring, I wouldn't dare to touch it either :cool:

The only way I see: create a ready-made rdf-file and post it here as attachment?
The other stuff, getting the locked state off, sounds feasable, just not the editing... let alone omni.ja...

Options: ReplyQuote
Re: Default mailto won't allow me to use zoho webmail.
Posted by: siria
Date: July 08, 2015 12:10AM

@noalternative:
Do me a little favor? Checking if that little macro
http://kmeleonbrowser.org/forum/read.php?9,134374
indeed redirects to the compose page and fills out the fields, when using the link menu?
Have no account there, so not sure if really all works right...

Here's a page with test links:
www.computerhope.com/issues/ch000056.htm

Options: ReplyQuote
Re: Default mailto won't allow me to use zoho webmail.
Posted by: rodocop
Date: July 08, 2015 08:10AM

wow, siria!

Your solution is really more user-friendly! Great!

What is the most valuable feature of KM - most things could be made different ways.

Options: ReplyQuote
Re: Default mailto won't allow me to use zoho webmail.
Posted by: adodupan
Date: July 08, 2015 11:19AM

These few lines will add and set Zoho as default mailto handler.
Paste code in error console:
var name = 'Zoho',
url = 'http://mail.zoho.com/mail/compose.do?extsrc=mailto&mode=compose&tp=zb&ct=%s';,
handlerService = Components.classes['@mozilla.org/uriloader/handler-service;1']
  .getService(Components.interfaces.nsIHandlerService),
handlerInfo = Components.classes['@mozilla.org/uriloader/external-protocol-service;1']
  .getService(Components.interfaces.nsIExternalProtocolService)
  .getProtocolHandlerInfo('mailto'),
handlers = handlerInfo.possibleApplicationHandlers.enumerate(), handler;
while (handlers.hasMoreElements()) {
  handler = handlers.getNext().QueryInterface(Components.interfaces.nsIWebHandlerApp);
  if (handler.uriTemplate == url) {
    throw new Error(
      'Already registered application' + '\n' +
      'Application url: ' + (handler.uriTemplate) + '\n' +
      'Application name: ' + (handler.name));
  }
}
handler.name = name;
handler.uriTemplate = url;
handlerInfo.alwaysAskBeforeHandling = false;
handlerInfo.preferredApplicationHandler = handler;
handlerInfo.preferredAction = 2;
handlerInfo.possibleApplicationHandlers.appendElement(handler, false);
handlerService.store(handlerInfo);
For others mailto handlers you should replace values in first two lines.

Options: ReplyQuote
Re: Default mailto won't allow me to use zoho webmail.
Posted by: zoho-zbrains
Date: October 13, 2016 05:57AM

.



Edited 1 time(s). Last edit at 10/13/2016 05:58AM by zoho-zbrains.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.