Changeset 6074 in subversion


Ignore:
Timestamp:
Apr 13, 2012 5:50:07 AM (14 months ago)
Author:
alec
Message:
  • Add 3rd argument to rcube_message::get_part_content() to skip charset conversion
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_message.php

    r6073 r6074  
    167167     * Get content of a specific part of this message 
    168168     * 
    169      * @param string $mime_id Part MIME-ID 
    170      * @param resource $fp File pointer to save the message part 
     169     * @param string   $mime_id           Part MIME-ID 
     170     * @param resource $fp File           pointer to save the message part 
     171     * @param boolean  $skip_charset_conv Disables charset conversion 
     172     * 
    171173     * @return string Part content 
    172174     */ 
    173     public function get_part_content($mime_id, $fp=NULL) 
     175    public function get_part_content($mime_id, $fp = null, $skip_charset_conv = false) 
    174176    { 
    175177        if ($part = $this->mime_parts[$mime_id]) { 
     
    182184            } 
    183185            // get from IMAP 
    184             return $this->storage->get_message_part($this->uid, $mime_id, $part, NULL, $fp); 
     186            return $this->storage->get_message_part($this->uid, $mime_id, $part, NULL, $fp, $skip_charset_conv); 
    185187        } else 
    186188            return null; 
Note: See TracChangeset for help on using the changeset viewer.