[imp] MAPI calls for mailto: links

Jan Schneider jan at horde.org
Mon Jul 5 08:52:48 PDT 2004


Zitat von Thomas Gereke <list at thomasgereke.de>:

> the hint on scripts/Imp.reg didn't work for me (first) -> see the other
> thread.
> So I tested a bit and find the following:
>
> In Firefox (and IE too) when clicking on an email address they use
> HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\*\Protocols\mailto\shell\open\command
> to open the mail program.
>
> The send option in explorer (send to->email) uses the simple MAPI.
>
> So I programmed a little DLL which ignores all simple MAPI calls except for
> sending mails. See http:/www.thomasgereke.de/ImpMAPI.zip for source, dll and
> registry files. The DLL is written in C and compiled with MinGW. The DLL must
> be copied to the System32 directory or the path in the reg file to it must be
> added.
>
> Now the click on an email works. And send to->email opens the compose
> window. I
> was wondering that when I'm not login there is a special login window which
> shows the email data and gives it then to the new compose screen. Fine!

Nice!

> What did not work jet is to add an attachment. When using send to->email the
> filename is appended as '&upload_1=drive:/path/filename' but it seems this is
> ignored. Would be nice if it is possible to add attachments. Or is there
> another way?

No. File uploads only work with multipart/form-data POST forms and can't be
passed by GET parameters.

>> I do not know if this is possible. It's a tricky problem.
>> How do you handle mailto: links when using web based email systems?
>>
>> Microsoft do offer hotmail as the internet prefs default mailer,
>> however you still have to login to send email.
>>
>> Mozilla adds some registry keys to the windows registry to allow it to be
>> the default mail app. It would be nice to have a similar .dll which
>> causes the default web browser to open on a given URL when a mailto
>> is clicked. eg the Horde/IMP login page.
>>
>> Or even better, would be a .dll which redirects to a given
>> non-authenticated compose page in Horde/IMP. So people can click
>> on a mailto: which opens a compose window. They could then (as part of
>> the compose window) authenticate to send the email.



Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting.php


More information about the imp mailing list