thomascube
2010-03-02 7c9d922b96f9a88b350d6e07f5bde84ccc40f9b0
program/steps/mail/get.inc
@@ -41,6 +41,7 @@
  $MESSAGE = new rcube_message(get_input_value('_uid', RCUBE_INPUT_GET));
}
send_nocacheing_headers();
// show part page
if (!empty($_GET['_frame'])) {
@@ -66,8 +67,6 @@
    
    $browser = new rcube_browser;
    send_nocacheing_headers();
    // send download headers
    if ($_GET['_download']) {
      header("Content-Type: application/octet-stream");
@@ -93,9 +92,7 @@
    }
    else {
      // don't kill the connection if download takes more than 30 sec.
      if (!ini_get('safe_mode')) {
          set_time_limit(0);
      }
      @set_time_limit(0);
      
      $filename = $part->filename ? $part->filename : ($MESSAGE->subject ? $MESSAGE->subject : 'roundcube') . '.'.$ctype_secondary;