2 // Authentication by looking up a POP3 server
4 function auth_user_login ($username, $password) {
5 // Returns true if the username and password work
6 // and false if they are wrong or don't exist.
10 switch ($CFG->auth_pop3type) {
12 $host = "{".$CFG->auth_pop3host.":$CFG->auth_pop3port/pop3}INBOX";
15 $host = "{".$CFG->auth_pop3host.":$CFG->auth_pop3port/pop3/ssl/novalidate-cert}INBOX";
20 $connection = imap_open($host, $username, $password, OP_HALFOPEN);
21 error_reporting($CFG->debug);
24 imap_close($connection);