Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How to Control Mailto Selection in Firefox

Hybrid View

  1. #1
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    4

    Default How to Control Mailto Selection in Firefox

    What file do I use to make sure Zimbra is used when I click on a mailto link from a website being displayed by Firefox? The zdesktop.exe file doesn't work for me.

  2. #2
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    233
    Rep Power
    6

    Default

    There's a few options for this.

    There's a Firefox add-on available at https://addons.mozilla.org/en-US/fir...ddon/mailfrom/ ...though it's currently listed as Experimental and said to work only for AOL Mail, Google Mail and Yahoo Mail Classic.

    Or you could go to about:config in FF and search for gecko.handlerService.allowRegisterFromDifferentHos t , se it to true (change it back after you're done, for security reasons) and type into your FF URL bar javascript:window.navigator.registerProtocolHandle r("mailto","https://yourzimbraserver/zimbra/?view=compose&to=%s","Zimbra"); ...the next time you click on a mailto URL it should open a window to select which application to use, you select Zimbra and set it to be the default.

    In the background this is setting a few lines in the mimeTypes.rdf for the user's profile.

    My tests were done on a FF 3.6 on linux, but a customer did it in their windows desktops and it worked for them (afaik). Haven't tried it in FF 4.0.
    Last edited by odeleon; 04-07-2011 at 01:20 AM. Reason: formatting changes

  3. #3
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    233
    Rep Power
    6

    Default

    I'm sorry. I didn't realize this was posted in the ZD forum, that information applies for ZCS, I don't know if it'll work in ZD.

  4. #4
    Join Date
    Mar 2006
    Location
    Greenwood, IN
    Posts
    90
    Rep Power
    9

    Default

    Quote Originally Posted by odeleon View Post
    There's a few options for this.

    There's a Firefox add-on available at https://addons.mozilla.org/en-US/fir...ddon/mailfrom/ ...though it's currently listed as Experimental and said to work only for AOL Mail, Google Mail and Yahoo Mail Classic.

    Or you could go to about:config in FF and search for gecko.handlerService.allowRegisterFromDifferentHos t , se it to true (change it back after you're done, for security reasons) and type into your FF URL bar javascript:window.navigator.registerProtocolHandle r("mailto","https://yourzimbraserver/zimbra/?view=compose&to=%s","Zimbra"); ...the next time you click on a mailto URL it should open a window to select which application to use, you select Zimbra and set it to be the default.

    In the background this is setting a few lines in the mimeTypes.rdf for the user's profile.

    My tests were done on a FF 3.6 on linux, but a customer did it in their windows desktops and it worked for them (afaik). Haven't tried it in FF 4.0.
    FF no longer accepts execution of JS in the URL bar. Here are my steps:

    about:config
    search for "gecko.handlerService.allowRegisterFromDifferentHo st" -> double-click to set "true"
    Tools -> Web Developer -> Scratchpad
    paste: javascript:window.navigator.registerProtocolHandle r("mailto","https://yourzimbra.server.com/?view=compose&to=%s","Zimbra");
    menu: Execute -> Run
    click to allow the addition of Zimbra
    Open FF Preferences search "mail"
    For the mailto Content Type, select "Zimbra" for the Action
    Once complete, set gecko.handlerService.allowRegisterFromDifferentHos t to "false" with a double-click.

  5. #5
    Join Date
    May 2006
    Location
    London, UK
    Posts
    181
    Rep Power
    9

    Default

    Hi,

    Thanks for those steps Iggy.

    It would be great for someone to create an xpi for Zimbra, where users could simply change their Zimbra server address and not have to follow all these steps! I'll try...

    Just a typo correction, and a couple of possible different or more detailed steps for recent versions of Firefox:

    Here are the steps (tested up to Firefox 15):

    Enter the following in the address bar: about:config

    Search for "gecko.handlerService.allowRegisterFromDifferentHo st" -> double-click it to set it as "true"

    Click on Menu -> Web Developer -> Scratchpad

    Paste the following into the window that opens: javascript:window.navigator.registerProtocolHandle r("mailto","https://yourzimbra.server.com/?view=compose&to=%s","Zimbra");

    Replace https://yourzimbra.server.com with the address for your Zimbra server (ensure http or https is correctly set)

    Click menu: Execute -> Run

    In the main firefox window, you will see a dropdown request below the menu bar. Click yes to allow the addition of Zimbra links.

    Open Firefox Menu -> Preferences -> Applications

    Find 'mailto'

    In the mailto dropdown box, for Content Type, select "Zimbra" for the Action

    Once complete, enter about:config in the address bar again

    Set gecko.handlerService.allowRegisterFromDifferentHos t to "false" with a double-click.

    Mailto links from websites should now open in Zimbra

  6. #6
    Join Date
    Aug 2012
    Posts
    6
    Rep Power
    3

    Default

    I'm sure this is perfect for a Zimbra server, but do you know how we would make this work for a Zimbra Desktop installation. i.e. is there an app or even a command line equivalent to invoke a Zimbra Desktop compose window?

  7. #7
    Join Date
    Nov 2008
    Posts
    119
    Rep Power
    7

    Default

    Quote Originally Posted by inqueue View Post
    FF no longer accepts execution of JS in the URL bar. Here are my steps:

    about:config
    search for "gecko.handlerService.allowRegisterFromDifferentHo st" -> double-click to set "true"
    Tools -> Web Developer -> Scratchpad
    paste: javascript:window.navigator.registerProtocolHandle r("mailto","https://yourzimbra.server.com/?view=compose&to=%s","Zimbra");
    menu: Execute -> Run
    click to allow the addition of Zimbra
    Open FF Preferences search "mail"
    For the mailto Content Type, select "Zimbra" for the Action
    Once complete, set gecko.handlerService.allowRegisterFromDifferentHos t to "false" with a double-click.
    I found this post to be very helpful from a very "basic" webmail perspective. I have been playing around with it to make the zimbra web mail more robust and useful when clicking on a mailto url but I am not having any success. There are two mods I hope someone can help me out with.

    The first is: When clicking on a mailto url the zimbra app is loaded into the current FF tab. A better business web 2.0 web solution would be to open a new tab for the new email and not leave the original mailto url page. (I hope this makes sense) By opening a new email tab instead of using the current tab the user does not have to remember to click the back browser button to return to their original requesting page. This to me and my clients is quite important.

    The second is: An actual enhancement to the first. We have our zimbra settings set to "pop up" a new email message. My point here is, if you are logged into zimbra and you click on a mailto url that a "pop up" new mail message window would appear just like in the same manner if you were inside the zimbra app and clicked a new mail message button. Perhaps I am asking too much of the technology? LoL
    Guest Ubuntu 12.04LTS x64 and Zimbra 8.0.5
    Host CentOS 6.4 x64 :: KVM :: LVM :: Hardware RAID

  8. #8
    Join Date
    Aug 2010
    Posts
    3
    Rep Power
    5

    Default

    Quote Originally Posted by harooki2 View Post
    What file do I use to make sure Zimbra is used when I click on a mailto link from a website being displayed by Firefox? The zdesktop.exe file doesn't work for me.
    My company is having the same problem. We use Zimbra desktop. We all use the mail to function and Firefox gives you the option of selecting other for your email but there is no Zimbra file available to attach. The only other choices are gmail and yahoo. We want to track all sent messages in our Zimbra Desktop.
    I hope someone out there can contribute.

  9. #9
    Join Date
    Aug 2010
    Posts
    3
    Rep Power
    5

    Default mail to not working with Firefox

    My company is having the same problem. We use Zimbra desktop. We all use the mail to function and Firefox gives you the option of selecting other for your email but there is no Zimbra file available to attach. The only other choices are gmail and yahoo. We want to track all sent messages in our Zimbra Desktop.
    I hope someone out there can contribute.

  10. #10
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    297
    Rep Power
    8

    Default

    We don't use Zimbra Desktop (because it's an absolute beast of a program) but do use Zimbra in Firefox Prism WebApps.
    That way it's completely isolated from other Firefox windows and has its own entries in the taskbar etc.

    I've been longing to find a way to associate the mailto: handler with a Zimbra Prism webapp... as stated in my sig
    But as yet I've been unable to solve this.

    The ideal situation would be for there to be some sort of lite client application that comes with Zimbra to register/preserve the mailto handler... basically like the old toaster.

    However we're getting problems now since Prism is no longer being developed and is not supported by FF4.

    Someone, somewhere really needs to come up with a new method for creating/creating standalone WebApps.
    Be really great if all the settings for the WebApp could be provisioned from an XML file over HTTP. So if you need to change the Zimbra host/port (or the annoying webapp.ini/prefs.js settings in Prism,) it could all be done remotely.
    Chrome/Iron have an option in the menus to create a WebApp but all HTTP(S) links then open in a new Chrome/Iron window rather than in your default browser.
    My Zimbra Bugs Wishlist: 16411, 24567, 35676, 36430, 37770, 41872, 43733, 44384, 46383, 47759
    And a way to associate mailto: handlers with a Zimbra Prism webapp

Similar Threads

  1. Firefox rightclick problem
    By kcolgan in forum Users
    Replies: 11
    Last Post: 08-29-2008, 10:08 PM
  2. Problems with Firefox
    By danny.sierra@omtech.net in forum Administrators
    Replies: 9
    Last Post: 04-18-2008, 03:33 PM
  3. Zimbra features don't work on Firefox
    By vrm3 in forum Administrators
    Replies: 13
    Last Post: 04-12-2008, 08:39 AM
  4. Zimbra Help problem in Firefox
    By gkra in forum Administrators
    Replies: 1
    Last Post: 03-18-2008, 01:03 PM
  5. Possible Firefox 3 bug may cause Zimbra problems
    By iain in forum Administrators
    Replies: 5
    Last Post: 02-14-2008, 10:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •