Add advanced control over the SSL context used when connecting to the SMTP and IMAP...
[squirrelmail.git] / src / right_main.php
index 41960632d02fbadc37ad407c884ef4da76349232..ea2f3af59ceaa01dc274a82630e22dabf647917e 100644 (file)
@@ -88,7 +88,8 @@ if ( sqgetGlobalVar('account', $account, SQ_GET) ) {
 
 /* Open an imap connection */
 
-$imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, 0);
+global $imapSslOptions; // in case not defined in config
+$imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, 0, $imapSslOptions);
 
 $mailbox = (isset($mailbox) && $mailbox) ? $mailbox : 'INBOX';