Skip to content

Commit

Permalink
Fixes for POP3 and TLS (new option)
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Dec 5, 2003
1 parent cf3eb7c commit 07eb7fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth/pop3/config.html
Expand Up @@ -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";
Expand All @@ -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;
}
Expand Down
3 changes: 3 additions & 0 deletions auth/pop3/lib.php
Expand Up @@ -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":
Expand Down

0 comments on commit 07eb7fa

Please sign in to comment.