From 3d565458b2401cd967003157adc75cc29dcef980 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Tue, 24 Apr 2018 09:39:49 +0200 Subject: [PATCH] Fixed issue #1972: 'Host unreachable' is shown when configuring an IMAP email inbox with SSL on port 993. --- app/models/channel/driver/imap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/channel/driver/imap.rb b/app/models/channel/driver/imap.rb index 28b1da339..2e2ec7ed4 100644 --- a/app/models/channel/driver/imap.rb +++ b/app/models/channel/driver/imap.rb @@ -73,7 +73,7 @@ example ssl = options.key?(:ssl) && options[:ssl] == true port = if options.key?(:port) && options[:port].present? - options[:port] + options[:port].to_i elsif ssl == true 993 else