diff options
author | alecpl <alec@alec.pl> | 2008-09-16 08:49:28 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-09-16 08:49:28 +0000 |
commit | 81b573d98ae143bd11b37ff2027bfad78e2d460c (patch) | |
tree | 11975b2cfc8fc6affdb5e1ecf92728fd66b536ab /program/include/rcube_message.php | |
parent | cf507b27accdfc1b6fde138e2f7fadf010c8a43c (diff) |
- Reduced memory footprint when forwarding attachments (#1485345)
- Fixed endless loop in iil_C_HandlePartBody()
- rcube_message::get_part_content() speed up using 3rd argument of rcube_imap::get_message_part()
Diffstat (limited to 'program/include/rcube_message.php')
-rw-r--r-- | program/include/rcube_message.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/rcube_message.php b/program/include/rcube_message.php index c18db4bdd..f2e4be3ef 100644 --- a/program/include/rcube_message.php +++ b/program/include/rcube_message.php @@ -117,12 +117,13 @@ class rcube_message * Get content of a specific part of this message * * @param string Part MIME-ID + * @param resource File pointer to save the message part * @return string Part content */ - public function get_part_content($mime_id) + public function get_part_content($mime_id, $fp=NULL) { if ($part = $this->mime_parts[$mime_id]) - return $this->imap->get_message_part($this->uid, $mime_id, $part); + return $this->imap->get_message_part($this->uid, $mime_id, $part, NULL, $fp); else return null; } |