| | |
| | | * @param resource $fp File pointer to save the message part |
| | | * @param boolean $skip_charset_conv Disables charset conversion |
| | | * @param int $max_bytes Only read this number of bytes |
| | | * @param boolean $formatted Enables formatting of text/* parts bodies |
| | | * |
| | | * @return string Part content |
| | | */ |
| | | public function get_part_content($mime_id, $fp = null, $skip_charset_conv = false, $max_bytes = 0) |
| | | public function get_part_content($mime_id, $fp = null, $skip_charset_conv = false, $max_bytes = 0, $formatted = true) |
| | | { |
| | | if ($part = $this->mime_parts[$mime_id]) { |
| | | // stored in message structure (winmail/inline-uuencode) |
| | |
| | | // get from IMAP |
| | | $this->storage->set_folder($this->folder); |
| | | |
| | | return $this->storage->get_message_part($this->uid, $mime_id, $part, NULL, $fp, $skip_charset_conv, $max_bytes); |
| | | return $this->storage->get_message_part($this->uid, $mime_id, $part, |
| | | NULL, $fp, $skip_charset_conv, $max_bytes, $formatted); |
| | | } |
| | | } |
| | | |