Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-01-2008, 09:46 AM
Moderator
 
Posts: 1,554
Default correct mailto handler without toaster

we want to fix the mailto handling to have it open zimbra with the new mail. I know there was a blog post about a registry edit to do it but the only problem is that it passed the mailto: portion as well. I noticed that if you install the toaster, that it passes only the address.

My question is, is this something that toaster is doing? or can we achieve teh same functionality without toaster with a registry edit. The toaster confuses people more than it helps them here.
Reply With Quote
  #2 (permalink)  
Old 07-01-2008, 04:08 PM
Trained Alumni
 
Posts: 70
Default

I have accomplished this by writing a little php script that cleans up the link, and then does a redirect to your server. So your registry setting points to wherever you host the php script with the ?command=%1 and then the following code will clean up what is passed in "command"..
Code:
<?php
        $mail_domain="http://mail.domain.com";
        $mail_cmd="?app=mail&view=compose";
        $NEW=split (":",$_GET['command']);
        $cmd="to=".$NEW[1];
        $cmd=str_replace("?","&",$cmd);
        $url=$mail_domain.'/'.$mail_cmd.'&'.$cmd;
        header ("Location: $url");
?>
Reply With Quote
  #3 (permalink)  
Old 07-01-2008, 04:10 PM
Moderator
 
Posts: 1,554
Default

ah pretty clever. i run a separate apache instance on my zimbra server so I can probably do it there. I guess the toaster app "sanitizes" the link and passes it to web client. thanks for sharing!
Reply With Quote
  #4 (permalink)  
Old 12-17-2008, 07:16 AM
Intermediate Member
 
Posts: 22
Default

That PHP script works great, but is there anyway to get it to work correctly with the "Send Link..." handler?

It seems to leave out everything in the link but "http".
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.