This reverts commit 7acd239c70 to further
debug upstream issues.
This commit is contained in:
@@ -1 +0,0 @@
|
||||
class Imap::AuthenticationError < StandardError; end
|
||||
@@ -107,11 +107,7 @@ class Imap::BaseFetchEmailService
|
||||
|
||||
def build_imap_client
|
||||
imap = Net::IMAP.new(channel.imap_address, port: channel.imap_port, ssl: true)
|
||||
begin
|
||||
imap.authenticate(authentication_type, channel.imap_login, imap_password)
|
||||
rescue Net::IMAP::NoResponseError => e
|
||||
raise Imap::AuthenticationError, e.message
|
||||
end
|
||||
imap.authenticate(authentication_type, channel.imap_login, imap_password)
|
||||
imap.select('INBOX')
|
||||
imap
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user