mirror of
https://github.com/redmine/redmine.git
synced 2026-01-16 20:43:03 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user