aboutsummaryrefslogblamecommitdiffstats
path: root/app/models/jobs/action_mailroom/deliver_inbound_email_to_mailbox.rb
blob: 954fc4bd71e992d53957f749d1e3f2fa7a58bd02 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                                       







                                                                                    
class ActionMailroom::DeliverInboundEmailToMailroomJob < ApplicationJob
  queue_as :action_mailroom_inbound_email

  # Occasional `SSL_read: decryption failed or bad record mac` that resolve on retry
  retry_on OpenSSL::SSL::SSLError

  def perform(inbound_email)
    ApplicationMailbox.receive inbound_email
  end
end