From: Go MAEDA Date: Thu, 14 Nov 2024 06:59:29 +0000 (+0000) Subject: Fix deprecation warning for IMAP4 email receiving: "Call Net::IMAP.new with keyword... X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f812b2920132556e8d7dcffed2481bfbb91f6f97;p=redmine.git 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 --- diff --git a/lib/redmine/imap.rb b/lib/redmine/imap.rb index cc8dcb376..79e61eb52 100644 --- a/lib/redmine/imap.rb +++ b/lib/redmine/imap.rb @@ -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