Skip to content

Commit

Permalink
fix(imapextension): Removed from being included
Browse files Browse the repository at this point in the history
Looking at the code for the latest net-imap gem I see that the
ResponseParser has changed and it includes the tokens this extension was
patching.
  • Loading branch information
SignThief committed Apr 6, 2024
1 parent c5e9389 commit 8f0cd3b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/gmail/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def self.new(name, *args)
raise UnknownClient, "No such client: #{name}"
end

require 'gmail/imap_extensions'
require 'gmail/client/base'
require 'gmail/client/plain'
require 'gmail/client/xoauth'
Expand Down
1 change: 0 additions & 1 deletion lib/gmail/client/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def initialize(username, options = {})
# Connect to gmail service.
def connect(raise_errors = false)
@imap = Net::IMAP.new(GMAIL_IMAP_HOST, GMAIL_IMAP_PORT, true, nil, false)
Gmail::ImapExtensions.patch_net_imap_response_parser
@imap
rescue SocketError
raise_errors and raise ConnectionError, "Couldn't establish connection with Gmail IMAP service"
Expand Down

0 comments on commit 8f0cd3b

Please sign in to comment.