svncommit
2007-12-10 4315b0086b14cd5266b4cb824c3bd95aa550240c
program/steps/mail/compose.inc
@@ -42,6 +42,18 @@
    }
  }
if ($_action=='display-attachment' && preg_match('/^rcmfile([0-9]+)$/', $_GET['_file'], $regs))
{
  $id = $regs[1];
  if (is_array($_SESSION['compose']['attachments'][$id]))
  {
    $apath = $_SESSION['compose']['attachments'][$id]['path'];
    header('Content-Type: ' . $_SESSION['compose']['attachments'][$id]['mimetype']);
    header('Content-Length: ' . filesize($apath));
    readfile($apath);
  }
  exit;
}
$MESSAGE_FORM = NULL;
$MESSAGE = NULL;
@@ -99,7 +111,6 @@
    {
    $_SESSION['compose']['draft_uid'] = $msg_uid;
    }
  }
/****** compose mode functions ********/
@@ -153,7 +164,6 @@
      $allow_attrib = array('id', 'class', 'style', 'size', 'tabindex');
      $field_type = 'textfield';
      break;
    }
 
  if ($fname && !empty($_POST[$fname]))
@@ -322,7 +332,6 @@
  return $out;
  }
  
function rcmail_compose_body($attrib)
@@ -683,7 +692,6 @@
  }
function rcmail_compose_attachment_form($attrib)
  {
  global $OUTPUT, $SESS_HIDDEN_FIELD;
@@ -859,7 +867,6 @@
  'receiptcheckbox' => 'rcmail_receipt_checkbox',
));
/****** get contacts for this user and add them to client scripts ********/
require_once('include/rcube_contacts.inc');
@@ -876,7 +883,6 @@
  
  $OUTPUT->set_env('contacts', $a_contacts);
  }
parse_template('compose');
?>