aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/jobs
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/jobs')
-rw-r--r--app/models/jobs/action_mailbox/deliver_inbound_email_to_mailbox.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/jobs/action_mailbox/deliver_inbound_email_to_mailbox.rb b/app/models/jobs/action_mailbox/deliver_inbound_email_to_mailbox.rb
new file mode 100644
index 0000000000..a5bd2c0f18
--- /dev/null
+++ b/app/models/jobs/action_mailbox/deliver_inbound_email_to_mailbox.rb
@@ -0,0 +1,10 @@
+class ActionMailbox::DeliverInboundEmailToMailroomJob < ApplicationJob
+ queue_as :action_mailbox_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