X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=class%2Fdeliver%2FDeliver_IMAP.class.php;h=5513a6000a74e0d0aa749fdc3497e6507a562ae3;hp=fa7255fcbef39066cc3b7c2b99b5e0f057f75a13;hb=e41a0a93ddf01d127a08573b344b49b8859c4d7d;hpb=e2ccf2849320926cb97ee3eceff32fde575aa34e diff --git a/class/deliver/Deliver_IMAP.class.php b/class/deliver/Deliver_IMAP.class.php index fa7255fc..5513a600 100644 --- a/class/deliver/Deliver_IMAP.class.php +++ b/class/deliver/Deliver_IMAP.class.php @@ -5,7 +5,7 @@ * * Delivery backend for the Deliver class. * - * @copyright © 1999-2007 The SquirrelMail Project Team + * @copyright 1999-2016 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -52,7 +52,10 @@ class Deliver_IMAP extends Deliver { * */ 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,