mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-30 18:47:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			951 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			951 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| require 'net/imap'
 | |
| 
 | |
| module ExceptionList
 | |
|   REST_CLIENT_EXCEPTIONS = [RestClient::NotFound, RestClient::GatewayTimeout, RestClient::BadRequest,
 | |
|                             RestClient::MethodNotAllowed, RestClient::Forbidden, RestClient::InternalServerError,
 | |
|                             RestClient::Exceptions::OpenTimeout, RestClient::Exceptions::ReadTimeout,
 | |
|                             RestClient::TemporaryRedirect, RestClient::SSLCertificateNotVerified, RestClient::PaymentRequired,
 | |
|                             RestClient::BadGateway, RestClient::Unauthorized, RestClient::PayloadTooLarge,
 | |
|                             RestClient::MovedPermanently, RestClient::ServiceUnavailable, Errno::ECONNREFUSED, SocketError].freeze
 | |
|   SMTP_EXCEPTIONS = [
 | |
|     Net::SMTPSyntaxError
 | |
|   ].freeze
 | |
| 
 | |
|   IMAP_EXCEPTIONS = [
 | |
|     Errno::ECONNREFUSED, Net::OpenTimeout,
 | |
|     Errno::ECONNRESET, Errno::ENETUNREACH, Net::IMAP::ByeResponseError,
 | |
|     SocketError
 | |
|   ].freeze
 | |
| end
 | 
