From 2a31ec7afd30666519f5d2cf9ed7d8a14465bf5e Mon Sep 17 00:00:00 2001 From: Tanmay Deep Sharma Date: Mon, 23 Feb 2026 18:19:24 +0530 Subject: [PATCH] move noresponseerror to imap exceptions --- app/jobs/inboxes/fetch_imap_emails_job.rb | 2 +- lib/exception_list.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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