Fix deprecation warning for IMAP4 email receiving: "Call Net::IMAP.new with keyword options" (#41737).

git-svn-id: https://svn.redmine.org/redmine/trunk@23268 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2024-11-14 06:59:29 +00:00
parent 71bcd6df89
commit f812b29201

View 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