[imp] displaying images in embedded html on SSL hosts
Jan Schneider
jan@horde.org
Wed, 16 Jan 2002 23:15:54 +0100
Zitat von Liam Hoekenga <liamr@umich.edu>:
> hey guys -
>
> our IMP installation is on a secure webserver. we've enabled the display
> of
> inline html - mainly to allow people to read messages from hotmail and
> such w/o
> having to spawn a separate window (as hotmail's messages all seem to show
> up as
> html attachments).
>
> anyways... we get the broken key icon for <img
> src="http://blah.com/blah.jpg">
> tags in said html email messages (as secure web pages don't want to
> display
> images located on non-secure sites)... we commonly see this in messages
> like the
> "advertising circulars" sent out by buy.com, amazon, etc (when they
> choose to
> send you "html" email instead of plain text).
>
> on normal, secured websites, we normally display graphics from non-secure
> sites
> by using a cgi wrapper (we call image):
>
>
> #!/bin/csh
>
> if ($?PATH_INFO) then
>
> echo "Location: `echo $PATH_INFO | cut -c2-2048`"
>
> else if ($?QUERY_STRING) then
>
> echo "Location: $QUERY_STRING"
>
> endif
> echo ""
>
> and our image src tags look like:
>
> <img src="/cgi-bin/image?http://www.blah.com/blah.jpg">
>
> might it be possible to have IMP do something similar if HORDE is told
> to
> generate https URLS?
I think, that shouldn't be to much work. view.php could handle the
redirection and someone has to write a regexp for the HTML MIME viewer.
Patch?
Jan.
--
::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::