Project

General

Profile

Feature #41738 » 41738.patch

Go MAEDA, 2024-12-08 08:24

View differences:

lib/redmine/imap.rb
25 25
      def check(imap_options={}, options={})
26 26
        host = imap_options[:host] || '127.0.0.1'
27 27
        port = imap_options[:port] || '143'
28
        ssl = !imap_options[:ssl].nil?
28
        if imap_options[:ssl]
29
          if imap_options[:ssl] == 'force'
30
            ssl = {verify_mode: OpenSSL::SSL::VERIFY_NONE}
31
          else
32
            ssl = {verify_mode: OpenSSL::SSL::VERIFY_PEER}
33
          end
34
        else
35
          ssl = false
36
        end
29 37
        starttls = !imap_options[:starttls].nil?
30 38
        folder = imap_options[:folder] || 'INBOX'
31 39

  
(1-1/2)