diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-04-13 09:50:07 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-04-13 09:50:07 +0000 |
| commit | 6ecc360524fdb2d3bdd21e54d0ab953b56a428c2 (patch) | |
| tree | f3132f33caa2d9f18c9cd7ddbd1c6c90502359c2 /roundcubemail/program | |
| parent | d61fd77d83926d892645a15e00c3443d2a8a6368 (diff) | |
- Add 3rd argument to rcube_message::get_part_content() to skip charset conversion
git-svn-id: https://svn.roundcube.net/trunk@6074 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/rcube_message.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/roundcubemail/program/include/rcube_message.php b/roundcubemail/program/include/rcube_message.php index 295b06ee6..ee17fcd4a 100644 --- a/roundcubemail/program/include/rcube_message.php +++ b/roundcubemail/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; } |
