[Svn] r6074 - trunk/roundcubemail/program/include

trac at roundcube.net trac at roundcube.net
Fri Apr 13 11:50:07 CEST 2012


Author: alec
Date: 2012-04-13 04:50:07 -0500 (Fri, 13 Apr 2012)
New Revision: 6074

Modified:
   trunk/roundcubemail/program/include/rcube_message.php
Log:
- Add 3rd argument to rcube_message::get_part_content() to skip charset conversion


Modified: trunk/roundcubemail/program/include/rcube_message.php
===================================================================
--- trunk/roundcubemail/program/include/rcube_message.php	2012-04-13 08:52:02 UTC (rev 6073)
+++ trunk/roundcubemail/program/include/rcube_message.php	2012-04-13 09:50:07 UTC (rev 6074)
@@ -166,11 +166,13 @@
     /**
      * 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 @@
                 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;
     }



More information about the svn mailing list