Project

General

Profile

Actions

Defect #41737

closed

Deprecation warning for IMAP4 email receiving: "Call Net::IMAP.new with keyword options"

Added by Grischa Zengel about 1 month ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Email receiving
Target version:
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

Actions #1

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
Actions #2

Updated by Grischa Zengel about 1 month ago

OK

Actions #3

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"
Actions #4

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.

Actions #5

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

Also available in: Atom PDF