X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=class%2Fdeliver%2FDeliver_IMAP.class.php;h=da61f3630b1962654ae1b1b8dea430743863f224;hb=0e6fd2f821eddd307a1c42df6c9362e2d19020e9;hp=ce53a05a04f2d24c6dccd3ad4b924e30ba123512;hpb=d4e46166df04792c6b939356ea5dfda8e47bba7b;p=squirrelmail.git diff --git a/class/deliver/Deliver_IMAP.class.php b/class/deliver/Deliver_IMAP.class.php index ce53a05a..da61f363 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-2009 The SquirrelMail Project Team + * @copyright 1999-2014 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,