[horde] Imp and go.php mailto handling

Daniel A. Ramaley daniel.ramaley at DRAKE.EDU
Thu Jan 26 08:40:39 PST 2006


Using Horde 3.0.9 and Imp 4.0.4 i've found that when viewing an HTML 
e-mail that contains mailto: links the links do nothing. Imp rewrites 
the mailto: links to point to Horde's services/go.php, but go.php 
doesn't do anything with them. Do i have something misconfigured, or is 
there a fix for this?


This is what one mailto: link in a message displayed by Imp might look 
like:

https://sun12.drake.edu/services/go.php?url=mailto%3Apmx-auto-approve%252b%40puremesg.drake.edu%3Fsubject%3DRelease%2520message%2520from%2520quarantine%26body%3D%5B%2523g52aGw%5D

When i click on the link i get an empty document, with headers like so:
    HTTP/1.1 200 OK
    Date: Thu, 26 Jan 2006 14:27:12 GMT
    Server: Apache/2.0.52 (Red Hat)
    Content-Length: 0
    Connection: close
    Content-Type: text/html; charset=UTF-8

>From looking at go.php i haven't determined how it is supposed to handle 
mailto URLs (it looks like it is only meant to process more 
conventional URLs like http://). These lines in go.php are where it 
terminates when processing a mailto::
    if (empty($url) || empty($url['host'])) {
        exit;
    }
The parse_url call that happens before these lines doesn't set a host 
field for mailto: urls. It only sets the scheme, path, and query 
fields. Is there a setting i've missed that will change the mailto: 
handling so that they open up in composer?

------------------------------------------------------------------------
Dan Ramaley                            Dial Center 118, Drake University
Network Programmer/Analyst             2407 Carpenter Ave
+1 515 271-4540                        Des Moines IA 50311 USA


More information about the horde mailing list