Add advanced control over the SSL context used when connecting to the SMTP and IMAP...
[squirrelmail.git] / src / view_header.php
index ee151785e2b3f75ac6ef79a351945ade25e221b4..65214f91a0c92d43b9ae86a64de98827e1c8af19 100644 (file)
@@ -93,8 +93,9 @@ if ( !sqgetGlobalVar('passed_ent_id', $passed_ent_id, SQ_GET) ) {
 }
 sqgetGlobalVar('delimiter',  $delimiter,    SQ_SESSION);
 
 }
 sqgetGlobalVar('delimiter',  $delimiter,    SQ_SESSION);
 
+global $imapSslOptions; // in case not defined in config
 $imapConnection = sqimap_login($username, false, $imapServerAddress,
 $imapConnection = sqimap_login($username, false, $imapServerAddress,
-                               $imapPort, 0);
+                               $imapPort, 0, $imapSslOptions);
 $mbx_response = sqimap_mailbox_select($imapConnection, $mailbox, false, false, true);
 $header = parse_viewheader($imapConnection,$passed_id, $passed_ent_id);
 
 $mbx_response = sqimap_mailbox_select($imapConnection, $mailbox, false, false, true);
 $header = parse_viewheader($imapConnection,$passed_id, $passed_ent_id);