Actions
Defect #41737
closedDeprecation warning for IMAP4 email receiving: "Call Net::IMAP.new with keyword options"
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
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
Updated by Go MAEDA about 1 month ago
- 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
Updated by Go MAEDA about 1 month ago
- 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"
Updated by Go MAEDA about 1 month ago
- 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.
Updated by Go MAEDA about 1 month ago
- Status changed from Resolved to Closed
Merged the change in the trunk into the 6.0-stable branch in r23272.
Actions