* This is where the mailboxes are listed. This controls most of what
* goes on in SquirrelMail.
*
- * @copyright 1999-2014 The SquirrelMail Project Team
+ * @copyright 1999-2023 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
/* Open an imap connection */
-$imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, 0);
+global $imap_stream_options; // in case not defined in config
+$imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, 0, $imap_stream_options);
$mailbox = (isset($mailbox) && $mailbox) ? $mailbox : 'INBOX';