thomascube
2005-10-24 e0ed972884aff33465ac551c8ef06febb57e4c54
Optimized memory usage when sending a message


3 files modified
6 ■■■■ changed files
program/include/rcube_smtp.inc 2 ●●● patch | view | raw | blame | history
program/js/app.js 2 ●●● patch | view | raw | blame | history
program/lib/imap.inc 2 ●●● patch | view | raw | blame | history
program/include/rcube_smtp.inc
@@ -49,7 +49,7 @@
 * @return bool  Returns TRUE on success, or FALSE on error
 * @access public
 */
function smtp_mail($from, $recipients, $headers, $body)
function smtp_mail($from, $recipients, $headers, &$body)
  {
  global $SMTP_CONN, $CONFIG, $SMTP_ERROR;
  $smtp_timeout = null;
program/js/app.js
@@ -1,4 +1,4 @@
/*
/*
 +-----------------------------------------------------------------------+
 | RoundCube Webmail Client Script                                       |
 |                                                                       |
program/lib/imap.inc
@@ -1885,7 +1885,7 @@
    }
}
function iil_C_Append(&$conn, $folder, $message){
function iil_C_Append(&$conn, $folder, &$message){
    if (!$folder) return false;
    $fp = $conn->fp;