diff --git a/app/jobs/inboxes/fetch_imap_emails_job.rb b/app/jobs/inboxes/fetch_imap_emails_job.rb index 8936e1dd9..5ab925142 100644 --- a/app/jobs/inboxes/fetch_imap_emails_job.rb +++ b/app/jobs/inboxes/fetch_imap_emails_job.rb @@ -20,7 +20,7 @@ class Inboxes::FetchImapEmailsJob < MutexApplicationJob rescue *ExceptionList::IMAP_EXCEPTIONS => e Rails.logger.error "Authorization error for email channel - #{channel.inbox.id} : #{e.message}" channel.apply_imap_backoff! - rescue EOFError, OpenSSL::SSL::SSLError, Net::IMAP::NoResponseError, Net::IMAP::BadResponseError, Net::IMAP::InvalidResponseError, + rescue EOFError, OpenSSL::SSL::SSLError, Net::IMAP::BadResponseError, Net::IMAP::InvalidResponseError, Net::IMAP::ResponseParseError, Net::IMAP::ResponseReadError, Net::IMAP::ResponseTooLargeError => e Rails.logger.error "Error for email channel - #{channel.inbox.id} : #{e.message}" channel.apply_imap_backoff! diff --git a/lib/exception_list.rb b/lib/exception_list.rb index 2fee0a170..4bdb43e7d 100644 --- a/lib/exception_list.rb +++ b/lib/exception_list.rb @@ -14,6 +14,6 @@ module ExceptionList IMAP_EXCEPTIONS = [ Errno::ECONNREFUSED, Net::OpenTimeout, Errno::ECONNRESET, Errno::ENETUNREACH, Net::IMAP::ByeResponseError, - SocketError + Net::IMAP::NoResponseError, SocketError ].freeze end