Defect #41737
closed
Deprecation warning for IMAP4 email receiving: "Call Net::IMAP.new with keyword options"
Added by Grischa Zengel 6 days ago.
Updated 4 days ago.
Description
I use imap_receive and get:
/opt/redmine-6.0.1/lib/redmine/imap.rb:32: warning: DEPRECATED: Call Net::IMAP.new with keyword options
- Category set to Email receiving
- Target version set to 6.0.2
The following change will fix the warning.
I am setting the target version to 6.0.2.
Index: lib/redmine/imap.rb
===================================================================
--- lib/redmine/imap.rb (リビジョン 23266)
+++ lib/redmine/imap.rb (作業コピー)
@@ -29,7 +29,7 @@
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
- Subject changed from DEPRECATED: Call Net::IMAP.new with keyword options to Deprecation warning for IMAP4 email receiving: "Call Net::IMAP.new with keyword options"
- Status changed from New to Resolved
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the fix in r23268. Thank you for reporting the issue.
- Status changed from Resolved to Closed
Merged the change in the trunk into the 6.0-stable branch in r23272.
Also available in: Atom
PDF