From: moodler Date: Sun, 17 Nov 2002 15:11:35 +0000 (+0000) Subject: New imap type (imaptls) solved problems with TLS capable servers (eg Courier) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e1fb2ab5e8e26d21a24bc4a8341e4a0e89ae49a9;p=moodle.git New imap type (imaptls) solved problems with TLS capable servers (eg Courier) --- diff --git a/auth/imap/lib.php b/auth/imap/lib.php index 5d9200933c..c16faeefd6 100644 --- a/auth/imap/lib.php +++ b/auth/imap/lib.php @@ -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}"; }