Add advanced control over the SSL context used when connecting to the SMTP and IMAP...
[squirrelmail.git] / src / empty_trash.php
index eeeb537393af6d0b8add9ef46df78f2acbf17cfe..b3f4c476fbc1cc09efadf9cc793c2f38c250aa97 100644 (file)
@@ -34,7 +34,8 @@ sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION);
 sqgetGlobalVar('smtoken', $submitted_token, SQ_GET, '');
 sm_validate_security_token($submitted_token, -1, TRUE);
 
-$imap_stream = sqimap_login($username, false, $imapServerAddress, $imapPort, 0);
+global $imapSslOptions; // in case not defined in config
+$imap_stream = sqimap_login($username, false, $imapServerAddress, $imapPort, 0, $imapSslOptions);
 
 $mailbox = $trash_folder;
 $boxes = sqimap_mailbox_list($imap_stream);