move noresponseerror to imap exceptions

This commit is contained in:
Tanmay Deep Sharma
2026-02-23 18:19:24 +05:30
parent 223c04c748
commit 2a31ec7afd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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!
+1 -1
View File
@@ -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