OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Use non-deprecated call option for imap ssl
Oliver Güntherac550bfd2a2b
diff --git a/lib/redmine/imap.rb b/lib/redmine/imap.rbindex c54ff68f0ff..7870c18a1b1 100644--- a/lib/redmine/imap.rb+++ b/lib/redmine/imap.rb@@ -48,9 +48,15 @@ module Redminedef connect_imap(imap_options)host = imap_options[:host] || '127.0.0.1'port = imap_options[:port] || '143'- ssl = imap_options[:ssl]- ssl_verification = imap_options[:ssl_verification]- imap = Net::IMAP.new(host, port, ssl, nil, ssl_verification)+ verify_mode = imap_options[:ssl_verification] ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE+ ssl_params =+ if imap_options[:ssl]+ { verify_mode: }+ else+ false+ end++ imap = Net::IMAP.new(host, port:, ssl: ssl_params)imap.login(imap_options[:username], imap_options[:password]) unless imap_options[:username].nil?