Results 1 to 4 of 4

Thread: correct mailto handler without toaster

  1. #1
    bdial's Avatar
    bdial is offline Moderator
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    10

    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.

  2. #2
    alexkelly is offline Trained Alumni
    Join Date
    Oct 2007
    Location
    Columbus, OH
    Posts
    70
    Rep Power
    7

    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");
    ?>

  3. #3
    bdial's Avatar
    bdial is offline Moderator
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    10

    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!

  4. #4
    starcenterlr Guest

    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".

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. support for Firefox 3 mailto protocol handler?
    By ScottChapman in forum Developers
    Replies: 19
    Last Post: 05-21-2012, 07:13 PM
  2. [SOLVED] Toaster? Mailto?
    By quietas in forum Users
    Replies: 7
    Last Post: 12-18-2008, 04:35 PM
  3. IMAP POP3/IMAP Asking Password while authentication.
    By uscell in forum Administrators
    Replies: 2
    Last Post: 12-18-2007, 03:10 AM
  4. can't you help me
    By iwan siahaan in forum Administrators
    Replies: 6
    Last Post: 12-17-2007, 06:53 PM
  5. POP3 server dies every hour
    By jdossey7 in forum Administrators
    Replies: 12
    Last Post: 09-27-2007, 01:14 PM

Posting Permissions

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