Skip to content

Commit

Permalink
issue: NOTLS For IMAP/POP Without SSL
Browse files Browse the repository at this point in the history
This is a rewrite of 5519 and addresses issue 5020 where in some cases,
using IMAP/POP without SSL fails because class MailFetcher is not disabling
start-TLS. This adds a new if statement to check if the encryption method is
SSL if not, we will add `/notls` to the server string to disable start-TLS.
  • Loading branch information
JediKev committed Aug 12, 2020
1 parent 6f9eae7 commit 7506937
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/class.mailfetch.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ function __construct($email, $charset='UTF-8') {
if ($this->authuser)
$this->srvstr .= sprintf('/authuser=%s', $this->authuser);

$this->srvstr.='/novalidate-cert}';

if (strcasecmp($this->getEncryption(), 'SSL'))
$this->srvstr.='/notls}';
else
$this->srvstr.='/novalidate-cert}';
}

//Set timeouts
Expand Down

0 comments on commit 7506937

Please sign in to comment.