X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fview_html.php;h=fef0c9fb7dbba718bc811440eeda7f38763ed0bd;hp=e4355a3cc9fc283f1120280de331fced9f3e8410;hb=c4faef335b2362c81b8ebf026d4066c12d70536c;hpb=701e7beed3baca980039f978c6d536dd91cae775;ds=sidebyside diff --git a/src/view_html.php b/src/view_html.php index e4355a3c..fef0c9fb 100644 --- a/src/view_html.php +++ b/src/view_html.php @@ -10,7 +10,7 @@ * optional. User must be authenticated ($key in cookie. $username and * $onetimepad in session). * - * @copyright 1999-2014 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 @@ -38,7 +38,8 @@ sqgetGlobalVar('passed_id', $passed_id, SQ_GET, NULL, SQ_TYPE_BIGINT); // TODO: add required var checks here. -$imap_stream = sqimap_login($username, false, $imapServerAddress, $imapPort, 0); +global $imap_stream_options; // in case not defined in config +$imap_stream = sqimap_login($username, false, $imapServerAddress, $imapPort, 0, $imap_stream_options); $mbx_response = sqimap_mailbox_select($imap_stream, $mailbox); $message = &$messages[$mbx_response['UIDVALIDITY']][$passed_id];