From 43c38dcd97347ceb1c670701a2d2f5f98f234a51 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 25 Apr 2018 09:42:10 +0200 Subject: [PATCH] Follow up to #1963 - changed default behaviour back to only disable ssl if ssl param is explicit false to keep backward compatibility of old channel settings. --- app/models/channel/driver/imap.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/models/channel/driver/imap.rb b/app/models/channel/driver/imap.rb index 2e2ec7ed4..ba24dfff7 100644 --- a/app/models/channel/driver/imap.rb +++ b/app/models/channel/driver/imap.rb @@ -70,7 +70,10 @@ example keep_on_server = true end - ssl = options.key?(:ssl) && options[:ssl] == true + if options.key?(:ssl) && options[:ssl] == false + ssl = false + port = 143 + end port = if options.key?(:port) && options[:port].present? options[:port].to_i