Disable ssl on on ssl ports.
This commit is contained in:
parent
d548dc5613
commit
7c23e334a8
2 changed files with 10 additions and 0 deletions
|
@ -68,6 +68,11 @@ example
|
|||
end
|
||||
if options.key?(:port) && !options[:port].empty?
|
||||
port = options[:port]
|
||||
|
||||
# disable ssl for non ssl ports
|
||||
if port == 143 && !options.key?(:ssl)
|
||||
ssl = false
|
||||
end
|
||||
end
|
||||
|
||||
Rails.logger.info "fetching imap (#{options[:host]}/#{options[:user]} port=#{port},ssl=#{ssl})"
|
||||
|
|
|
@ -53,6 +53,11 @@ returns
|
|||
end
|
||||
if options.key?(:port) && !options[:port].empty?
|
||||
port = options[:port]
|
||||
|
||||
# disable ssl for non ssl ports
|
||||
if port == 110 && !options.key?(:ssl)
|
||||
ssl = false
|
||||
end
|
||||
end
|
||||
|
||||
Rails.logger.info "fetching pop3 (#{options[:host]}/#{options[:user]} port=#{port},ssl=#{ssl})"
|
||||
|
|
Loading…
Reference in a new issue