From 71950df6df07614300b6a79b726e7cfd61534b29 Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 13 Apr 2012 09:50:07 +0000 Subject: - Add 3rd argument to rcube_message::get_part_content() to skip charset conversion --- program/include/rcube_message.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'program') diff --git a/program/include/rcube_message.php b/program/include/rcube_message.php index 295b06ee6..ee17fcd4a 100644 --- a/program/include/rcube_message.php +++ b/program/include/rcube_message.php @@ -166,11 +166,13 @@ class rcube_message /** * Get content of a specific part of this message * - * @param string $mime_id Part MIME-ID - * @param resource $fp File pointer to save the message part + * @param string $mime_id Part MIME-ID + * @param resource $fp File pointer to save the message part + * @param boolean $skip_charset_conv Disables charset conversion + * * @return string Part content */ - public function get_part_content($mime_id, $fp=NULL) + public function get_part_content($mime_id, $fp = null, $skip_charset_conv = false) { if ($part = $this->mime_parts[$mime_id]) { // stored in message structure (winmail/inline-uuencode) @@ -181,7 +183,7 @@ class rcube_message return $fp ? true : $part->body; } // get from IMAP - return $this->storage->get_message_part($this->uid, $mime_id, $part, NULL, $fp); + return $this->storage->get_message_part($this->uid, $mime_id, $part, NULL, $fp, $skip_charset_conv); } else return null; } -- cgit v1.2.3