Skip to content

Commit

Permalink
New imap type (imaptls) solved problems with TLS capable servers (eg …
Browse files Browse the repository at this point in the history
…Courier)
  • Loading branch information
moodler committed Nov 17, 2002
1 parent da978ae commit e1fb2ab
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions auth/imap/lib.php
Expand Up @@ -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

Expand All @@ -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}";
}
Expand Down

0 comments on commit e1fb2ab

Please sign in to comment.