Skip to content

Commit 1c55740

Browse files
lomotechWebklex
authored andcommitted
Add notls in server encryption's support. (#219)
1 parent 4fa8b8f commit 1c55740

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/IMAP/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Client {
5858

5959
/**
6060
* Server encryption.
61-
* Supported: none, ssl or tls.
61+
* Supported: none, ssl, tls, or notls.
6262
*
6363
* @var string
6464
*/
@@ -538,7 +538,7 @@ protected function getAddress() {
538538
if (!$this->validate_cert) {
539539
$address .= '/novalidate-cert';
540540
}
541-
if (in_array($this->encryption,['tls','ssl'])) {
541+
if (in_array($this->encryption,['tls', 'notls', 'ssl'])) {
542542
$address .= '/'.$this->encryption;
543543
}
544544

src/config/imap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
'host' => env('IMAP_HOST', 'localhost'),
4040
'port' => env('IMAP_PORT', 993),
4141
'protocol' => env('IMAP_PROTOCOL', 'imap'), //might also use imap, [pop3 or nntp (untested)]
42-
'encryption' => env('IMAP_ENCRYPTION', 'ssl'), // Supported: false, 'ssl', 'tls'
42+
'encryption' => env('IMAP_ENCRYPTION', 'ssl'), // Supported: false, 'ssl', 'tls', 'notls'
4343
'validate_cert' => env('IMAP_VALIDATE_CERT', true),
4444
'username' => env('IMAP_USERNAME', '[email protected]'),
4545
'password' => env('IMAP_PASSWORD', ''),

0 commit comments

Comments
 (0)