Skip to content
Browse files

Fixes for POP3 and TLS (new option)

  • Loading branch information...
1 parent cf3eb7c commit 07eb7fa7b88fe1679a2ad448b1c677b10049358e moodler committed Dec 5, 2003
Showing with 5 additions and 2 deletions.
  1. +2 −2 auth/pop3/config.html
  2. +3 −0 auth/pop3/lib.php
View
4 auth/pop3/config.html
@@ -3,7 +3,7 @@
$config->auth_pop3host = "127.0.0.1";
}
if (!isset($config->auth_pop3type)) {
- $config->auth_pop3type = "pop3";
+ $config->auth_pop3type = "pop3notls";
}
if (!isset($config->auth_pop3port)) {
$config->auth_pop3port = "110";
@@ -23,7 +23,7 @@
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
<TD ALIGN=RIGHT><P>auth_pop3type:</TD>
<TD>
- <?php $pop3types = array("pop3","pop3cert");
+ <?php $pop3types = array("pop3","pop3cert", "pop3notls");
foreach($pop3types as $pop3type) {
$pop3options[$pop3type] = $pop3type;
}
View
3 auth/pop3/lib.php
@@ -9,6 +9,9 @@ function auth_user_login ($username, $password) {
switch ($CFG->auth_pop3type) {
case "pop3":
+ $host = "{".$CFG->auth_pop3host.":$CFG->auth_pop3port/pop3}INBOX";
+ break;
+ case "pop3notls":
$host = "{".$CFG->auth_pop3host.":$CFG->auth_pop3port/pop3/notls}INBOX";
break;
case "pop3cert":

0 comments on commit 07eb7fa

Please sign in to comment.
Something went wrong with that request. Please try again.