*
* Delivery backend for the Deliver class.
*
- * @copyright 1999-2010 The SquirrelMail Project Team
+ * @copyright 1999-2020 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
*
*/
function send_mail($message, $header, $boundary, $stream=false,
- &$raw_length, $folder) {
+ &$raw_length, $folder=NULL) {
+
+ if (is_null($folder))
+ die('Internal error. Cannot pass NULL folder name to Deliver_IMAP::send_mail()');
// write the body without providing a stream so we
// can calculate the final length - after this call,