]> source.dussan.org Git - redmine.git/commitdiff
Fixed STARTTLS option key (#19232).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Mar 2015 07:36:42 +0000 (07:36 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Mar 2015 07:36:42 +0000 (07:36 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14047 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/imap.rb

index 418066632b27e457cb356d67491480975c1b752b..d7f2ad636aeb40e80b5c84b15df7e6ce96d85316 100644 (file)
@@ -24,7 +24,7 @@ module Redmine
         host = imap_options[:host] || '127.0.0.1'
         port = imap_options[:port] || '143'
         ssl = !imap_options[:ssl].nil?
-        starttls = !imap_options[:tls].nil?
+        starttls = !imap_options[:starttls].nil?
         folder = imap_options[:folder] || 'INBOX'
 
         imap = Net::IMAP.new(host, port, ssl)