summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-09-16 08:49:28 +0000
committeralecpl <alec@alec.pl>2008-09-16 08:49:28 +0000
commit81b573d98ae143bd11b37ff2027bfad78e2d460c (patch)
tree11975b2cfc8fc6affdb5e1ecf92728fd66b536ab /program/steps/mail
parentcf507b27accdfc1b6fde138e2f7fadf010c8a43c (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/steps/mail')
-rw-r--r--program/steps/mail/compose.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index e45662de5..b25a7dee6 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -596,7 +596,7 @@ function rcmail_write_compose_attachments(&$message, $bodyIsHtml)
$tmp_path = tempnam($temp_dir, 'rcmAttmnt');
if ($fp = fopen($tmp_path, 'w'))
{
- fwrite($fp, $message->get_part_content($pid));
+ $message->get_part_content($pid, $fp);
fclose($fp);
$_SESSION['compose']['attachments'][] = array(