New imap type (imaptls) solved problems with TLS capable servers (eg Courier)

This commit is contained in:
moodler 2002-11-17 15:11:35 +00:00
parent da978ae4c7
commit e1fb2ab5e8

View File

@ -4,8 +4,8 @@
// This code is completely untested so far - IT NEEDS TESTERS!
// Looks like it should work though ...
$CFG->auth_imaphost = "202.0.185.16"; // Should be IP number
$CFG->auth_imaptype = "imap"; // imap, imapssl, imapcert
$CFG->auth_imaphost = "127.0.0.1"; // Should be IP number
$CFG->auth_imaptype = "imap"; // imap, imaptls, imapssl, imapcert
$CFG->auth_imapport = "143"; // 143, 993
$CFG->auth_instructions = "Use the same username and password as your school email account"; // Instructions
@ -25,6 +25,10 @@ function auth_user_login ($username, $password) {
$host = "{".$CFG->auth_imaphost.":$CFG->auth_imapport/imap/ssl/novalidate-cert}INBOX";
break;
case "imaptls":
$host = "{".$CFG->auth_imaphost.":$CFG->auth_imapport/imap/notls}INBOX";
break;
default:
$host = "{".$CFG->auth_imaphost.":$CFG->auth_imapport}";
}