I have finaly found a sollution that apears to work for my problem with the way round cube and IE works with mime attachments could some one test the patch and submit it to the repo thanks
-Chris


The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or
other use of, or taking of any action in reliance upon, this information
by persons or entities other than the intended recipient is prohibited.
If you received this in error, please contact the sender and delete this
material from any computer.

In accordance with industry regulations, all messages are retained and are subject to monitoring. This message has been scanned for viruses and dangerous content and is believed to be clean. Securities offered through Cantella & Co., Inc., Member NASD/SIPC. Home Office: 2 Oliver Street, 11th Floor, Boston, MA 02109
Telephone: (617)521-8630

Index: program/steps/mail/get.inc
===================================================================
--- program/steps/mail/get.inc  (revision 502)
+++ program/steps/mail/get.inc  (working copy)
@@ -67,15 +67,26 @@
     if ($_GET['_download'])
       {
       // send download headers
-      header("Content-Type: application/octet-stream");
-      header(sprintf('Content-Disposition: attachment; filename="%s"',
-                     $filename ? rcube_imap::decode_mime_string($filename) : 
"roundcube.$ctype_secondary"));
-      }
+       header("Pragma: public");
+       header("Expires: 0");
+       header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
+       header("Cache-Control: private",false);
+       header("Content-Type: application/octet-stream");
+        header(sprintf('Content-Disposition: attachment; filename="%s";',
+       $filename ? rcube_imap::decode_mime_string($filename) : 
"roundcube.$ctype_secondary"));
+       header("Content-Transfer-Encoding: binary");
+}
+
+
     else
       {
-      header("Content-Type: $mimetype");
-      header(sprintf('Content-Disposition: inline; filename="%s"', 
rcube_imap::decode_mime_string($filename)));
-      }
+        header("Expires: 0");
+        header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
+        header("Cache-Control: private",false);
+        header("Content-Type: $mimetype");
+        header("Content-Transfer-Encoding: binary");
+        header(sprintf('Content-Disposition: attachment; filename="%s";', 
rcube_imap::decode_mime_string($filename)));
+}
 
     // We need to set the following headers to make downloads work using IE in 
HTTPS mode.
     if (isset($_SERVER['HTTPS']))

Reply via email to