*
* This is a standard SquirrelMail 1.2 API for plugins.
*
- * @copyright 1999-2012 The SquirrelMail Project Team
+ * @copyright 1999-2022 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
function sent_subfolders_optpage_loadhook_folders_do() {
global $data_dir, $username, $optpage_data, $imapServerAddress,
- $imapPort, $show_contain_subfolders_option, $sent_folder;
+ $imapPort, $imap_stream_options, $show_contain_subfolders_option, $sent_folder;
/* Get some imap data we need later. */
- $imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, 0);
+ $imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, 0, $imap_stream_options);
$boxes = sqimap_mailbox_list($imapConnection);
sqimap_logout($imapConnection);
function sent_subfolders_update_sentfolder_do() {
global $sent_folder, $username,
$data_dir, $imapServerAddress, $imapPort,
- $move_to_sent;
+ $imap_stream_options, $move_to_sent;
sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION);
/* Auto-create folders, if they do not yet exist. */
if ($sent_subfolder != 'none') {
/* Create the imap connection. */
- $ic = sqimap_login($username, false, $imapServerAddress, $imapPort, 10);
+ $ic = sqimap_login($username, false, $imapServerAddress, $imapPort, 10, $imap_stream_options);
$boxes = false;
/**