| | |
| | | |
| | | ob_end_clean(); |
| | | |
| | | |
| | | // similar code as in program/steps/mail/show.inc |
| | | if (!empty($_GET['_uid'])) { |
| | | $uid = rcube_utils::get_input_value('_uid', rcube_utils::INPUT_GET); |
| | | $RCMAIL->config->set('prefer_html', true); |
| | | $MESSAGE = new rcube_message($uid); |
| | | $MESSAGE = new rcube_message($uid, null, intval($_GET['_safe'])); |
| | | } |
| | | |
| | | // check connection status |
| | |
| | | |
| | | exit; |
| | | } |
| | | |
| | | else if (strlen($part_id)) { |
| | | if ($part = $MESSAGE->mime_parts[$part_id]) { |
| | | $mimetype = rcmail_fix_mimetype($part->mimetype); |
| | |
| | | $sent = true; |
| | | } |
| | | else if ($part->size) { |
| | | if ($size = (int)$part->d_parameters['size']) { |
| | | header("Content-Length: $size"); |
| | | } |
| | | // Don't be tempted to set Content-Length to $part->d_parameters['size'] (#1490482) |
| | | // RFC2183 says "The size parameter indicates an approximate size" |
| | | |
| | | $sent = $MESSAGE->get_part_body($part->mime_id, false, 0, -1); |
| | | } |