fix: Handle Net::IMAP::InvalidResponseError Exception bad response type "ESMTP" (#8755)

This commit is contained in:
Sojan Jose
2024-01-22 14:02:44 +04:00
committed by GitHub
parent d2c5c2f9a3
commit bc04d81a5a

View File

@@ -12,7 +12,7 @@ class Inboxes::FetchImapEmailsJob < MutexApplicationJob
rescue *ExceptionList::IMAP_EXCEPTIONS => e
Rails.logger.error e
channel.authorization_error!
rescue EOFError, OpenSSL::SSL::SSLError, Net::IMAP::NoResponseError, Net::IMAP::BadResponseError => e
rescue EOFError, OpenSSL::SSL::SSLError, Net::IMAP::NoResponseError, Net::IMAP::BadResponseError, Net::IMAP::InvalidResponseError => e
Rails.logger.error e
rescue LockAcquisitionError
Rails.logger.error "Lock failed for #{channel.inbox.id}"