]> source.dussan.org Git - redmine.git/commitdiff
Fix deprecation warning for IMAP4 email receiving: "Call Net::IMAP.new with keyword...
authorGo MAEDA <maeda@farend.jp>
Thu, 14 Nov 2024 06:59:29 +0000 (06:59 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 14 Nov 2024 06:59:29 +0000 (06:59 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@23268 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/imap.rb

index cc8dcb37695c0137beb85716f50d9c687da513d5..79e61eb52b76b2c3bbfffa21af33b65639510d2b 100644 (file)
@@ -29,7 +29,7 @@ module Redmine
         starttls = !imap_options[:starttls].nil?
         folder = imap_options[:folder] || 'INBOX'
 
-        imap = Net::IMAP.new(host, port, ssl)
+        imap = Net::IMAP.new(host, port: port, ssl: ssl)
         if starttls
           imap.starttls
         end