I tried RoundCube webmail on HTTPS site, but M$ Internet Explorer can't download attachments. It's known problem of IE, so I can fix it quickly.
In to file program/steps/mail/get.inc before line with if ($_GET['_download']) [about line 86]
add the following code:
if (isset($_SERVER['HTTPS']))
{
// We need to set the following headers to make downloads work
using IE in HTTPS mode. header('Pragma: '); header('Cache-Control: '); }
You can find more about this issue in user comments http://www.php.net/manual/en/function.fpassthru.php
But there are two things, which I don't understand:
1] Why is there condition if ($_GET['_download'])
for sending download
headers? I can't find when it is used. If I watch headers sent to the
browser in case of attachment download, it always use else
part
sending Content-Disposition: inline. Also I can't find any link with
_download in query string
2] Why are there files with .inc extension, which are not parsed by PHP interpreter by default (on many servers)? It can be potential security flaw.
At last - webmail can't be used with safe_mode=On if messages are sent by built-in php funcion mail() with fifth parameter.
But anyway - thanks for nice webmail!
Miroslav Lachman