Embed link with custom protocol

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
vandehey
Advanced member
Advanced member
Posts: 73
Joined: Fri Sep 12, 2014 10:30 pm

Embed link with custom protocol

Post by vandehey »

Hi gang! Does anyone know how to embed a link into an HTML email, that is using a custom protocol? It looks like the built in link inserter will only format and deal with
I">http://
I would like to insert a link that has something other than http://. Like, how about inserting a link to an FTP server? ftp://servername.dom.com or something like that? When I do that and click in the link on Zimbra (5.0.9), it takes me to about:blank in firefox.
This same email in Mail.app on OSX properly opens up firefox and takes me to the FTP login that was directed from the embedded link.
Any suggestions?
-Jeff
mmorse
Ambassador
Ambassador
Posts: 6036
Joined: Fri Sep 12, 2014 10:24 pm

Embed link with custom protocol

Post by mmorse »

For others using the ZWC you can just type ftp://server.domain.com and the com_zimbra_url Zimlet will recognize it/turn it into a link. Most other other providers do something similar - and for those that don't most know to enter it in their address bar.
If you want to change the text shown so "linktype:// server.domain.com/address/path" becomes "Site Name" you could use the Notebook to do so, you can't always in the mail editor because: Bug 33333 - "Insert Link" assumes http:// prefix
Also vote for: Bug 16386 - Raw HTML Source Editor in Mail Compose
vandehey
Advanced member
Advanced member
Posts: 73
Joined: Fri Sep 12, 2014 10:30 pm

Embed link with custom protocol

Post by vandehey »

Thanks for the info Mike! I have voted for, and will follow those bugs.
dustys
Advanced member
Advanced member
Posts: 67
Joined: Fri Sep 12, 2014 10:25 pm

Embed link with custom protocol

Post by dustys »

Sounds as though we are try to do something similar, but I am running into an issue. I have modified /opt/zimbra/jetty/webapps/service/zimlet/com_zimbra_url/com_zimbra_url.xml to include our new handler.
If we type the following into a message and send it:
://
It is parsed correctly, but if the URL is embedded in an HTML message, we receive an "about:blank" in the href value in FireFox:
Text
If you view the original message's text, the URL is correct in the HTML.
Thoughts? If I run Zimbra though Firebug or Inspector in Safari, I find the regex changes I've made, but I also find references to the old regex.
Any input would be appreciated.
DJS
PhD
Advanced member
Advanced member
Posts: 68
Joined: Sat Sep 13, 2014 2:03 am

Embed link with custom protocol

Post by PhD »

id like to bump this...
we have a custom url handler that we use in our company to load video files through an application called RV - and we use rvlink:// as the protocol handler
we have just noticed now that switching to zimbra web, this url does not work for us anymore - when you hover the mouse over the text it shows as if there is a link there, but clicking on it does nothing.
is there a way to add custom url handlers in zcs7 yet?
ive added a bug report here: http://bugzilla.zimbra.com/show_bug.cgi?id=61949
AndyRich
Posts: 2
Joined: Sat Sep 13, 2014 2:34 am

Embed link with custom protocol

Post by AndyRich »

Hello all, I'd like to know if anyone ever got a clear answer or fix for this as well? I'm having the exact same problem as PhD with using rvlink:// and would love to resolve this as soon as possible as it takes away some functionality of RV. Thank you.
PhD
Advanced member
Advanced member
Posts: 68
Joined: Sat Sep 13, 2014 2:03 am

Embed link with custom protocol

Post by PhD »

I Didn't get anywhere.. I raised a support ticket in bugzilla and in the support portal and basically was told that it was not going to happen. I was escalated to their engineers who never got back to me after months of constant prodding.. Its a real shame because we have to still run a hybrid of thunderbird and zweb/desktop because we cannot click rvlink hyperlinks for RV. I tried trawling thought the jetty code but it looks like it will have to be compiled in the java source to allow it. I'm disappointed that we weren't even offered a patch or anything, as a paying network edition customer why do we pay premium support for when we can't have things like this addressed?
Maybe one day it might happen.. But been a year so far and nothing... I hope you may have better luck than I did :(
AndyRich
Posts: 2
Joined: Sat Sep 13, 2014 2:34 am

Embed link with custom protocol

Post by AndyRich »

Oh wow, that is disappointing. Thank you for replying so quickly, at least I have an answer and I can try to work around it now. I had started to hack something else together, simply a http page that redirects to a rvlink but was hoping zimbra could fix it.
Post Reply