Optimized memory usage when sending a message

release-0.6
thomascube 19 years ago
parent f3b659935f
commit e0ed972884

@ -49,7 +49,7 @@ $SMTP_CONN = null;
* @return bool Returns TRUE on success, or FALSE on error * @return bool Returns TRUE on success, or FALSE on error
* @access public * @access public
*/ */
function smtp_mail($from, $recipients, $headers, $body) function smtp_mail($from, $recipients, $headers, &$body)
{ {
global $SMTP_CONN, $CONFIG, $SMTP_ERROR; global $SMTP_CONN, $CONFIG, $SMTP_ERROR;
$smtp_timeout = null; $smtp_timeout = null;

@ -1,4 +1,4 @@
/* /*
+-----------------------------------------------------------------------+ +-----------------------------------------------------------------------+
| RoundCube Webmail Client Script | | RoundCube Webmail Client Script |
| | | |

@ -1885,7 +1885,7 @@ function iil_C_DeleteFolder(&$conn, $folder){
} }
} }
function iil_C_Append(&$conn, $folder, $message){ function iil_C_Append(&$conn, $folder, &$message){
if (!$folder) return false; if (!$folder) return false;
$fp = $conn->fp; $fp = $conn->fp;

Loading…
Cancel
Save